|
Revision 20, 455 bytes
(checked in by krobillard, 3 years ago)
|
|
Thune - Imported debugger.
|
| Line | |
|---|
| 1 | #ifndef THUNEHIGHLIGHTER_H |
|---|
| 2 | #define THUNEHIGHLIGHTER_H |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | #include <QSyntaxHighlighter> |
|---|
| 6 | #include <QHash> |
|---|
| 7 | #include <QTextCharFormat> |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | class QTextDocument; |
|---|
| 11 | |
|---|
| 12 | class ThuneHighlight : public QSyntaxHighlighter |
|---|
| 13 | { |
|---|
| 14 | public: |
|---|
| 15 | |
|---|
| 16 | ThuneHighlight(QTextDocument *parent = 0); |
|---|
| 17 | |
|---|
| 18 | protected: |
|---|
| 19 | |
|---|
| 20 | void highlightBlock(const QString &text); |
|---|
| 21 | |
|---|
| 22 | private: |
|---|
| 23 | |
|---|
| 24 | QHash<QString,QTextCharFormat> mappings; |
|---|
| 25 | QTextCharFormat multiLineCommentFormat; |
|---|
| 26 | }; |
|---|
| 27 | |
|---|
| 28 | |
|---|
| 29 | #endif // THUNEHIGHLIGHTER_H |
|---|