【发布时间】:2016-11-30 08:30:43
【问题描述】:
有谁知道如何在 C++ 中使用 wxStyledTextCtrl 获得智能缩进?
我一直在尝试以下各种变体,但没有明显成功:
_textEd->SetProperty(wxT("indentation.smartindenttype"), wxT("indentation:simple"));
_textEd->SetProperty(wxT("indentation.indentwidth"), wxT("4"));
_textEd->SetProperty(wxT("indentation.tabwidth"), wxT("4"));
_textEd->SetProperty("spell.mistake.indicator", "style:squigglelow");
注意:Indentation and smart indent in ScintillaNET 涵盖了 .NET 的这个问题。
【问题讨论】:
-
stc 样本对您有用吗?你的 wx 版本和操作系统/工具包是什么?
标签: c++ wxwidgets scintilla wxstyledtextctrl