notepad++ user defined regions with folding

2019-01-08 08:46发布

I can't figure out how to configure notepad++ to display regions for user defined keywords.

I have a big trace file which shows the start and the end of a procedure. The trace file looks like this:

Beginn abc.def;
   ...
   Beginn ghi.jkl;
   ...
   Ende ghi.jkl;
   ...
Ende abc.def;

I would like to fold those regions like this:

[+] Beginn abc.def;

or

[-] Beginn abc.def;
       ...
[+]    Beginn ghi.jkl;
       ...
    Ende abc.def;

How do I configure my notepad++ to display this. Is it possible? Do you have any other suggestions?

7条回答
放荡不羁爱自由
2楼-- · 2019-01-08 09:48

STEP ONE: Add a unique key with open and close (i.e.,

#1
{{{
#2
{{{
#2
}}}
##
}}}

Use indentation and/or comments to indicate nest-level.

Step 2: {CTRL}-H when you're finished. Replace all '{{{' and '}}}'.

STEP 3: Comment strip (app).

查看更多
登录 后发表回答