39 #include <QtGui/QSyntaxHighlighter>
40 #include <QRegularExpression>
50 void addTag(
const QString& tag,
const QTextCharFormat& format,
const QString& parent = QString());
58 QRegularExpression start;
59 QRegularExpression end;
60 QTextCharFormat format;
61 std::map<int, Rule>::const_iterator parent;
63 using Rules = std::map<int, Rule>;
66 Rules::const_iterator highlight(Rules::const_iterator active, QStringRef
text,
int start,
bool search_end,
int& end);
void highlightBlock(const QString &text) override
void addTag(const QString &tag, const QTextCharFormat &format, const QString &parent=QString())
XmlSyntaxHighlighter(QTextDocument *parent=nullptr)