Dear All, I need your help.
I have to work with text file where block delimiter is more than 1 empty lines. How to make regex for foldingStopMarker I was trying foldingStopMarker = '(^$){2,}'; but without success.
Thank you in advance.
Example " Block1 text text text
text text text
Block2 text text text
text text text
''
I have to work with text file where block delimiter is more than 1 empty lines.
You need to alter the file to make it amenable to TM's folding scheme:
One solution is to do a find and replace on "\n\n",replacing with something like "end\n" or your choice of marker (closing bracket, a symbol like or whatever else unique which appeals to you)
That makes the file easy to read, and easy to write a fold for.
t
On 2006-08-21 15:41:27 +0300, Timothy Bates timothy.c.bates@gmail.com said: Very strange \n\n works in find but foldingStopMarker ignores it. Is the any restrictions for patterns for foldingStopMarker ?
I have to work with text file where block delimiter is more than 1 empty lines.
You need to alter the file to make it amenable to TM's folding scheme:
One solution is to do a find and replace on "\n\n",replacing with something like "end\n" or your choice of marker (closing bracket, a symbol like ─ or whatever else unique which appeals to you)
That makes the file easy to read, and easy to write a fold for.
t
On 2006-08-21 15:41:27 +0300, Timothy Bates timothy.c.bates@gmail.com said: Very strange \n\n works in find but foldingStopMarker ignores it. Is the any restrictions for patterns for foldingStopMarker ?
All patterns in language files are limited to matching one line at a time. So what our trying to do is impossible. This is done because otherwise typing a single char would be able to change the styling/ foldings etc, of many many lines; could cause a cascade effect of slowness; not good.