This project is read-only.

Code folding

Topics: Developer Forum, Project Management Forum, User Forum
Oct 6, 2009 at 11:43 PM


Could some one help me setting up code folding for ScintillaNET 2.0 + VB or C#.  I have enabled margin2 and included 1 snippet block in my.XML, but still see nothing.


// code comment
function PHPFUNCTION($i) {

echo 'hi there!';


Oct 7, 2009 at 11:52 AM

I guess you forgot to set something of the Language or the Lexer, cause folding should be enabled by default.

See the Property ScintillaNET.Folding.IsEnabled

Oct 7, 2009 at 11:52 PM

So what Language and Lexer have you seen it working with, and could you post partial of the .XML file.

Oct 8, 2009 at 8:06 AM
Edited Oct 8, 2009 at 10:07 AM

I use the cpp lexer and my own language called SWoDL ^^

for an example look at the Autocomplete Discussion [link]

Edit: check your mails ;-)


Oct 8, 2009 at 11:36 PM

Thanks, Code Folding in 4 steps..


  1. Load custom path
  2. Load custom language name
  3. Set Margin2 = 20
  4. Ensure bottom of your XML file is something like this...
<Snippets IsOneKeySelectionEmbedEnabled="True" IsEnabled="true">
  <Snippet Shortcut="Status" IsSurroundsWith="true">[[$StatusMessage$]]</Snippet>
   <Snippet Shortcut="If" IsSurroundsWith="true">
   if ($end$)
   <Snippet Shortcut="IfElse" IsSurroundsWith="true">
   if ($end$)