开发者

Text replacement in ScintillaNet

开发者 https://www.devze.com 2023-01-30 03:03 出处:网络
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 contro

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. C开发者_StackOverflow社区an someone advice?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消