I'm writing a Notepad++ plugin and I'd like to know how to highlight a selection. I tried to use the following Scintilla messages without success:
1. Used 20 as style number
2. Set the foreground and background colors of the style: SCI_STYLESETFORE and SCI_STYLESETBACK
3. Specified the position from where to start the styling: SCI_STARTSTYLING
4. Specified the text length on which the styling to be applied: SCI_SETSTYLING
Am I missing something?
Is there a way to use one of the Notepad++ styles (the one accessed either by right-clicking and selecting one of the style tokens or from the menu Search > Mark All)? if yes, how can I know which style number I should use and what to do to remove the highlight?
Please if anyone could help me or give me a snippet example, I would appreciate it.
Thank you in advance,
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.