root/trunk/thune/debugger/ThuneHighlight.h

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
10class QTextDocument;
11
12class ThuneHighlight : public QSyntaxHighlighter
13{
14public:
15
16    ThuneHighlight(QTextDocument *parent = 0);
17
18protected:
19
20    void highlightBlock(const QString &text);
21
22private:
23
24    QHash<QString,QTextCharFormat> mappings;
25    QTextCharFormat multiLineCommentFormat;
26};
27
28
29#endif  // THUNEHIGHLIGHTER_H
Note: See TracBrowser for help on using the browser.