Differences

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

Link to this comparison view

Next revision
Previous revision
howtos:adding_fold_points [2014/03/06 08:20] – created tuxvinyardshowtos:adding_fold_points [2023/12/07 11:32] (current) – complete broken sentence about scintilla configuration geanyfan66
Line 1: Line 1:
 +[[howtos:start]]
 ====== Adding Manual or Custom Fold Points ====== ====== Adding Manual or Custom Fold Points ======
  
Line 7: 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 [[https://www.geany.org/manual/current/index.html#lexer-properties-section|Lexer properties]] of your configuration. 
 + 
 +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 30: 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}} 
Print/export