Hi folks,
I implemented most features, I wanted to have:
ViewMode - TW syntax with code blocks render like this:
  {{{ ... }}} .. text/plain
  /*{{{*/ ... /*}}}*/ ... CSS
  ...
Full description can be found at CodeMirror2PluginInfo [2] tiddler

====
Tiddler tags, the fields "content-type" and "server.content-type" are
responsible for "edit mode"
Tags that influence the edit mode are configured at CodeMirror2Config
[3] tiddler
This config tiddler also contains the global editor settings eg:
lineNumbers, indentMode ... Every parameter can be overwritten, if
defined again with a mode. The settings have to be valid TW slices!

====
field: content-type is used to define an edit mode, if no "special
tag" is active.
field: server.content-type is used if _no tag_ and _no content-type_
field is active.

Both of them are usefull. eg:
* server.content-type: image/svg+xml
* content-type: application/xml
This will render a svg as a picture in TiddlySpace and edit it as xml
text.

In edit mode the "content-type" field can be changed, using the
"content-type" button near the toolbar commands. If you use "-none-"
it will be initialized with an empty string.

other fields can be changed with "more: fields" command using
FieldsEditorPlugin
===

If content-type is eg: "text/css" and there is no {{{ found in the
tiddler text, then the tiddler will be rendered with a <pre> block,
using the css syntax highlighting. This will come in handy, used with
TiddlySpace and "server.content-type" .. It can be used for view and
edit mode, to hack SPAs :)

have fun!
hope to get some more feedback this time :)
-mario

Next: What do you think about a TW markup highlighter?


[1] http://dl.dropbox.com/u/28489257/upstream.html
[2] http://dl.dropbox.com/u/28489257/upstream.html#CodeMirror2PluginInfo
[3] http://dl.dropbox.com/u/28489257/upstream.html#CodeMirror2Config

-- 
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.

Reply via email to