ScriptSpot home

Notepad++ MXS Language Definition

Downloads

3ds Max compatibility
Unknown
Report a problem
Community reviewsNo reviews yet.

Listing details

Other software required
<a href="http://notepad-plus.sourceforge.net/uk/site.htm" target="_blank" title="Notepdad++ editor">Notepad++ editor</a>
Author’s update date
Legacy votes
37
Listing created
How compatibility works

Compatibility comes from the author’s supported range or requirements in the original listing. A tested version records what the author tried.

“2020 unconfirmed” in the catalog means support for 3ds Max 2020 is still unknown.

Community reports record successful tests on specific releases.

More by this author

Maxscript language definition files for the notepad++ editor.

Setup & notes

Installaion:
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)
savas cetin

Hi there

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
Reply to savas cetin
Waltez

error: maxscript.xml

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

3dwannab

Notepad++ Import

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

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!

Reply to Svennovich
Jos Balcaen

This is awesome. Now I can write and execute everything from notepad++. Thanks alot!

Martin Breidt

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.

bobbysoon

re: folding code blocks

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

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

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

Reply to jhn
Ofer Zelichover

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

Hi Ofer,

Sorry it took such a long time... Been very busy..

http://temp.subd.nl/mxs.txt

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

Reply to jhn
Ofer Zelichover

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