[Qt-interest] Generic Highlighter with multiple definitions for onefile?
Scott Aron Bloom
Scott.Bloom at onshorecs.com
Sat Jul 9 06:27:04 CEST 2011
Use multiple QSyntaxHighlighter, one setup for each set of rules you
need..
When a file is loaded select the correct one, and call setDocument on
the correct highlighter for the editor in use..
Scott
-----Original Message-----
From: qt-interest-bounces+scott.bloom=onshorecs.com at qt.nokia.com
[mailto:qt-interest-bounces+scott.bloom=onshorecs.com at qt.nokia.com] On
Behalf Of NoRulez
Sent: Friday, July 08, 2011 10:02 AM
To: Qt Interest MailingList
Subject: [Qt-interest] Generic Highlighter with multiple definitions for
onefile?
Hi,
if I use the generic highlighter per file (e.g. html) it works
perfectly.
The problem I have is when a file has multiple sources such as a HTML or
a PHP file. These files could have PHP/HTML source and JavaScript and/or
CSS for example.
How can I combine such highlighters to highlight the PHP/HTML source and
also the JS and CSS?
Thanks in advance
Best regards
NoRulez
_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list