Code folding ending with newline character

Syntax highlighting, code folding, brace matching, code indenting, and function list

Code folding ending with newline character

Postby murphy » Tue Aug 01, 2006 1:00 pm

I was wondering if anyone knows a way to end a fold section at a newline character?

The code style I am using is:

Code: Select all
[title_of_thing]
stuff
morestuff
etc


[next_thing]
blah
blahblah


I use a double newline between blocks so ending on two newline characters would be fine (CR or LF or CR/LF - the interpreter can handle it either way round so I can save my files in either unix or dos format).

So what I want is to start the code fold at "[" and end at "\n\n" but I don't know how to put newline characters into the wordfile.txt, or even if it is possible. I tried ^p like it is in the UE regex but that did not work. :(

Any help much appreciated, thanks!!

-Murphy
User avatar
murphy
Newbie
 
Posts: 1
Joined: Mon Jul 31, 2006 11:00 pm

Re: Code folding ending with newline character

Postby Mofi » Wed Aug 02, 2006 5:06 am

I have requested this also a few months ago, but it is (still = V12.10a) not possible. Use

/Open Fold Strings = "["
/Close Fold Strings = "["
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4049
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna


Return to Syntax Highlighting