Indentation and smart indent in ScintillaNET

ε祈祈猫儿з 提交于 2019-12-11 01:39:36

问题


Can someone describe me how to make indentation work in Scintilla.net?

this.scintilla1.Indentation.SmartIndentType = ScintillaNet.SmartIndent.Simple;

I'm confused on what needs to be done to get it to work. Can someone describe what event handlers need to be implemented to get indentation to work?


回答1:


The trick is to set Indentation.IndentWidth to 8, if Indentation.TabWidth is also set to 8.

Of cource Indentation.SmartIndentType must still be set to Simple.



来源:https://stackoverflow.com/questions/11374206/indentation-and-smart-indent-in-scintillanet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!