Hi folks,
I've uploaded an alpha TW [1] to dropbox for experimenting.
It contains a TW wrapper for CodeMirror text editor [2], which I think
has some potential :) CM has different modes for real time syntax
highlighting.
At the moment, there are just 2 ToolbarCommands "cmEdit" and "cmSave"
in the CMEditCommands tiddler. (mode is hardcoded to javascript)
All CodeMirror libs are seperate tiddlers. Will be less in production.
It's main purpose is, to get some feedback :)
a) It's easy to know, if a tiddler should be edited in "javascript"
mode. You have to look at the "systemConfig" tag. For all other
tiddlers, it is a bit more complicated.
b) I use systemTheme tag a lot. So I know how to handle this one.
c) With TiddlySpace, there is the field: "server.content-type", which
I will deffinitely check. The problem here is, that it is not common
with file TWs.
d) I tend to use a "systemCSS" tag for css files.
e) If you create a "new tiddler" it is automatically opened with the
default editor. I tend to have a look at the tagging function. If
someone sets a known tag, I'll switch the mode accordingly.
f) The most interesting function of CM is mixed modes [3]. It would be
nice to get some ideas, about, how to identify those :)
What do you think?
====
Planned functions:
- use CM as a syntax highlighter in view mode.
-- {{{ ... text
-- //{{{ ... code
-- /*{{{*/ ... css
-- <!--{{{--> ... xml
-- <code some params> ... </code>
-- may be; I'll make this one compatible with my
syntaxHighlighter3Plugin.
thanks for you feedback
-mario
[1] http://dl.dropbox.com/u/28489257/upstream.html
[2] http://codemirror.net/
[3] http://codemirror.net/mode/htmlmixed/index.html
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywikidev?hl=en.