2

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?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
n00b
  • 901
  • 1
  • 9
  • 20

2 Answers2

0

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.

Philipp Molitor
  • 387
  • 4
  • 14
0

For people looking to add indentation - note ScintillaNET 3.x+ does not have indentation built into the base code. At least, not as of 3.6.3.

See this message for an example of sending indentation commands directly to Scintilla.

See this message with information from jacobslusser (the maintainer of ScintillaNET) for information about a simple indentation system in ScintillaNET.

RobCole
  • 90
  • 8