6 #ifndef QT4SYNTAXHIGHLIGHTER_H_
7 #define QT4SYNTAXHIGHLIGHTER_H_
9 #include <QSyntaxHighlighter>
10 #include <QTextDocument>
11 #include <QTextCharFormat>
14 #include "GNUSyntaxHighlighter.h"
15 #include "Qt4TextFormatter.h"
17 namespace srchiliteqt {
20 typedef QMap<QString, Qt4TextFormatter *> Qt4TextFormatterMap;
23 typedef QMapIterator<QString, Qt4TextFormatter *> Qt4TextFormatterMapIterator;
69 void init(
const QString &
langFile,
const QString &styleFile =
96 void formatString(
int start,
int count,
const QTextCharFormat & format) {
97 setFormat(start, count, format);