與此問題類似:Creating and colorizing new constructs on a existing Scintilla lexer但我不想添加,我想修改pyqt4中詞法分析器的文本顏色。我發現的關閉是QScintilla: how to create a new lexer or modify an existing one?,其中用戶剛剛放棄。 基本上我想改用較暗的文本編輯器
我正在使用QScintilla的對象,並且我正在逐步讀取QScintilla對象中的文件。 頁眉myEditor.h class myScintilla: public QScintilla {
public readFile();
};
#include "myEditor.h"
void myEditor::readFile() {
if (FILE* fp =