mime-type for renpy script

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
User avatar
i1abnrk
Regular
Posts: 38
Joined: Wed Nov 20, 2013 1:50 pm
Projects: Critter Corral, Haremu Kikkemu Mo
IRC Nick: i1abnrk
Deviantart: i1abnrk
Github: i1abnrk
Location: Wisconsin
Contact:

mime-type for renpy script

#1 Post 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.

User avatar
PyTom
Ren'Py Creator
Posts: 16096
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: mime-type for renpy script

#2 Post 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.
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

Post Reply

Who is online

Users browsing this forum: No registered users