【发布时间】:2012-07-07 10:28:02
【问题描述】:
有人可以描述我如何在 Scintilla.net 中进行缩进吗?
this.scintilla1.Indentation.SmartIndentType = ScintillaNet.SmartIndent.Simple;
我不知道需要做什么才能让它发挥作用。谁能描述需要实现哪些事件处理程序才能使缩进工作?
【问题讨论】:
标签: c# .net indentation scintilla
有人可以描述我如何在 Scintilla.net 中进行缩进吗?
this.scintilla1.Indentation.SmartIndentType = ScintillaNet.SmartIndent.Simple;
我不知道需要做什么才能让它发挥作用。谁能描述需要实现哪些事件处理程序才能使缩进工作?
【问题讨论】:
标签: c# .net indentation scintilla
诀窍是将Indentation.IndentWidth 设置为8,如果Indentation.TabWidth 也设置为8。
当然Indentation.SmartIndentType 仍必须设置为Simple。
【讨论】:
对于希望添加缩进的人 - 请注意 ScintillaNET 3.x+ 没有内置到基本代码中的缩进。至少,从 3.6.3 开始。
见this message for an example of sending indentation commands directly to Scintilla。
【讨论】: