Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
howtos:adding_fold_points [2014/03/06 09:21] – add link tuxvinyardshowtos:adding_fold_points [2023/12/07 11:31] – clarify folding configuration inherited from scintilla geanyfan66
Line 8: Line 8:
 To add a custom fold-point, the syntax can vary, depending on the language being used.  There is a list in the Scintilla docs, here: To add a custom fold-point, the syntax can vary, depending on the language being used.  There is a list in the Scintilla docs, here:
  
-http://www.scintilla.org/SciTEDoc.html   (do a page search for 'FB' , it's about halfway down the page, no index-link unfortunately)+https://www.scintilla.org/SciTEDoc.html#property-fold.basic.comment.explicit
  
-Remember Geany uses the good work from the Scintilla project as its foundations.+Remember Geany uses the good work from the Scintilla project as its foundations and Scintilla configurations can be set in the . 
 + 
 +For example, to enable explicit fold blocks in the [[https://www.geany.org/manual/current/index.html#lexer-properties-section|Lexer properties]] section of your C code configuration, you can put the following your $HOME/.config/geany/filedefs/filetypes.c: 
 + 
 +<code> 
 +[lexer_properties] 
 +fold.comment=1 
 +fold.cpp.comment.multiline=1 
 +fold.cpp.comment.explicit=1 
 + 
 +</code> 
 + 
 +Try the 'Numbered Bookmarks' plugin. This has an option to 'save the fold state'
  
 <code> <code>
Line 31: Line 43:
  
 </code> </code>
-You will need to experiment a little ...+You may need to experiment a little ...
  
 {{tag>howto fold fold-points folding code-folding}} {{tag>howto fold fold-points folding code-folding}}
  
Print/export