I think I may have found the answer 
at http://tiddlywiki.com/plugins/tiddlywiki/highlight/. In the code 
examples there, the code blocks are started with backticks an then the name 
of the programming language, so I tried starting my code block with ```sql 
and voila, it worked! So I don't know how much of the tiddler creation that 
I did was really necessary (following the instructions at 
http://tiddlywiki.com/plugins/tiddlywiki/codemirror/ 
<http://www.google.com/url?q=http%3A%2F%2Ftiddlywiki.com%2Fplugins%2Ftiddlywiki%2Fcodemirror%2F&sa=D&sntz=1&usg=AFQjCNEG9hARuVPZYVYFqrjxcTi-wVMMtQ>.
 
It may be that all I needed to do was install the codemirror plugin and 
then apply this here little trick

On Wednesday, January 21, 2015 at 10:35:59 AM UTC-5, Captain Packers wrote:
>
> I am trying to implement codemirror for sql in node.js tiddlywiki, 
> following the example for "clike" code at 
> http://tiddlywiki.com/plugins/tiddlywiki/codemirror/.
>
> I think there are two hurdles I need to overcome. First, my 
> $:/config/EditorTypeMappings/text/x-sql tiddler is showing up as a System 
> tiddler, and not as a Shadow tiddler. All the other EditorTypeMappings are 
> Shadow tiddlers. I don't know how to make the sql mapping a shadow tiddler. 
> (Is this why the type is not available in the Type drop list when I try to 
> create a new sql tiddler?)
>
> Second, if I type in the Type "text/x-sql" I get an "Undefined widget 
> 'edit-codemirror'" message.
>
> Does anyone know what I'm doing wrong and how to fix this? Does anyone 
> have a working example of sql code highlighting?
>
> Thanks in advance for any tips.
>
> Regards,
> Captain Packers
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to