mirror of
https://github.com/fralx/LimeReport.git
synced 2025-11-25 00:18:06 +03:00
Highlighter has been added
This commit is contained in:
17
limereport/scripteditor/lrscripthighlighter.h
Normal file
17
limereport/scripteditor/lrscripthighlighter.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef LRSCRIPTHIGHLIGHTER_H
|
||||
#define LRSCRIPTHIGHLIGHTER_H
|
||||
|
||||
#include <QSyntaxHighlighter>
|
||||
|
||||
namespace LimeReport{
|
||||
|
||||
class ScriptHighlighter : QSyntaxHighlighter{
|
||||
public:
|
||||
ScriptHighlighter(QTextDocument* parent): QSyntaxHighlighter(parent){}
|
||||
// QSyntaxHighlighter interface
|
||||
protected:
|
||||
void highlightBlock(const QString& text);
|
||||
};
|
||||
|
||||
}
|
||||
#endif // LRSCRIPTHIGHLIGHTER_H
|
||||
Reference in New Issue
Block a user