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: dorpond, trevor, Azhrei, Gamerdude

Post Reply
User avatar
aliasmask
RPTools Team
Posts: 9023
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

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

Post by aliasmask »

Latest version is Notepad++ 5.9.3 (8/24/11)

Note: I'll update this page eventually, but I recommend using Notepad Portable for large files (3000+ lines?). Also, for both versions, I recommend installing from the Plug'n Manager "TextFX Characters". It has many useful text editing tools.

Notepad++ is for windows based OS's. (Use VIM or related for MAC). Notepad++ uses keyword highlighting and function keyword hints. It also has TextFX which is great for doing many text manipulating things. You can use auto-complete for keywords and function and use collapsible folders.

version history

After downloading Notepad++, download these files to the specified locations (located in zip file):
__________________________________________________________________________________________

Place these files in the Applications Data folder under your log in name in the Notepad++ directory.
For example my directory is:

Code: Select all

C:\Documents and Settings\Chris\Application Data\Notepad++
userDefineLang.xml
  • This file is used to format the text and colors to be used with Maptool.
  • Keywords, function names and comments are color coded for easy reading.
  • Parenthesis and brace matching.
  • Collapsible block characters defined.


shortcuts.xml
  • This file is used for custom macros.
  • Copy Block (shift-ctrl-C) - Place cursor anywhere in collapsible block of text and it will copy it to clipboard.
  • I will develop more macros soon.

__________________________________________________________________________________________

Place this file in to your plugins APIs folder.
For example my directory is:

Code: Select all

C:\Program Files\Notepad++\plugins\APIs
maptool.xml
  • This file is used for function tooltips and keywords used in function auto-completion.
  • Go to Settings | Preferences
  • Select Backup/Auto Completion TAB
  • Check Enable auto-completion on each input
  • Select Function completion
  • Check Function parameter hint on input
    • You can also leave this unchecked and use ctrl-shift-spacebar to show function hints.
  • Note: Use ctrl-enter for word auto-completion when typing out long variable names. Depending on your preference, set the "From N th" to 3 or 4 to autocomplete keywords on the nth character.
  • Warning: Sometimes the auto-completion may mess up and crash out. It doesn't happen often, but I recommend use of the Auto-save plugin. It can be installed through the plug-in manager. Despite this bug(?), it's still well worth using. It could just be my system as well, but I thought I'd give you a heads up.

__________________________________________________________________________________________

Place this file in the Maptool jar folder.
For example my directory is:

Code: Select all

E:\Gaming\maptool-1.3.b76
Default.theme
  • This file will make the following changes to MapTool interface:
  • Change the text pane font to monospaced 14pt BOLD for editing macros.
  • Change the text area font used by RPedit to edit macros to monospaced 14pt BOLD.
  • Change the button text spacing on buttons from 12px to 4px for a better look.
  • Thanks to JohnathanTheBlack for his post about TinyLaF.
__________________________________________________________________________________________

* Disclaimer - Since I copied most of the function information from the wiki, there is no guarantee that the info is 100% correct. I also made some slight alterations to some of the descriptions for space and what I thought may have been correctness. If anything seems out of whack, just post here and I'll update at my discretion.
Attachments
Notepad++ addons.zip
Updated 7-14-18
(31.08 KiB) Downloaded 379 times
Last edited by aliasmask on Wed Aug 24, 2011 10:27 am, edited 38 times in total.

User avatar
aliasmask
RPTools Team
Posts: 9023
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: Notepad++ Maptool Text Editor config file

Post by aliasmask »

Version History of maptool.xml and userDefineLang.xml

Note: I won't actually save the old files, but just note the differences in the newest copies. All these files represent the latest incarnation on my personal system. I'll add a new post if I think they are significant to people's attention, otherwise the only change you'll notice is an updated post here.

maptool.xml
  • 11/24/10 - Minor change in regex.info1() to show proper use of (?i)... ignore case when using a regex.
  • 11/20/10 - Updated keywords from wiki for new functions due in 1.3.b77
  • 11/7/10 - Corrected out of order keywords to fix auto-completion.
  • 11/3/10 - Added all the descriptions of functions for auto-completions.
  • 7/14/18 - Added table related functions. (by Full Bleed)
shortcuts.xml
  • 11/17/10 - Added Copy Block macro - copies current collapsible block where cursor is to the clipboard.
userDefineLang.xml
  • 11/24/10 - minor change in quoted text color to a slightly lighter blue.
  • 11/20/10 - declared more keywords and added some common word text highlighting
  • 11/3/10 - Added all the keywords for text highlighting and updated color scheme.
Spell Checker
  • 11/28/10 - Added resource files to get spell checker to work.
Default.theme
  • 12/2/10 - Added resource to change Maptool interface fonts to make editing easier. Also, changed spacing on button margin to look better.
Last edited by aliasmask on Thu Dec 02, 2010 6:03 pm, edited 8 times in total.

User avatar
Natha
Dragon
Posts: 733
Joined: Sat Oct 11, 2008 3:37 am
Location: Limoges/Guéret, France
Contact:

Re: Notepad++ Maptool Text Editor config file

Post by Natha »

Very nice !
I wish someone would do the same for UtraEdit.
:mrgreen:
ImageImageImageImage

User avatar
Azhrei
Site Admin
Posts: 12086
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Re: Notepad++ Maptool Text Editor config file

Post by Azhrei »

Craig typed in all that data for the VIM plugin. Perhaps you can extract what you need from there?

User avatar
aliasmask
RPTools Team
Posts: 9023
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: Notepad++ Maptool Text Editor config file

Post by aliasmask »

Azhrei wrote:Craig typed in all that data for the VIM plugin. Perhaps you can extract what you need from there?
Thanks. It looks like I can parse all the info I need from that file.

Shpena
Cave Troll
Posts: 97
Joined: Tue Oct 13, 2009 11:41 pm
Location: Japan

Re: Notepad++ Maptool Text Editor config file

Post by Shpena »

vi for windows is beautiful, although not as sexy as in linux. But still very powerful :mrgreen:

You are a coding maniac aliasmask! I applaud your efforts and hope you keep hacking :D
"Time is a great teacher, but unfortunately it kills all its pupils."
- Louis-Hector Berlioz

neofax
Great Wyrm
Posts: 1694
Joined: Tue May 26, 2009 8:51 pm
Location: Philadelphia, PA
Contact:

Re: Notepad++ Maptool Text Editor config file

Post by neofax »

I installed your maptools.xml into the APIs folder, but now I get a cannot load langs.xml error. Are you using a language file other than english? If not, I may have a corrupt install.

User avatar
Azhrei
Site Admin
Posts: 12086
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Re: Notepad++ Maptool Text Editor config file

Post by Azhrei »

Shpena wrote:vi for windows is beautiful, although not as sexy as in linux.
Oh man, that's sick. Just "sick".

(Of course, I agree with you about the Linux comment. But that's even worse... 8))

User avatar
aliasmask
RPTools Team
Posts: 9023
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: Notepad++ Maptool Text Editor config file

Post by aliasmask »

Nope. I'm just using the default english.

Now I'll have to see what windows VI looks like. The only thing that Notepad++ does do that Crimson did was auto indent after a block. I tried using the auto indent plug in, but it's not smart enough. It indents, but after I type the first word, it lines the text back up to the block.

Hehe, I remember back in 88/89 when we had to write our own vi editor.

User avatar
CoveredInFish
Demigod
Posts: 3104
Joined: Mon Jun 29, 2009 10:37 am
Location: Germany
Contact:

Re: Notepad++ Maptool Text Editor config file

Post by CoveredInFish »

Hmm ... i cant get this to work. :(

Here is what i tried

uninstalled notepad++
reinstalled it
downloaded the 2 files and placed it in the given locations
started np++

Then I cant find maptool under languages. I find user defined there but that doesnt give me any highlighting

(OS is win7_32bit, tried both german and english NP++ install)

Any help outthere?

User avatar
Full Bleed
Demigod
Posts: 4736
Joined: Sun Feb 25, 2007 11:53 am
Location: FL

Re: Notepad++ Maptool Text Editor config file

Post by Full Bleed »

CoveredInFish wrote:Any help outthere?
Just installed with Win7 64 with no problems.

Did you install the userDefineLang.xml file here:

c:\Users\UserName\%AppData%\Roaming\Notepad++


Note: AppData is a Hidden Directory! (that's what the %'s around it signify)
Last edited by Full Bleed on Fri Jun 04, 2010 8:45 pm, edited 1 time in total.
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."

User avatar
CoveredInFish
Demigod
Posts: 3104
Joined: Mon Jun 29, 2009 10:37 am
Location: Germany
Contact:

Re: Notepad++ Maptool Text Editor config file

Post by CoveredInFish »

I hadnt the "Roaming" directory, but creating that doesnt change a thing.

User avatar
CoveredInFish
Demigod
Posts: 3104
Joined: Mon Jun 29, 2009 10:37 am
Location: Germany
Contact:

Re: Notepad++ Maptool Text Editor config file

Post by CoveredInFish »

Okay, got it. Reinstalled it with that "for usb stick" setting, where it stores everything in the programs location. Placed the Language file there ... and it worked.

EDIT: seems i had a pretty crippled installation before. I installed it again with normal setting and it still works.

User avatar
aliasmask
RPTools Team
Posts: 9023
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: Notepad++ Maptool Text Editor config file

Post by aliasmask »

I still haven't added the detailed help for the functions, but I did update my copy of the config to include the @@ formatting for MacroIO and I made a few other minor changes.
userDefineLang.xml
(19.88 KiB) Downloaded 713 times
example.jpg
example.jpg (53.13 KiB) Viewed 46293 times
Last edited by aliasmask on Sat Jun 05, 2010 11:34 am, edited 2 times in total.

User avatar
Raoden
Dragon
Posts: 381
Joined: Fri Dec 18, 2009 2:33 am
Location: San Diego

Re: Notepad++ Maptool Text Editor config file

Post by Raoden »

CoveredInFish wrote:Okay, got it. Reinstalled it with that "for usb stick" setting, where it stores everything in the programs location. Placed the Language file there ... and it worked.

EDIT: seems i had a pretty crippled installation before. I installed it again with normal setting and it still works.
I installed Notepad++ recently, and generally selected all the "recommended" options when installing it; but I still don't have an "Application Data" folder under my login name. What do I do from here?
"Fairy tales do not tell children the dragons exist. Children already know that dragons exist. Fairy tales tell children the dragons can be killed."
- G. K. Chesterton

Wonderful HTML/CSS reference * Color Manager * Token Manager 2.0

Post Reply

Return to “User Creations”