Folding is not working

Topics: Developer Forum, User Forum
Mar 4, 2015 at 6:26 PM

I am trying to use ScintillaNet in WinForms App, however it seems folding is not working with C# language.

May be I am doing something wrong, could you pls help?


private void FM_CatalogModuleDesigner_Load(object sender, EventArgs e)
scintilla1.ConfigurationManager.Language = "cs";
scintilla1.Margins[0].Width = 20;
scintilla1.Text = CatalogModuleText;
scintilla1.Folding.IsEnabled = true;

Mar 6, 2015 at 6:34 PM
Hi, did you tryed to set Margins->Margin2->Width to something like 20? ... Folding works but is not visible by default. I found it when reading about showing line numbers.
Mar 8, 2015 at 4:41 AM
Great! Many thanks, it is working!
Mar 18, 2015 at 5:47 PM
Would maybe help of they were called something other than Margin1 and Margin2.
Quite a bit unintuitive.