after talking with the developer of scintilla, it turns out that this feature
is off by default in scintilla.

could you turn it off too in geany? the behaviour interferes with ordinary code
practices (ie. commenting out code blocks eg. for testing), and is very
unexpected if you don't specifically know it's there, which most users won't,
as it's documented nowhere obvious.


On 05/10/2010 09:19 PM, Enrico Tröger wrote:
> On Sun, 9 May 2010 22:17:42 +0200, Enrico wrote:
> 
>> On Sun, 09 May 2010 20:09:12 +0100, Ximin wrote:
>>
>> Hi,
>>
>>> make a new file called "test.java", then open it in geany. paste in:
>>>
>>>     public void test() {
>>>             //}
>>>             System.out.println("hello, world");
>>>     }
>>>
>>> and try to fold the method definition to make it invisible (the [-]
>>> button next to the line number). notice that it folds the method at
>>> the commented-out brace, rather than at the actual end of the
>>> method.
>> this is a bug in Scintilla, the editing component used by Geany.
>> Could you please report this issue against the Scintilla project?
> 
> For reference, Ximin reported the issue at
> https://sourceforge.net/tracker/?func=detail&atid=102439&aid=2999043&group_id=2439.
> Thanks.
> 
> As Neil said, this can be configured by a lexer property.
> Unfortunately, these can't be set in Geany 0.18.1.
> But with the upcoming 0.19 release this will be possible by adding the
> following lines to ~/.config/geany/fieldefs/filetypes.java:
> 
> [lexer_properties]
> fold.comment=0
> 
> 
> Regards,
> Enrico
> 



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to