You are viewing an older version of the site. Click here to view
the latest version of this page. (This may be a dead link, if so, try the root page of the docs
here.)
The MethodScript jar comes packaged with a syntax highlighter generator for several different text editors.
The syntax files can be updated with data from your specific jar, so it is guaranteed to be up to date.
To run the tool, run
java -jar CommandHelper.jar syntax
from the command line. You will see a list of supported text editors. Select your text editor, and run, for instance:
java -jar CommandHelper.jar syntax npp obsidian
This will print out the syntax file to the console. You can pipe the output to a file with:
java -jar CommandHelper.jar syntax npp obsidian > syntaxFile.xml
This will save the file in the current directory. Follow the procedure for your specific text editor to update the
syntax files using the freshly generated syntax file. (This varies depending on your text editor.)
In general, it is recommended to simply use the MethodScriptVSC extension for Visual Studio Code, as that is the only
officially supported syntax highlighter. These self-generated syntax highlighters are supported on a community basis.
See the page about the [[Development_Environment|MethodScriptVSC]].Find a bug in this page? Edit this page yourself, then submit a pull request.