This project is read-only.

Folding is not working

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

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?

Thanks.

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;
scintilla1.ConfigurationManager.Configure();
}

Thanks
Mar 6, 2015 at 7: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 5:41 AM
Great! Many thanks, it is working!
Mar 18, 2015 at 6:47 PM
Would maybe help of they were called something other than Margin1 and Margin2.
Quite a bit unintuitive.