Home » Developing U++ » U++ Developers corner » CodeEditor with user-definable syntax highlighting
Re: CodeEditor with user-definable syntax highlighting [message #36672 is a reply to message #36659] |
Sun, 24 June 2012 16:40   |
|
mirek wrote on Sun, 24 June 2012 12:42 | I think we should definitely add this to theide in the next development cycle...
| Ok, why not. If my code is stable enough by then, of course.
mirek wrote on Sun, 24 June 2012 12:42 | The question is, can this support something like html? (from the first naive evaluation, I guess not).
| I plan to add support for "scoped matches", mainly as the mechanism behind the scope highlighting. It should be definitely possible to make it work for simple xml files with fixed number of known tags. The more general xml and html-like syntaxes might be little more tricky, but perhaps we can find some tricks to do that as well (it might work with backreferences, but haven't tried it in practice yet).
mirek wrote on Sun, 24 June 2012 12:42 | Speaking about it, I think that current hightlighting code became a little bit outdated now, I plan to do quite a bit refactoring into more modular approach..
| The current highlighting code and the rest of the CodeEditor are bit too rigid for this I think. Letting user specify the rules opens much more possibilities, but it comes with it's own price. The CParser based approach is probably more efficient, but I have few ideas how to make the pcre perform a bit better too (I'll submit some patches soon ).
Honza
|
|
|
Goto Forum:
Current Time: Sun Jun 22 18:22:50 CEST 2025
Total time taken to generate the page: 0.04234 seconds
|