Text replacement in ScintillaNet

这一生的挚爱 提交于 2020-01-04 02:26:45

问题


I have a ScintillaNet text editing control. I want to replace tabs with 4 x space as the user is typing in the control. I'm not exactly sure where to do this as I'm not very familiar with the control. I have been looking into all the events but nothing seems fit. Can someone advice?


回答1:


You can do this with the control property ScintillaNET.Indentation, from the GUI or programmatically.

Set IndentWidth=4 (four spaces), TabIndents=true, and UseTabs=false.
This will indent 4 spaces ever time the Tab key is pressed.



来源:https://stackoverflow.com/questions/4391471/text-replacement-in-scintillanet

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