Page 7 of 7

On code folding in Notepad++

Posted: Sat Jul 05, 2014 6:23 am
by bubblobill
For those who just want the code to fold without manually setting fold points, I found that I got acceptable usability by altering the "Folding in code 1 style:" Set Open: to { and Close: to }.

Since just about everything bulky resides inside code blocks with {}, it helps keep things manageable.

Not ideal, but good for now.

Bubblo

Re: On code folding in Notepad++

Posted: Sat Jul 05, 2014 2:23 pm
by aliasmask
bubblobill wrote:For those who just want the code to fold without manually setting fold points, I found that I got acceptable usability by altering the "Folding in code 1 style:" Set Open: to { and Close: to }.

Since just about everything bulky resides inside code blocks with {}, it helps keep things manageable.

Not ideal, but good for now.

Bubblo
To clarify the above, under View | User-defined Dialog - select maptool and under the Folder & Default tab you can set the open/close for blocks. By my default, I have @@ and !! for open and close. You can add { and } for another level of folding. Just separate with a space in textbox. I'm not sure if bubblobill is talking about the maptool config file, but you can do it manually as described above.

Generally speaking, I try to avoid code that is longer than one screen and with proper indentation of the code I never really found the need for adding more folds. I use the @@ and !! for hiding macros I'm not working on and will place a bookmark on the name of macro if I make any changes to it.

Re: Notepad++ Maptool Text Editor config file [UPDATE: 5/31/

Posted: Wed Jul 16, 2014 2:58 am
by wolph42
Olla senor.

It appears that the choice of

Code: Select all

%0A%0A!!%0A
as delimiters brings some issues into the MOTE macro editor. The mote parser has to treat the linebreak differently then the ! character and thus they wont make into the regex parser (as a whole). Hence they've currently used just

Code: Select all

!!
which you can understand did not work so well, when I fed it all the code of the bag of tricks...

The question now is:

is the !! something internal of np++ and you can't do anything about it
OR
is it your choice and can it be easily changed? If so: how?

edit: I already notices that they're user defined. So that leaves the 'how' do I change that and what would you suggest?

Re: Notepad++ Maptool Text Editor config file [UPDATE: 5/31/

Posted: Wed Jul 16, 2014 7:40 am
by aliasmask
If you're not using notepad, or rpedit then you don't need !! at all. But if you want to change the ending delimiter for a block in Notepad++ then go to View | User Defined Dialog, select maptool. Then at the bottom of Folder Close Keyword Settings change it to something else like ^^. This is really only used for NP++ and actually could be omitted from the rpedit parser. But this will effect the ctrl-shift-C macro for copying a block of text. But if you import the ^^, then the rpedit parser will leave it in the code. You can change your version if you do a search for !! and change it to whatever you use.

All the rpedit parser needs is @@macroName which is the original format used by CiF as seen here: http://forums.rptools.net/viewtopic.php ... 70#p178685

Re: Notepad++ Maptool Text Editor config file [UPDATE: 5/31/

Posted: Wed Jul 16, 2014 1:30 pm
by wolph42
Thnx. I think they already solved it.

Re: Notepad++ Maptool Text Editor config file [UPDATE: 5/31/

Posted: Wed Jul 30, 2014 10:24 am
by booga
Thanks for this great resource Aliasmask, it's been very handy when developing frameworks.

FYI the individual download links in your OP seem dead (they are the ones pointing to Sugarsync). The .zip file at the very hand is still valid though, but I don't know if it is as up to date as the individual files.

Thanks !

Re: Notepad++ Maptool Text Editor config file [UPDATE: 5/31/

Posted: Sun Nov 30, 2014 2:14 am
by dantarith
The Download locations are no longer valid. Do you have a new hosting location where I can get this cool looking stuff for my Notepad++?

Re: Notepad++ Maptool Text Editor config file [UPDATE: 5/31/

Posted: Sun Nov 30, 2014 3:13 am
by booga
dantarith wrote:The Download locations are no longer valid. Do you have a new hosting location where I can get this cool looking stuff for my Notepad++?

The very last link of the OP should include all the files you need in a zip file.

Re: Notepad++ Maptool Text Editor config file [UPDATE: 5/31/

Posted: Sun Nov 30, 2014 3:16 am
by aliasmask
This is kind of out dates with the newer version of notepad++.

Try this thread and download: http://forums.rptools.net/viewtopic.php?f=20&t=25531

Re: Notepad++ Maptool Text Editor config file [UPDATE: 5/31/

Posted: Sun Nov 30, 2014 1:35 pm
by dantarith
I must have had a corrupted download. I removed the org. files and downloaded again and this time it worked. Well kinda. I had to go to the original post to get the maptool Theme file as there wasn't one in the new zip pkg.

Anyway thanks :)

Re: Notepad++ Maptool Text Editor config file [UPDATE: 5/31/

Posted: Sun Nov 30, 2014 3:11 pm
by aliasmask
theme isn't really needed, but when put in to the root exe folder speeds up really large files with collapsible folders. Not sure why.

Re: Notepad++ Maptool Text Editor config file [UPDATE: 5/31/

Posted: Sun Apr 12, 2015 2:40 pm
by Cryotech
Aliasmask you're the shiz!! lol.

I LOVE this Notepad++ add-on! I typically don't use NotePad++ for my programming need but having spent nearly 4 hours trying to find an issue in one of my macros, NOT to use this would be insane.

Again, thanks for such as awesome and totally useful tool!

Re: Notepad++ Maptool Text Editor config file [UPDATE: 5/31/12]

Posted: Thu Jun 28, 2018 4:35 pm
by bobifle
All the notepad links are dead.

Re: Notepad++ Maptool Text Editor config file [UPDATE: 5/31/12]

Posted: Thu Jun 28, 2018 6:50 pm
by aliasmask
First post bottom is a zip with all the files.

Re: Notepad++ Maptool Text Editor config file [UPDATE: 5/31/12]

Posted: Thu Jun 28, 2018 7:22 pm
by bobifle
Ok thanks, missed that. You should def bump the zip file at the top of the post.