Convert language specs from .cson
files (used by Atom) to .lang
format (used by gedit and others).
- Clone this repository.
- Get into a Python 3 environment.
pip install -r requirements.txt
python3 convert.py source.cson > output.lang
Copy the output file into wherever gtksourceview language specs live on your machine. Something like this might work:
sudo cp output.lang /usr/share/gtksourceview-3.0/language-specs/meaningful-name.lang
The hcl.cson file is from MIT-licensed https://github.com/fd/language-hcl . I did have to add block-comments to it, which are commented in the code; my edits may/may not actually work with Atom, and I don't care, so I didn't submit a PR to upstream.
The other stuff is my original work. It's also MIT Licensed, but I hope you do good with it. (I'd love to hear about the good you're doing. Drop me a line!)
- cson
- Atom
- gedit
- gtksourceview-3.0
- xml