- AuthorPosts
- November 12, 2008 at 10:47 am #6570zhouzh2Participant
For example, in “ini” files , codes are presented this way:
[some thing]
some code here
some code here
some code here
(blank line here)
[some thing else]
another code here
another code here
(blank line here)
...
...
...I would like the outline plug-in work like this:
+[some thing][...]
+[some thing else][...]Is this possible?
I have set “Custom (Specify Begin as Level 1)/End as Level 2)” level 1: “]n$”
level 2: “^n”
but it doesn’t work. Outline just fold everything below the line :-(November 12, 2008 at 10:41 pm #6579Yutaka EmuraKeymasterzhouzh2 wrote:
For example, in “ini” files , codes are presented this way:[some thing]
some code here
some code here
some code here
(blank line here)
[some thing else]
another code here
another code here
(blank line here)
...
...
...I would like the outline plug-in work like this:
+[some thing][...]
+[some thing else][...]Is this possible?
I have set “Custom (Specify Begin as Level 1)/End as Level 2)” level 1: “]n$”
level 2: “^n”
but it doesn’t work. Outline just fold everything below the line :-(Please use the latest version (currently RC4), and specify blank as the Level 2 string. Thanks!
November 13, 2008 at 8:22 am #6587zhouzh2ParticipantYes, the lastest RC4 works. Beautifully done!
Just one more question: why “blank” works but regex “^n” doesn’t? IMHO they should be the same.November 14, 2008 at 6:41 pm #6591Yutaka EmuraKeymasterzhouzh2 wrote:
Yes, the lastest RC4 works. Beautifully done!
Just one more question: why “blank” works but regex “^n” doesn’t? IMHO they should be the same.When the plug-in compares each line with a regular expression, each line does not contain a new line. Thus, regular expressions should not contains “n”.
- AuthorPosts
- You must be logged in to reply to this topic.