Docs "Code folding Allow groups of lines in a document to be collapsed for easier navigation/editing. Fold/Unfold all children of a fold point Whether to fold/unfold all child fold points when a parent line is folded."
I have code like this everywhere if ($this==0) { warn "hello"; } else { warn "bye"; }
But when I collapse the if statement the else get collapsed too, but if I do this
if ($this==0) { warn "hello"; } else { warn "bye"; }
it works,
any suggestions? beside reformatting? can geany support my code layout?
Thanks
Josh
On 13-04-24 10:58 AM, Josh Nijenhuis wrote:
Docs "Code folding Allow groups of lines in a document to be collapsed for easier navigation/editing. Fold/Unfold all children of a fold point Whether to fold/unfold all child fold points when a parent line is folded."
I have code like this everywhere if ($this==0) { warn "hello"; } else { warn "bye"; }
But when I collapse the if statement the else get collapsed too, but if I do this
if ($this==0) { warn "hello"; } else { warn "bye"; }
it works,
any suggestions? beside reformatting? can geany support my code layout?
I know it's at least supported by the Scintilla editor widget Geany uses[1]. You could try to set it in a `filetypes.<language>` file as per the manual[2]. I think it would look something like this:
[lexer_properties] ... fold.at.else = true ...
Cheers, Matthew Brush
[1] https://github.com/geany/geany/blob/master/scintilla/lexers/LexCPP.cxx#L303 [2] http://www.geany.org/manual/current/index.html#lexer-properties-section
Thanks
Josh _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Tried setting both
[lexer_properties] fold.perl.at.else = true
and
[lexer_properties] fold.at.else = true
And double checked that my configuration got reloaded, using geany 1.23
Still not working,
Matthew, did you get it working or are you guessing it should work?
Josh
On 04/24/13 19:22, Matthew Brush wrote:
On 13-04-24 10:58 AM, Josh Nijenhuis wrote:
Docs "Code folding Allow groups of lines in a document to be collapsed for easier navigation/editing. Fold/Unfold all children of a fold point Whether to fold/unfold all child fold points when a parent line is folded."
I have code like this everywhere if ($this==0) { warn "hello"; } else { warn "bye"; }
But when I collapse the if statement the else get collapsed too, but if I do this
if ($this==0) { warn "hello"; } else { warn "bye"; }
it works,
any suggestions? beside reformatting? can geany support my code layout?
I know it's at least supported by the Scintilla editor widget Geany uses[1]. You could try to set it in a `filetypes.<language>` file as per the manual[2]. I think it would look something like this:
[lexer_properties] ... fold.at.else = true ...
Cheers, Matthew Brush
[1] https://github.com/geany/geany/blob/master/scintilla/lexers/LexCPP.cxx#L303 [2] http://www.geany.org/manual/current/index.html#lexer-properties-section
Thanks
Josh _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
thanks, that works
On 04/25/13 11:14, Colomban Wendling wrote:
Le 25/04/2013 15:47, Josh Nijenhuis a écrit :
Tried setting both
[lexer_properties] fold.perl.at.else = true
it should be =1, not =true
Cheers, Colomban _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Can you clarify what should I do to have it working with .tcl files ? Seems to be by default with python file
On Thu, Apr 25, 2013 at 8:13 PM, Josh Nijenhuis josh@nijenhuis.ca wrote:
thanks, that works
On 04/25/13 11:14, Colomban Wendling wrote:
Le 25/04/2013 15:47, Josh Nijenhuis a écrit :
Tried setting both
[lexer_properties] fold.perl.at.else = true
it should be =1, not =true
Cheers, Colomban ______________________________**_________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-**bin/mailman/listinfo/usershttps://lists.geany.org/cgi-bin/mailman/listinfo/users
______________________________**_________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-**bin/mailman/listinfo/usershttps://lists.geany.org/cgi-bin/mailman/listinfo/users
On 26 April 2013 18:12, Eric Crastes eric.crastes@gmail.com wrote:
Can you clarify what should I do to have it working with .tcl files ?
TCL only supports fold.comment property AFAICT.
Cheers Lex
Seems to be by default with python file
On Thu, Apr 25, 2013 at 8:13 PM, Josh Nijenhuis josh@nijenhuis.ca wrote:
thanks, that works
On 04/25/13 11:14, Colomban Wendling wrote:
Le 25/04/2013 15:47, Josh Nijenhuis a écrit :
Tried setting both
[lexer_properties] fold.perl.at.else = true
it should be =1, not =true
Cheers, Colomban ______________________________**_________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-**bin/mailman/listinfo/usershttps://lists.geany.org/cgi-bin/mailman/listinfo/users
______________________________**_________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-**bin/mailman/listinfo/usershttps://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users