Posted 18 years ago
by Kasper
Hi,
I have been using the SynEdit package for Delphi for years now, so I have grown custom so some things, like being able to use their highlighters to parse a file. For instance, I could create new instance of the CSS Highlighter, assign some CSS code to it, and then step through the entire content, finding the things I was interested it. This was kinda cool, since it saved me from making a parser to e.g. get the selectors of a CSS document. I was kinda hoping that I would be able to do the same thing with SyntaxEditor, but I can't find anything specific on this in the manual. Is this possible, or can I only do things like this by creating a SyntaxEditor instance, loading a language and then use a TokenStream or something like this?
I have been using the SynEdit package for Delphi for years now, so I have grown custom so some things, like being able to use their highlighters to parse a file. For instance, I could create new instance of the CSS Highlighter, assign some CSS code to it, and then step through the entire content, finding the things I was interested it. This was kinda cool, since it saved me from making a parser to e.g. get the selectors of a CSS document. I was kinda hoping that I would be able to do the same thing with SyntaxEditor, but I can't find anything specific on this in the manual. Is this possible, or can I only do things like this by creating a SyntaxEditor instance, loading a language and then use a TokenStream or something like this?