Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1791
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

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 Wink ).

Honza
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Console decoration for DOS (windows)
Next Topic: U++ and MinGW 4.7 (-std=c++11) issues
Goto Forum:
  


Current Time: Sun Jun 22 18:22:50 CEST 2025

Total time taken to generate the page: 0.04234 seconds