我正在尝试在 Qt5.3 旁边使用 QScintilla 2.8.3 来制作一个小型文本编辑器,但我在折叠时遇到了问题。
正如你在这里看到的:
折叠块的末端与闭合支架不对应。
这就是我设置词法分析器和折叠的方式:
cpplexer->setDefaultFont( font );
cpplexer->setFoldAtElse( true );
cpplexer->setFoldComments( true );
cpplexer->setFoldCompact( true );
cpplexer->setFoldPreprocessor( true );
editor->setLexer( cpplexer );
editor->setFolding( QsciScintilla::BoxedTreeFoldStyle );
是否可以将块结束与右括号在同一行?是否有这个标志或者我需要在 QScintilla 的源代码中更改某些内容?