如何删除qscintilla中的词法分析器

问题描述 投票:0回答:1

如果用户想返回纯文本,如何在qscintilla中删除用.setLexer(lexer)设置的词法分析器?我没有在documentation中找到任何东西。我正在将PyQt5与Python3结合使用。

python pyqt pyqt5 qscintilla
1个回答
0
投票

我尝试@ekumoro在上面的评论中回答,它工作得很好。

self .__ editor.setLexer(无)

https://scintilla.sourceforge.io/ScintillaDoc.html#SCI_SETLEXERenter image description here

© www.soinside.com 2019 - 2024. All rights reserved.