Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Осовик Полина Александровна
Lab34editor
Commits
9d59440c
Commit
9d59440c
authored
4 years ago
by
Осовик Полина Александровна
Browse files
Options
Download
Patches
Plain Diff
Delete highlighter.h
parent
16d9ad2b
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
highlighter.h
+0
-26
highlighter.h
with
0 additions
and
26 deletions
+0
-26
highlighter.h
deleted
100644 → 0
+
0
−
26
View file @
16d9ad2b
#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
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets