void MySynraxHighlishter::highlightBlock(const QString &text)
{
QTextCharFormat format; //字符格式
format.setFontWeight(QFont::Bold); //字符格式
format.setBackground(Qt:
Qt:语法高亮重写
最新推荐文章于 2022-10-23 16:16:24 发布
void MySynraxHighlishter::highlightBlock(const QString &text)
{
QTextCharFormat format; //字符格式
format.setFontWeight(QFont::Bold); //字符格式
format.setBackground(Qt: