Page 1 of 7

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

Posted: Wed Mar 10, 2010 9:35 pm
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.

Re: Notepad++ Maptool Text Editor config file

Posted: Thu Mar 11, 2010 12:11 am
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.

Re: Notepad++ Maptool Text Editor config file

Posted: Thu Mar 11, 2010 9:30 am
by Natha
Very nice !
I wish someone would do the same for UtraEdit.
:mrgreen:

Re: Notepad++ Maptool Text Editor config file

Posted: Thu Mar 11, 2010 11:34 am
by Azhrei
Craig typed in all that data for the VIM plugin. Perhaps you can extract what you need from there?

Re: Notepad++ Maptool Text Editor config file

Posted: Thu Mar 11, 2010 12:18 pm
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.

Re: Notepad++ Maptool Text Editor config file

Posted: Sat Mar 13, 2010 10:45 am
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

Re: Notepad++ Maptool Text Editor config file

Posted: Sat Mar 13, 2010 6:02 pm
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.

Re: Notepad++ Maptool Text Editor config file

Posted: Sat Mar 13, 2010 6:30 pm
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))

Re: Notepad++ Maptool Text Editor config file

Posted: Sun Mar 14, 2010 1:47 am
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.

Re: Notepad++ Maptool Text Editor config file

Posted: Mon May 03, 2010 7:38 am
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?

Re: Notepad++ Maptool Text Editor config file

Posted: Mon May 03, 2010 8:37 am
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)

Re: Notepad++ Maptool Text Editor config file

Posted: Mon May 03, 2010 8:50 am
by CoveredInFish
I hadnt the "Roaming" directory, but creating that doesnt change a thing.

Re: Notepad++ Maptool Text Editor config file

Posted: Mon May 03, 2010 8:56 am
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.

Re: Notepad++ Maptool Text Editor config file

Posted: Fri Jun 04, 2010 3:40 pm
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 46294 times

Re: Notepad++ Maptool Text Editor config file

Posted: Fri Jun 04, 2010 8:01 pm
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?