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: 2259
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania
Contact:

Adding <style> highlighting in wxSTC HTML Lexer

Post by evstevemd » Sun Sep 22, 2019 9:11 am

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?
[Ubuntu 19.04/Windows 10 Pro/MacOS 10.13 - GCC/MinGW/Clang, CodeLite IDE]

Post Reply