Check out MellowD which is the language these tools were created to support.
For developers hacking with Brackets you can grab this extension to get some syntax highlighting for .mlod
files.
- Download/open Brackets
- Click on the lego icon on the right to open the extensions window
- In the
Available
tab search forMellowD
and install theMellowD Syntax Highlighter
plugin bySpencer Park
. (That's me!) - The theme I use (which also looks great with this syntax highlighter) is Default Dark - Base16
CodeMirror is a fantastic project that is open source on GitHub at https://github.com/codemirror/CodeMirror/. It is essentially a code editor written in javascript that Brackets has made use of under the hood.
To support a new language in CodeMirror you need to write a mode
that teaches it how to highlight the syntax and that is exactly what this project did. You can find the mode in the codemirror
directory written in typescript. If you want to embed a MellowD editor on a website this is the mode you will need to use.
The project uses npm
for dependency management and gulp
for building. If you don't have npm
you will need to install NodeJS for your system. This should include npm
so just make sure it is included in your PATH
by running npm -version
.
- Clone this repository
git clone https://github.com/SpencerPark/mellowd-lang-support.git
- Install all the required packages
cd mellowd-lang-support/ npm install cd codemirror npm install cd ../../
- Build the projects:
If you have
gulp
installed globally (you rannpm install -g gulp
) then just runOtherwise you can skip the global install and just use the local one you just installedcd mellowd-lang-support/ gulp build
cd mellowd-lang-support/ ./node_modules/.bin/gulp build