Maxscript language definition files for the notepad++ editor.
Script
Notepad++ MXS Language Definition
By Ofer Zelichover · 2007-03-26
- Other software required
- <a href="http://notepad-plus.sourceforge.net/uk/site.htm" target="_blank" title="Notepdad++ editor">Notepad++ editor</a>
- Date updated
- 2007-03-26
- Votes
- 37
- Homepage
- http://www.oferz.com
- Download
- Download
Description
Additional Info
1. install notepad++
2. copy the file maxscript.api to C:\Program Files\Notepad++\plugins\ folder
3. copy userDefineLang.xml and insertExt.ini into your %appdata%\notepad++\ folder
IMPORTANT NOTE!
If you have other user defined languages, you have to edit the userDefineLang.xml file manually
and append the maxscript section from this zip, if you overwrite the file with this version, you\'ll
lose your previously defined languages!
Comments (13)
Hi there
savascetin · 2016-04-12
I tried using NPP with ".api" file above. but I colud not make it work with autocomplete. So I modified a script made by James Haywood (http://apps.jhaywood.com/blog/) to write an ".xml" file. The ".ms" and the ".xml" file (in maxscriptxml.zip) are at the attachment if anyone needs.
Attachments
- createmaxscriptxmlfile.ms — createmaxscriptxmlfile.ms1.5 KB
- maxscriptxml.zip — maxscriptxml.zip52 KB
error: maxscript.xml
Waltez · 2016-12-08
Unfortunately
when I run the script
I get the following error:
"--- Type error: Call needs function or class, got" D \ 1 \ maxscript.xml "
Even importing the file into maxscript.xml
"Notepad ++ v.7.2.2" from error:
"Fail to Import"
help would be useful
thank you
Notepad++ Import
3dwannab · 2014-03-20
Seen some people saying you have to manually add the style. You can automatically import by choosing the menu in NP++:
Launguage>Define your launguage>Import>choose the .xml
NB: This won't affect what other styles you may have.
Svennovich · 2012-08-20
Hello, first of all thanks for all this data!
Past weeks I have been working on using Notepad++ as external IDE for maxscript.
And finished most of the process.
http://www.svenfraeys.com/tools/external-maxscript-ide/
I created an exe for sending maxscript messages to an open 3ds max process so you can connect this with notepad++
I was able to filter most of the syntax to separated categories which each can be found in a separate google doc for people who want to transfer it to different IDE.
Created a syntax highlighting file and a autocomplete list for NotePad++
Hope it can help!
jos · 2014-01-16
This is awesome. Now I can write and execute everything from notepad++. Thanks alot!
Martin Breidt · 2012-01-26
Is this supposed to be still working for a recent version of Notepad++?
I am running v5.9.5 and get some pretty wild results when installing the files as described.
br0t · 2012-05-16
same for me, guess it needs to be updated
re: folding code blocks
bobbysoon · 2011-05-31
I found an easy solution for folding code blocks:
For the un-acquainted, this is done in Np++'s View menu, 'User-Definition Dialog...'. Set user language to maxscript.
In the 'Comment & Number' tab, uncheck "Treat keyword as symbol" for comment lines ("--").
In the 'Folder & Default' tab, define folder open and close keywords as "(--" and ")-- ),--" ("),--" for collapsing struct members).
Then tack "--" onto your parentheses, and whala - predictable collapsibility!
Additionally, define "--(" & "--)" to collapse sections of your arbitrary choosing, for a total of "(-- --(" opening and ")-- ),-- --)" closing
Unfortunately, bracket matching wont highlight matching parenthesis pairs for these
yman · 2008-10-14
I use for editing Notepad++ because is a very complex program and support languages like C; C++; Java; C#; XML; HTML; PHP; CSS; makefile ASCII art (.nfo); doxygen ini file and other. Olso you can edit several documents at the same time. I got it from here: Notepad++
jhn · 2007-03-26
Ofer,
I have also made a n++ colorsyntax file, based on Chris Johnson's UltraEdit colorsyntax. He has all keywords from maxscript, since he had access to the developers from max. I could sent you my syntax file if you like, it has a lot more keywords...
Just let me know. I think it's beter to post 1 good syntax file rather than 2 different ones, since you now already posted yours, let's stick with that...
It's a shame though that n++ has only 4 different keyword entries, maxscript has 6 different categories keywords... and I also have some problems with opening and closening brackets... don't know if you're experiencing this aswell? I should try your settings first.
-Johan
Ofer Zelichover · 2007-03-27
Hi Johan,
If you have a more complete set of keywords, by all means, send it and I'll merge it into my settings.
As for the brackets, I don't use the folding feature, as it seems to have some bugs in the user defined lexer (at least it did for me when using maxscript), but aside from that I don't have any problems. What exactly are the problems you're seeing?
cheers,
o
jhn · 2007-04-03
Hi Ofer,
Sorry it took such a long time... Been very busy..
It's a straight rip from the UltraEdit syntax highlight file. You should be able to extract the keywords from it easily, and also see to what class they belong to.
And yeah I too have really only problems with the code folding from the user defined lexer... So I now code that all brackets have always 1 space at either side of itself.
It works too some extend.
Good luck!
-Johan
Ofer Zelichover · 2007-04-06
Johan, I get an error when trying that link.
Could you please send it to me directly to maxscripts [at] oferz [dot] com
By the way, I also used the Ultra Edit version as the basis for this, but also added some keywords that were missing (I think there are still a few missing keywords :)), but perhaps I should re-check it against the UE file just to make sure...
cheers,
o