Re: So, what editor do you guys use?
Posted: Thu Aug 31, 2017 8:01 am
I use Sublime Text! I love it.
Supporting creators of visual novels and story-based games since 2003.
https://lemmasoft.renai.us/forums/
Same! But then again, I use it at work so it may just be that I'm used to it. I haven't really been on the market looking around for text editors when Sublime does everything I need so far.
Between Atom and Sublime Text?
Atom and ST don't support Renpy syntax natively. They don't know what labels are, what screens are, or why .rpy files are special.Also, I am not really sure how to set it up though, i know i need a renpy langauge pack, but what exactly is that for?
Thank you for your reply! I managed to try both Atom and Sublime Text yesterday prefer Sublime Text a bit more (: White auto-complete and auto-match are actually more distracting for me (since i am so used to hand typing everything) i really like love the way you can actually see the code on the side when you scroll to. Its super handy and overall the surface seems less distracting.Zetsubou wrote: ↑Fri Nov 03, 2017 2:42 amBetween Atom and Sublime Text?
Atom is free and open source. Sublime Text can be used for free indefinitely, but it'll show a popup every 50 or so saves asking you to purchase a license.
A detailed comparison probably won't do you any good, since you aren't likely to need or care about the more advanced stuff which differentiates them.
IMO, you should just try both out. Atom is 100% free, ST can be used for free indefinitely. Try them both and see which you prefer.
Atom and ST don't support Renpy syntax natively. They don't know what labels are, what screens are, or why .rpy files are special.Also, I am not really sure how to set it up though, i know i need a renpy langauge pack, but what exactly is that for?
The language pack will give the editor the extra smarts it needs to be useful to a Renpy programmer.
It'll give you automatic completions (eg. if you typed "with Di" it would suggest "Dissolve") and offer to insert the code for you, automatically indent your code, replace tabs with spaces, highlight key words, and so on.
First, follow the instructions here: https://packagecontrol.io/installationmitoky wrote: ↑Fri Nov 03, 2017 1:07 pm About the keywords, that would be awesome since there is 1-2 things i notices arent hightlighted (default and menu, for example) but as far as i have seen its something i do not understand how to do. I hope this does not sound rude to ask but do you perhaps know some easy way or some easy to understand way for a beginner?
Thank you very much! But i did that already and i dont mean it. Please let me explain better: I installed the package already but i noticed that some words simply arent hightlighted (screenshot attached, example define is hightlighted, while default" isnt) I was wondering how it would be possible (and if so, how) to add custom keywords to the RenpyLanguage Syntax. From what i saw, its possible but i am still fairly new to coding, so i dont understand it too well. Is there an easy way or a good explanation for that you perhaps know? Also, if i ass custom keywords, could there be some problem or bugs caused by that?Zetsubou wrote: ↑Fri Nov 03, 2017 4:38 pmFirst, follow the instructions here: https://packagecontrol.io/installationmitoky wrote: ↑Fri Nov 03, 2017 1:07 pm About the keywords, that would be awesome since there is 1-2 things i notices arent hightlighted (default and menu, for example) but as far as i have seen its something i do not understand how to do. I hope this does not sound rude to ask but do you perhaps know some easy way or some easy to understand way for a beginner?
Then here: https://packagecontrol.io/docs/usage
The package you're looking for is Renpy Language
When you install Renpy Language, it will provide you with instructions on how to apply it to all .rpy files.
The instructions are fairly straightforward.
Open a menu, copy and paste some text.
Hit ctrl + shift + P, search for Install Package.
Select that, then search for Renpy Language.
If you find some things missing, you could report them here: viewtopic.php?f=51&t=30666&start=30mitoky wrote: ↑Fri Nov 03, 2017 4:47 pm Thank you very much! But i did that already and i dont mean it. Please let me explain better: I installed the package already but i noticed that some words simply arent hightlighted (screenshot attached, example define is hightlighted, while default" isnt) I was wondering how it would be possible (and if so, how) to add custom keywords to the RenpyLanguage Syntax. From what i saw, its possible but i am still fairly new to coding, so i dont understand it too well. Is there an easy way or a good explanation for that you perhaps know? Also, if i ass custom keywords, could there be some problem or bugs caused by that?
Zetsubou wrote: ↑Fri Nov 03, 2017 6:33 pmIf you find some things missing, you could report them here: viewtopic.php?f=51&t=30666&start=30mitoky wrote: ↑Fri Nov 03, 2017 4:47 pm Thank you very much! But i did that already and i dont mean it. Please let me explain better: I installed the package already but i noticed that some words simply arent hightlighted (screenshot attached, example define is hightlighted, while default" isnt) I was wondering how it would be possible (and if so, how) to add custom keywords to the RenpyLanguage Syntax. From what i saw, its possible but i am still fairly new to coding, so i dont understand it too well. Is there an easy way or a good explanation for that you perhaps know? Also, if i ass custom keywords, could there be some problem or bugs caused by that?
Or here: https://github.com/koroshiya/Sublime-Renpy/issues
(Since this thread really isn't the place to do that)
If you want to add them manually yourself, you can do that too. But you'd need to uninstall the language through the package manager and then install it manually.
So Ctrl + Shift + P -> Remove Package -> Renpy Language
Preferences -> Browse Packages, then go into the User folder. Clone the Sublime-Renpy repo from git into this directory.
The short version of how to do what you want would be to open RenpyLanguage.tmLanguage, search for "renpy keywords", then add "default" to the list.
But that's only how to highlight the word. That isn't enough to add autocomplete or context-awareness.
Also, if you install the package manually, you won't receive automatic updates.
I think you should use it as-is for a bit, then report the things you find wrong/absent so the language can be updated by the package maintainer for everyone.