Page 1 of 1

mime-type for renpy script

Posted: Fri May 16, 2014 10:52 am
by i1abnrk
I'm developing a highlighter for gtk-sourceview, to highlight renpy code in gedit (Notepad++ and a handful of others also can use it, too). I am tempted to define a mime-type for renpy script files. Ok, so an operating system maps a mimetype to a file extension in some system-specific key-value file. Specifically, the *.rpy glob pattern to some identifier (e.g. the same way *.html maps to text/html). What I'm stuck on is what to use as an identifier. Possibilities are "text/renpy" (my personal choice), or "text/renpy-script", etc. Is there anything specified at the moment? I feel I should ask before I clobber any official suggestion. :?: I plan to release this on my own as a deb or rpm patch.

Re: mime-type for renpy script

Posted: Fri May 16, 2014 12:31 pm
by PyTom
If we wanted to be all official about it, it should probably be text/vnd.renpy.script . Also, you should probably map *.rpym to the same thing you map *.rpy to.