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

Show off your RPG maps, campaigns, and tokens. Share your gaming experiences and stories under General Discussion and save this forum for things you've created that may help others run their own games. Use the subforums when appropriate.

Moderators: Azhrei, dorpond, trevor, Gamerdude

bubblobill
Cave Troll
Posts: 95
Joined: Sun Jan 24, 2010 3:07 pm

On code folding in Notepad++

Post 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

User avatar
aliasmask
Deity
Posts: 8578
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: On code folding in Notepad++

Post 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.

User avatar
wolph42
Deity
Posts: 9703
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

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

Post 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?

User avatar
aliasmask
Deity
Posts: 8578
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

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

Post 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: viewtopic.php?f=8&t=16770#p178685


User avatar
booga
Dragon
Posts: 365
Joined: Fri Dec 14, 2007 9:00 am

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

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

dantarith
Cave Troll
Posts: 62
Joined: Wed Jun 01, 2011 6:09 am

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

Post 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++?

User avatar
booga
Dragon
Posts: 365
Joined: Fri Dec 14, 2007 9:00 am

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

Post 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.

User avatar
aliasmask
Deity
Posts: 8578
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

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

Post by aliasmask »

This is kind of out dates with the newer version of notepad++.

Try this thread and download: viewtopic.php?f=20&t=25531

dantarith
Cave Troll
Posts: 62
Joined: Wed Jun 01, 2011 6:09 am

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

Post 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 :)

User avatar
aliasmask
Deity
Posts: 8578
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

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

Post 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.

Cryotech
Cave Troll
Posts: 41
Joined: Wed Nov 03, 2010 2:20 pm

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

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

bobifle
Giant
Posts: 217
Joined: Thu Oct 19, 2017 12:36 pm

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

Post by bobifle »

All the notepad links are dead.

User avatar
aliasmask
Deity
Posts: 8578
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

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

Post by aliasmask »

First post bottom is a zip with all the files.

bobifle
Giant
Posts: 217
Joined: Thu Oct 19, 2017 12:36 pm

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

Post by bobifle »

Ok thanks, missed that. You should def bump the zip file at the top of the post.

Post Reply

Return to “User Creations”