RetroShare/retroshare-gui/src/util/RsSyntaxHighlighter.h

27 lines
412 B
C
Raw Normal View History

2015-12-06 15:11:47 -05:00
#ifndef RSSYNTAXHIGHLIGHTER_H
#define RSSYNTAXHIGHLIGHTER_H
#include <QObject>
#include <QSyntaxHighlighter>
#include <QTextEdit>
class RsSyntaxHighlighter : public QSyntaxHighlighter
{
Q_OBJECT
public:
RsSyntaxHighlighter(QTextEdit *parent = 0);
protected:
void highlightBlock(const QString &text);
2015-12-06 15:11:47 -05:00
private:
QTextCharFormat quotationFormat;
signals:
public slots:
};
#endif // RSSYNTAXHIGHLIGHTER_H