The MAXScript-specific language settings of the Tabbed MAXScript Editor introduced in 3ds Max 2008 can be customized by editing the file MAXScript.properties located in the 3ds Max root folder to include user-defined keywords that are not part of the MAXScript language.
This could be used for example to highlight project-specific variable names etc.
To define custom keywords to be colorized in the source code of MAXScript files, follow these steps:
In the MAXScript.properties file, locate the section remarked with
#keywords12 is for user defined words to be colorized. Keywords are checked for in this list first.
As you can see, the default color for user-defined keywords is red and the style is bold italic.
Scroll down in the MAXScript.properties file and locate the lines
For example, remark the existing line using # and enter the following instead:
As mentioned in the remark to the keywords12 definition in the MAXScript.properties file, keywords are ALWAYS checked for in the user-defined list before checking the language-specific definitions (which in the case of MAXScript are exported automatically).
In the above example, the keywords "and" and "for" are colorized as part of the language (logical AND operation and FOR loop). If we would include them in our custom keywords list, they would be colorized in brighter blue instead of dark blue and would override the language-specific settings:
On modern Operating Systems like Vista and Windows 7 with User Account Control (UAC) enabled it might be impossible to modify the factory settings provided by the MAXScript.properties file becase the file is located in the root of 3ds Max. For that reason, it is advisable to provide the custom settings using the "User Options File" also available through the Tools menu of the Editor.
Copy the custom keywords definition and the color definition for keywords12 into this file and save it by pressing Ctrl+S: