Awesome
Ren'Py language support in Atom
Adds syntax highlighting and snippets to Ren'Py files in Atom. It also adds syntax highlighting to GitHub files, markdown code blocks and GitHub Gist (more info here).
Originally converted from the Python package for Atom.
Syntax highlighting test: GitHub Lightshow
Contributions are greatly appreciated. Please fork this repository and open a pull request to add snippets, make grammar tweaks, etc.
- The highlight may vary depending on the syntax theme used.
- Default suggested syntax theme:
Ren'Py Dark
. - Alternative suggested syntax theme:
Atom Dark
.Monokai
.octocat-syntax
- Other recommended packages:
file-icons
- Just for file icons stylepigments
- Display colors in project (Hex, RGB etc)color-picker
- Color picker (Hex, RGB etc)minimap
- Code minimap
Ren'Py is a Visual Novel development tool, available from www.renpy.org
Thanks to Koroshiya (Sublime-Renpy).
Getting Started
Installation
When using Ren'Py 6.99.14.2 or higher, go to preferences and select Atom as your text editor.
With Atom already installed, open the Settings tab: File
>Settings
(or with <kbd>Ctrl</kbd>+<kbd>,</kbd>)
Click in <kbd>+ Install</kbd> and search for renpy
then click in <kbd>Install</kbd> button of the package language-renpy
.
It's also possible installing using the cli command apm
(atom package manager):
apm install language-renpy
Usage
Open a .rpy
file or create a new one and test the syntax highlighting of the Ren'Py. You can also use the example file available on the package repository.
Snippets:
Snippets are pieces of code like in the following example.
The usage is done with keywords followed by a <kbd>Tab</kbd> to insert the snippet.
For example, there's a snippet with useful links, type dochelp
and press <kbd>Tab</kbd> or <kbd>Enter</kbd>.
You can check the snippets list while editing a .rpy
file, just open the Command Palette (<kbd>Ctrl/Cmd</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd>) and search for Snippets: Available or go to the package settings (Settings
>Packages
>language-renpy
>Snippets
).
Snippets are added by need, so suggestions are welcome.