qsyntaxhighlighter专题

Qt Qsyntaxhighlighter给QTextEdit设置丰富的语法高亮格式

/*语法高亮* *包括关键字、函数、注释、@{}、全局变量等等*/#ifndef MYSYNTAXHIGHLIGHTER_H#define MYSYNTAXHIGHLIGHTER_H#include <QSyntaxHighlighter>#include <QTextCharFormat>//#include <QObject>//#include <QRegExp>#include