
Hello,
I have a syntaxeEditor that loads a set of language rules from an XML file
How can I let the user to highlight all ocurrences of any word within the document without replacing the loaded language?
Thanx
Hello,
I have a syntaxeEditor that loads a set of language rules from an XML file
How can I let the user to highlight all ocurrences of any word within the document without replacing the loaded language?
Thanx
Hi Mauricio,
You could use span indicators to accomplish that sort of thing, but you would need to create each instance of the indicator. It would not be an automated process as it is with the lexical parser (via the XML).
Alternatively you could set the language's IsUpdating property to true, then add the word pattern to the loaded lexical parser, then set IsUpdating = false. That will update the existing loaded lexer, and in that way, you don't have to use span indicators.
It worked, I want the document to highlight all ocurrences of a given string while keeping the style for the rest of the words.
The code I'm using is as follows:
[Modified 12 years ago]
Please log in to a validated account to post comments.