On Thursday, April 23, 2015 at 10:06:10 AM UTC+2, Stephan Hradek wrote:
>
> For documentation purposes I've put some Perl code in tiddlers.
>
> At the moment I'm using "text/plain" as the tiddler type, but I'm 
> wondering how I could register a new type "text/perl".
>

There is no official mime type "text/perl". See [1][2] 

Since it would be a personal / experimental type you could use "text/x-perl". 
.. but you'd probably get in trouble with the perl community. If you do a 
google search, they may have there own interpretation, what "text/x-perl" 
is and how it should be interpreted. Same seems to be valid for "
application/x-perl" ... 

[1] http://www.sitepoint.com/web-foundations/mime-types-complete-list/
[2] http://www.iana.org/assignments/media-types/media-types.xhtml#text

 

> First it wouldn't be different from "text/plain",
>

That's right, since it main element is "text" so the fallback for TW for 
unknown "text/xxxx" types imo is: "text/plain".
 

> but maybe it's possible then, to change, for example, the font size or the 
> font, when the "proper" mimetype is used?
>

You could implement a renderer plugin, that is aware of your text/x-plain 
or application/x-plain mime type. 
You could use text/plain as an example. ... 

but be aware, that you shouldn't use text/perl since this one would require 
the full standardisation process, described in 
http://tools.ietf.org/html/rfc6838#section-3.1

have fun!
mario



-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/22e208e5-8a93-49fe-9b63-71baa21bb867%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to