i'm trying to set up my sql lexers in order to add code folding
support exactly like in properties files. for instance :
[-][1st section]....only display the sections headers when folding
code
select * from table1
select * from table2
select * from table5
[-][2nd section]....only display the sections headers when folding
code
select * from table1
--comments blabla ...
i don't know how to implement this in _foldsymbols
thanks for your help :)
ps : sorry for my bad english :-/
I don't understand what you are trying to fold. The '[-][1st section]...'
and 'code' parts are throwing me off. Are they part of your SQL?
If your code is indented consistently, then maybe fold.by.indentation=1 is
what you are looking for?
mitchell
mitchell
--
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest@googlegroups.com.
To unsubscribe from this group, send email to scite-interest+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en.
> I was confused in my explanation, sorry.
> I want to fold each block of code under square brackets [].�
> The following codes aren't neccesary indented therefor fold.by.indentation=1 don't help me much.
I don't see how you can detect if a [] sequence is a beginning or an end
so I doubt it's possible to do what you are suggesting.
mitchell
>
> Minh
>
> 2011/12/21 mitchell <co...@caladbolg.net>
> Hi,
>
> On Tue, 20 Dec 2011, Saigon wrote:
> hi,
>
> i'm trying to set up my sql lexers in order to add code folding
> support exactly like in properties files. for instance :
>
> [-][1st section]....only display the sections headers when folding
> code
> �select * from table1
> �select * from table2
> �select * from table5
> [-][2nd section]....only display the sections headers when folding
> code
> �select * from table1
> �--comments blabla ...
>
> i don't know how to implement this in _foldsymbols
> thanks for your help :)
>
>
> I don't understand what you are trying to fold. The '[-][1st section]...' and 'code' parts are throwing me off. Are they part of your
> SQL?
>
> If your code is indented consistently, then maybe fold.by.indentation=1 is what you are looking for?
>
> mitchell
>
> --
> You received this message because you are subscribed to the Google Groups "scite-interest" group.
> To post to this group, send email to scite-i...@googlegroups.com.
> To unsubscribe from this group, send email to scite-interes...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en.
>
>
> --
> You received this message because you are subscribed to the Google Groups "scite-interest" group.
> To post to this group, send email to scite-i...@googlegroups.com.
> To unsubscribe from this group, send email to scite-interes...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en.
>
>
mitchell