MaxScript Colorful
VS Code and Antigravity extension for colorful MaxScript highlighting.
Author: VŨ HẢI ĐĂNG
It only targets the maxscript language and these file extensions:
Other languages are not touched. The runtime highlighter exits unless the active document language is maxscript.
Use
Open this folder in VS Code or Antigravity and press F5 to test it in an Extension Development Host.
For normal use, run:
.\install-local.ps1
Or package/copy this extension folder into:
%USERPROFILE%\.vscode\extensions\maxscript-colorful
%USERPROFILE%\.antigravity\extensions\maxscript-colorful
Then reload VS Code or Antigravity and open a .ms, .mcr, or .mse file.
You can open examples/sample.ms to check the colors quickly.
Publish
The extension icon is assets/icon.png. It is an original MaxScript/3D-style icon, not the official Autodesk 3ds Max logo.
For VS Code users, publish to the Visual Studio Marketplace with vsce:
npm.cmd install -g @vscode/vsce
$env:VSCE_PAT = '<VSCE_TOKEN>'
.\publish-vscode.ps1
For Antigravity users, also publish to Open VSX with ovsx:
npm.cmd install -g ovsx
$env:OVSX_PAT = '<OPEN_VSX_TOKEN>'
.\publish-openvsx.ps1
You can also package a local .vsix file:
.\package-extension.ps1
Users can install that .vsix in VS Code or Antigravity with Extensions: Install from VSIX....
Included
- MaxScript language registration
- TextMate grammar scopes
- Extra colorful runtime highlighting for MaxScript only
- Comment/bracket configuration
- Basic snippets for
fn, rollout, and macroScript