Warning

This wiki is very out of date, and only exists for historical reasons. For more modern information, see the new documentation and cookbook forum.

renpy/Editors

From Ren'Py Visual Novel Engine

Jump to: navigation, search

Contents

Editors

The new launcher introduced with Ren'Py 6.9.3 contains pluggable text editor support. This page contains information about the text editors for which we've created this support, along with downloads that help install and configure those editors.

To use this support, please download the appropriate file and unzip it into the directory containing Ren'Py.

jEdit

jedit.jpg

This Java-based editor runs on Windows, Mac OS X, and Linux.

  • Last updated for Ren'Py 6.9.3
  • Included with the Ren'Py distribution.


SciTE

scite2.jpg

This small and fast text editor runs on Windows and Linux.



Geany

Editor.Geany.png

This GTK+ editor runs on Linux and Windows.


Emacs

Error creating thumbnail:
libgomp: Thread creation failed: Resource temporarily unavailable
Emacs can be used as an editor for renpy by running it as a server and using the
emacsclient
command in the emacs.edit.py file.

To start the Emacs server, you can either invoke

M-x (server-start)

inside your current Emacs session or put

...
(server-start)
...

somewhere in your configuration script.

This is the emacs.edit.py file:

import renpy
import subprocess

class Editor(renpy.editor.Editor):
    
    def begin(self, new_window=False, **kwargs):
        self.arguments = ["emacsclient"]
        if new_window:
            self.arguments.append('-c')

    def open(self, filename, line=None, **kwargs):
        if line:
            self.arguments.append("+%d" % line)
        filename = renpy.exports.fsencode(filename)
        self.arguments.append(filename)


    def end(self, **kwargs):
        print self.arguments
        subprocess.Popen(self.arguments)

There is a renpy mode for emacs available here:

Copy into your Emacs load-path and add the line

(require 'Renpy)

to your configuration script.



gedit (GtkSourceView)

Error creating thumbnail:
libgomp: Thread creation failed: Resource temporarily unavailable

For editors based on GtkSourceView, this language file highlights rpy scripts.

Personal tools