Adding <style> highlighting in wxSTC HTML Lexer

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2408
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania

Adding <style> highlighting in wxSTC HTML Lexer

Post by evstevemd »

So am writing my editor and want to support inline CSS (that is <style></style> tag). Googling out there I found the HTML Lexer does not support that out of the box. Now I'm looking for a way to do custom highlight when <style> is found but am yet to find anything useful. I found this Wiki article but it is for LEX_CONTAINER which means I have to re-write even what LEX_HTML already provides.

Is there any way to customize styling of a LEX_HTML so that I can change highlighting?

Thanks!
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
Post Reply