Ren'Py language support in Atom

A place for Ren'Py tutorials and reusable Ren'Py code.
Forum rules
Do not post questions here!

This forum is for example code you want to show other people. Ren'Py questions should be asked in the Ren'Py Questions and Announcements forum.
Message
Author
User avatar
williamd1k0
Newbie
Posts: 19
Joined: Sat Feb 07, 2015 3:08 am
Completed: Catalendas
Projects: Ren'Py for Atom
Organization: Novastrike Media
Github: williamd1k0
itch: williamd1k0
Contact:

Ren'Py language support in Atom

#1 Post by williamd1k0 »

Hello, I would first like to thank all of this forum for helping me several times in development with Ren'Py. :D :D

This topic is about editing scripts.
As much as the integrated editors with Ren'Py are good, always gives that desire to seek a better editor (it's a never-ending search :cry: ).
Unfortunately you can not have the same features that highlight the Editra and JEdit has, for example.

Image

Anyway, recently I got to know the Atom editor, which is a customizable editor in many ways.
Editing some scripts for personal use I ended up getting create a plugin to highlight the syntax of Ren'Py.
As I was editing the plugin just to me, still did not save every word syntax, but is already working.

To thank all the help forum I am providing what has already been published and I will continue giving support to plugin. :wink:

To use the syntax in the Atom is only starting to install the Atom own: Settings :arrow: Install :arrow: Search for "renpy" :arrow: Install.

Be of much help indicate the missing words, report bugs etc.
Feel free to fork on GitHub: https://github.com/williamd1k0/language-renpy
Atom text editor: https://atom.io/

I do not speak English, part of this is Google Translate!
Last edited by williamd1k0 on Fri Mar 06, 2015 2:20 pm, edited 1 time in total.

User avatar
PyTom
Ren'Py Creator
Posts: 16093
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Ren'Py language support in Atom

#2 Post by PyTom »

This looks really nice. I'll try it after 6.99 comes out.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
williamd1k0
Newbie
Posts: 19
Joined: Sat Feb 07, 2015 3:08 am
Completed: Catalendas
Projects: Ren'Py for Atom
Organization: Novastrike Media
Github: williamd1k0
itch: williamd1k0
Contact:

Re: Ren'Py language support in Atom

#3 Post by williamd1k0 »

I updated the plugin by adding the largest amount of reserved words that I know or have ever used.
It's kind of impossible to know all the reserved words in order to add it the highlights.
It would be nice if someone could help by making a list of words to add, separating categories.
Any other information see the repo on GitHub: https://github.com/williamd1k0/language-renpy

Remember: this was translated with Google Translate.

theuser
Newbie
Posts: 4
Joined: Fri Feb 20, 2015 6:43 pm
Contact:

Re: Ren'Py language support in Atom

#4 Post by theuser »

This look interesting. The autocomplete add-on make it very nice feature.
It's a little heavy in cpu while opening it, and scrolling compared to others code editors, but that is easily understandable because is based in chromium.
The developers are actively updating and the change log is always with the update.
When a ren'py file is opened are not recognized as ren'py rather than python, but is easily changeable.
I think this is great alternative script editor for ren'py to be available and is cross-platform that's a great plus.

User avatar
PyTom
Ren'Py Creator
Posts: 16093
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Ren'Py language support in Atom

#5 Post by PyTom »

https://github.com/renpy/renpy/blob/mas ... eywords.py

has the complete list. Most of those are properties, rather than keywords - they're hilit to let people know they spelled the word right, mostly.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
williamd1k0
Newbie
Posts: 19
Joined: Sat Feb 07, 2015 3:08 am
Completed: Catalendas
Projects: Ren'Py for Atom
Organization: Novastrike Media
Github: williamd1k0
itch: williamd1k0
Contact:

Re: Ren'Py language support in Atom

#6 Post by williamd1k0 »

Hey! PyTom, thanks for the tip! I've added a considerable amount of words, including classes.

About automatic recognition of .rpy files, it does not happen that there is already an indication in the program to open as Python. I already told the Atom developers (via pull request) to disable but not getting return. In any case you can edit the default language-python package to not recognize .rpy. Later I put a "tutorial" on readme.md on GitHub.

theuser
Newbie
Posts: 4
Joined: Fri Feb 20, 2015 6:43 pm
Contact:

Re: Ren'Py language support in Atom

#7 Post by theuser »

For those who want to add features in atom, there's are useful packages.
Minimap is one of them and is the same as sublimetext one. It can be added other packages for more function:
https://atom.io/packages/minimap

User avatar
williamd1k0
Newbie
Posts: 19
Joined: Sat Feb 07, 2015 3:08 am
Completed: Catalendas
Projects: Ren'Py for Atom
Organization: Novastrike Media
Github: williamd1k0
itch: williamd1k0
Contact:

Re: Ren'Py language support in Atom

#8 Post by williamd1k0 »

Thanks for the tip, I will add as an optional package in the repository's "README". :)

User avatar
williamd1k0
Newbie
Posts: 19
Joined: Sat Feb 07, 2015 3:08 am
Completed: Catalendas
Projects: Ren'Py for Atom
Organization: Novastrike Media
Github: williamd1k0
itch: williamd1k0
Contact:

Re: Ren'Py language support in Atom

#9 Post by williamd1k0 »

Hello everybody!
I'm coming here to warn that the Atom problem in recognizing the .rpy files as Ren'Py Language has been resolved internally in recent updates.
More information on the following links. And soon I will be providing a update with some of the snippets (and sorry for the delay).
Language-Python Issue 61
Atom Issue 6847
Thanks and see you later!

User avatar
Darim
Regular
Posts: 67
Joined: Sun Jun 21, 2015 4:17 pm
Organization: Setsuna Ken
Github: SetsunaKen
Location: Germany
Contact:

Re: Ren'Py language support in Atom

#10 Post by Darim »

Thanks for this great add-on !

Please make it available for Brackets too. Atom is a little bit to slow at the moment :D

User avatar
Rainvillain
Regular
Posts: 76
Joined: Thu Mar 05, 2015 11:27 am
Contact:

Re: Ren'Py language support in Atom

#11 Post by Rainvillain »

Hey williamd1k0, I've started using Atom with ren'py and I'm really happy with it. Thank you for your hard work!! :)

User avatar
DarkArcher117
Newbie
Posts: 2
Joined: Sat Jan 16, 2016 9:11 pm
Completed: Seeds of Sylvia, Palinurus: Anniversary Edition
Tumblr: DarkArcher117
Deviantart: DarkArcher117
Github: DarkArcher117
Contact:

Re: Ren'Py language support in Atom

#12 Post by DarkArcher117 »

I've been using Sublime 3 with the Ren'py syntax package, is there anything Atom does differently or better? I'd hate to be missing out on a good thing :D

User avatar
williamd1k0
Newbie
Posts: 19
Joined: Sat Feb 07, 2015 3:08 am
Completed: Catalendas
Projects: Ren'Py for Atom
Organization: Novastrike Media
Github: williamd1k0
itch: williamd1k0
Contact:

Re: Ren'Py language support in Atom

#13 Post by williamd1k0 »

Well, I got to test the Sublime plugin too, which is very good.

About Atom, it is a relatively new editor yet, but the advantage is that it has an incredibly large community, since the editor is maintained by GitHub.
It comes with several useful features and is well organized on the extensions.

A great advantage over the Sublime, it is totally hackable, which means you can customize even the original extensions of it, for example. You can also create or change snippets according to what you do most often.

It's almost impossible to say that an editor is better than the others, so it's always good to test before drawing a conclusion, after all everyone has their own taste.

User avatar
Zetsubou
Miko-Class Veteran
Posts: 522
Joined: Wed Mar 05, 2014 1:00 am
Completed: See my signature
Github: koroshiya
itch: zetsuboushita
Contact:

Re: Ren'Py language support in Atom

#14 Post by Zetsubou »

I haven't tested the Atom version for a while, but the differences I noticed (looking at the .cson) with the ST plugin are:
-Each have some highlighting that the other doesn't (eg. ST doesn't highlight "dissolve" in a "with dissolve", Atom doesn't highlight labels)
-Different snippets/auto-completes
-As far as I can tell, Atom's plugin isn't context-aware (this was a huge rewrite for ST, but the Atom plugin is more modular than the ST one was at the time, so it would be much easier)
Finished games
-My games: Sickness, Wander No More, Max Massacre, Humanity Must Perish, Tomboys Need Love Too, Sable's Grimoire, My Heart Grows Fonder, Man And Elf, A Dragon's Treasure, An Adventurer's Gallantry
-Commissions: No One But You, Written In The Sky, Diamond Rose, To Libertad, Catch Canvas, Love Ribbon, Happy Campers, Wolf Tails

Working on:
Sable's Grimoire 2

https://zetsubou.games

User avatar
williamd1k0
Newbie
Posts: 19
Joined: Sat Feb 07, 2015 3:08 am
Completed: Catalendas
Projects: Ren'Py for Atom
Organization: Novastrike Media
Github: williamd1k0
itch: williamd1k0
Contact:

Re: Ren'Py language support in Atom

#15 Post by williamd1k0 »

So, as I said, I started this plugin for their own use it because I am not an expert on regex and I decided to share with the hope that someone could help improve it.

Long after I found out about this question of "context" and I intend to rewrite it to let organized that way, so I have time to do that and be able to study better about Regex.

About the "labels", they are working, maybe the version used is not or something.
2016-01-21 18_01_51-Central de ações.png
2016-01-21 18_01_51-Central de ações.png (8.28 KiB) Viewed 6494 times

Post Reply

Who is online

Users browsing this forum: No registered users