zyedidia / micro

A modern and intuitive terminal-based text editor
https://micro-editor.github.io
MIT License
25.06k stars 1.17k forks source link

Enhancement: Syntax support for Ren'Py (.rpy) files #724

Closed lolihunter closed 7 years ago

lolihunter commented 7 years ago

Would be great to get Ren'Py syntax support in micro.

Only editor that has this and the features I use is Atom, which is a bloated whale compared to micro.

Much of pythons synatx would work I believe, but Ren'Py has many definitions specific to itself.

More info: Ren'Py is a free visual novel game engine that my company uses to produce our games. More info can be found here: https://www.renpy.org/

zyedidia commented 7 years ago

I'm afraid if you want Ren'Py syntax support you will probably have to implement it yourself, but it isn't very hard to make syntax files for micro. You can read about how to make syntax files in the second part of the colors help file (> help colors).

You can also take a look at all the syntax files as examples here.

If you make a syntax files you can put it in ~/.config/micro/syntax for micro to recognize it. If you'd like, I would be glad to accept a pull request with the syntax file. In that case, put it in $MICRO/runtime/syntax (to see changes when you build, you must run make runtime).