RPTools.net

Discussion and Support

Skip to content

It is currently Mon Nov 20, 2017 2:01 pm 






Reply to topic  [ 102 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7

Previous topic | Next topic 

  Print view

Author Message
 Offline
Cave Troll
 
Joined: Sun Jan 24, 2010 3:07 pm
Posts: 40
 Post subject: On code folding in Notepad++
PostPosted: Sat Jul 05, 2014 5:23 am 
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


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 7947
Location: Bay Area
 Post subject: Re: On code folding in Notepad++
PostPosted: Sat Jul 05, 2014 1:23 pm 
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.

_________________
Downloads:


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9419
Location: Netherlands
 Post subject: Re: Notepad++ Maptool Text Editor config file [UPDATE: 5/31/
PostPosted: Wed Jul 16, 2014 1:58 am 
Olla senor.

It appears that the choice of
Code:
%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:
!!
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?

_________________
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent and
DPI.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 7947
Location: Bay Area
 Post subject: Re: Notepad++ Maptool Text Editor config file [UPDATE: 5/31/
PostPosted: Wed Jul 16, 2014 6:40 am 
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

_________________
Downloads:


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9419
Location: Netherlands
 Post subject: Re: Notepad++ Maptool Text Editor config file [UPDATE: 5/31/
PostPosted: Wed Jul 16, 2014 12:30 pm 
Thnx. I think they already solved it.

_________________
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent and
DPI.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS


Top
 Profile  
 
User avatar  Offline
Dragon
 
Joined: Fri Dec 14, 2007 9:00 am
Posts: 417
 Post subject: Re: Notepad++ Maptool Text Editor config file [UPDATE: 5/31/
PostPosted: Wed Jul 30, 2014 9:24 am 
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 !


Top
 Profile  
 
 Offline
Cave Troll
 
Joined: Wed Jun 01, 2011 5:09 am
Posts: 62
 Post subject: Re: Notepad++ Maptool Text Editor config file [UPDATE: 5/31/
PostPosted: Sun Nov 30, 2014 2:14 am 
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++?

_________________
My Stuff:
DnD 5e Treasure Generator
Macro Library of DnD 5e racial traits/skills


Top
 Profile  
 
User avatar  Offline
Dragon
 
Joined: Fri Dec 14, 2007 9:00 am
Posts: 417
 Post subject: Re: Notepad++ Maptool Text Editor config file [UPDATE: 5/31/
PostPosted: Sun Nov 30, 2014 3:13 am 
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.


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 7947
Location: Bay Area
 Post subject: Re: Notepad++ Maptool Text Editor config file [UPDATE: 5/31/
PostPosted: Sun Nov 30, 2014 3:16 am 
This is kind of out dates with the newer version of notepad++.

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

_________________
Downloads:


Top
 Profile  
 
 Offline
Cave Troll
 
Joined: Wed Jun 01, 2011 5:09 am
Posts: 62
 Post subject: Re: Notepad++ Maptool Text Editor config file [UPDATE: 5/31/
PostPosted: Sun Nov 30, 2014 1:35 pm 
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 :)

_________________
My Stuff:
DnD 5e Treasure Generator
Macro Library of DnD 5e racial traits/skills


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 7947
Location: Bay Area
 Post subject: Re: Notepad++ Maptool Text Editor config file [UPDATE: 5/31/
PostPosted: Sun Nov 30, 2014 3:11 pm 
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.

_________________
Downloads:


Top
 Profile  
 
 Offline
Cave Troll
 
Joined: Wed Nov 03, 2010 1:20 pm
Posts: 49
 Post subject: Re: Notepad++ Maptool Text Editor config file [UPDATE: 5/31/
PostPosted: Sun Apr 12, 2015 1:40 pm 
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!


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 102 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there are 4 users online :: 0 registered, 0 hidden and 4 guests (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 4 guests





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman