I've been using flux and afFandocViewer in a couple of recent projects and was wondering what you thought about adding the following small changes in the next Fantom release...?
1). Update /etc/sys/ext2mime.props to uniquely identify .fandoc files; requires a simple change of:
/etc/sys/ext2mime.props
fandoc=text/text; charset=utf-8
to
fandoc=text/fandoc; charset=utf-8
The main media type is still text, it'd just be nice if the sub type was more descriptive. This is so Uri.get can resolve against it.
text
Uri.get
2). Add fandoc syntax highlighting. Create etc/syntax/syntax-fandoc.fog:
etc/syntax/syntax-fandoc.fog
using syntax SyntaxRules { brackets = "[]" comments = [" ", "##", "**", "==", "--"] blockCommentStart = "pre>" blockCommentEnd = "<pre" blockCommentsNest = false strs = [ SyntaxStr { delimiter = "`"; multiLine = true }, ] keywords = null }
and update /etc/syntax/ext.props with:
/etc/syntax/ext.props
fandoc=fandoc
I do this all the time and it seems like a pertinent, yet cheap, enhancement.
Login or Signup to reply.
SlimerDude Mon 16 Sep 2013
I've been using flux and afFandocViewer in a couple of recent projects and was wondering what you thought about adding the following small changes in the next Fantom release...?
1). Update
/etc/sys/ext2mime.props
to uniquely identify .fandoc files; requires a simple change of:to
The main media type is still
text
, it'd just be nice if the sub type was more descriptive. This is soUri.get
can resolve against it.2). Add fandoc syntax highlighting. Create
etc/syntax/syntax-fandoc.fog
:and update
/etc/syntax/ext.props
with:I do this all the time and it seems like a pertinent, yet cheap, enhancement.