Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6570

    zhouzh2
    Participant

    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 :-(

    #6579

    Yutaka Emura
    Keymaster

    zhouzh2 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!

    #6587

    zhouzh2
    Participant

    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.

    #6591

    Yutaka Emura
    Keymaster

    zhouzh2 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”.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.