Commit 9d59440c authored by Осовик Полина Александровна's avatar Осовик Полина Александровна
Browse files

Delete highlighter.h

parent 16d9ad2b
No related merge requests found
Showing with 0 additions and 26 deletions
+0 -26
#ifndef HIGHLIGHTER_H
#define HIGHLIGHTER_H
#include <QSyntaxHighlighter>
#include <QtXml>
class Highlighter : public QSyntaxHighlighter
{
Q_OBJECT
public:
Highlighter(QFile *xml, QString lang, QTextDocument *parent = 0);
protected:
void highlightBlock(const QString &text) override;
private:
struct HighlightingRule
{
QRegularExpression pattern;
QTextCharFormat format;
};
QVector<HighlightingRule> highlightingRules;
};
#endif // HIGHLIGHTER_H
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment