如果用户想返回纯文本,如何在qscintilla中删除用.setLexer(lexer)设置的词法分析器?我没有在documentation中找到任何东西。我正在将PyQt5与Python3结合使用。
我尝试@ekumoro在上面的评论中回答,它工作得很好。
self .__ editor.setLexer(无)
https://scintilla.sourceforge.io/ScintillaDoc.html#SCI_SETLEXER