I'm using the lexers that come with Scintilla(eg C++, Verilog, VHDL, etc). I have a need to "overlay" a style temporarily and when done with it I need the style that the lexer had applied to reappear.
For example, say the C++ lexer applied style 10 for a range of text. I then create my own custom style and apply it to that same range of text(via SCI_SETSTYLING). How do I then remove my custom styling so the original style 10 will once again be used?
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.To post to this group, send email to scintilla...@googlegroups.com.
To unsubscribe from this group, send email to scintilla-inter...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scintilla-interest?hl=en.
Neil, here's a little more info. I would like to create a set of styles which is independent from those used by the lexers(so they all have IDs > STYLE_MAX).
Could you tell me if what I want to do is even possible with Scintilla? I'm hoping "yes" and that I'm just missing some step I need to follow.
Neil, here's a little more info. I would like to create a set of styles which is independent from those used by the lexers(so they all have IDs > STYLE_MAX). The purpose of these styles would be for things like flagging "places of interest" within the text. I would like to assign these "auxiliary" styles to arbitrary ranges of text, overwriting temporarily what the lexer has assigned. Then when I remove the auxiliary style, I will need to have the lexer's style reapplied.Could you tell me if what I want to do is even possible with Scintilla? I'm hoping "yes" and that I'm just missing some step I need to follow.