[tw] Re: How to format source code in TW ?

2008-11-04 Thread IanO
Please add a reply containing usage instructions. Thanks, IanO --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to TiddlyWiki@googlegroups.com To unsubscribe from

[tw] Re: How to format source code in TW ?

2008-10-28 Thread FND
> I don't have access to tiddlywiki.org at work, but I wanted to add [...] I've taken the liberty of applying those modifications: http://tinyurl.com/6n3jdt (http://www.tiddlywiki.org/index.php?title=Syntax_Highlighting&diff=6561&oldid=6556) Hope that's correct. -- F. --~--~-~--

[tw] Re: How to format source code in TW ?

2008-10-28 Thread [EMAIL PROTECTED]
I don't have access to tiddlywiki.org at work, but I wanted to add that changing this line: parts[i] = " \">" + parts[i].htmlEncode() + ""; to parts[i] = "" + parts[i].htmlEncode() + ""; and the keyword formatting to: "FROM":"color:brown;font-weight:bold;", "NULL":"color:brown;", (ex

[tw] Re: How to format source code in TW ?

2008-10-28 Thread [EMAIL PROTECTED]
I've added (essentially) the content of my post to your wiki page. Todd On Oct 27, 2:22 pm, FND <[EMAIL PROTECTED]> wrote: > > I've been looking at this problem myself. > > I've created a page for this on the community wiki: >      http://www.tiddlywiki.org/wiki/Syntax_Highlighting > > Feel free

[tw] Re: How to format source code in TW ?

2008-10-27 Thread FND
> I've been looking at this problem myself. I've created a page for this on the community wiki: http://www.tiddlywiki.org/wiki/Syntax_Highlighting Feel free to add any notes or tips there. -- F. --~--~-~--~~~---~--~~ You received this message because you a

[tw] Re: How to format source code in TW ?

2008-10-27 Thread [EMAIL PROTECTED]
I've been looking at this problem myself. I took the formatter from http://genisis329.googlepages.com/TWMath.html#CodeFormatter and changed the keywords for SQL: config.formatters.push( { keywords : { "SELECT":"brown", "WHERE":"brown", "FRO

[tw] Re: How to format source code in TW ?

2008-10-27 Thread FND
> How do I type in source code (C++, etc.) in to a tiddler so its > formatting is verbatim ? Also see the community wiki: http://www.tiddlywiki.org/wiki/TiddlyWiki_Markup#Preformatted http://www.tiddlywiki.org/wiki/Escaping#Wiki_Markup > Is it possible to get some syntax highlighting ?

[tw] Re: How to format source code in TW ?

2008-10-27 Thread Yannan
I appreciate you prompt answer. It does the formating for me. Is it possible to get some syntax highlighting ? Thanks! On Oct 27, 10:18 am, Eric Shulman <[EMAIL PROTECTED]> wrote: > > How do I type in source code (C++, etc.) in to a tiddler so its > > formatting is verbatim ? > > Enclose the C+

[tw] Re: How to format source code in TW ?

2008-10-27 Thread Eric Shulman
> How do I type in source code (C++, etc.) in to a tiddler so its > formatting is verbatim ? Enclose the C++ code within a "pre" block: {{{ code goes here }}} Important note: the {{{ and }}} sequences must occur on separate lines, with no leading or trailing whitespace. enjoy, -e Eric Shulman