Flat code block syntax

Pedro Melo melo at simplicidade.org
Sat Feb 16 04:07:02 EST 2008



On Feb 16, 2008, at 7:23 AM, Trent Mick wrote:

>> You get the idea. This mostly becomes a problem when writing

>> technical

>> docs with frequent chunks of embedded code, and the solution would

>> appear to be to have different markup for begin-block and end-block.

>> This is the approach that the Trac wiki syntax takes, using

>>

>> {{{

>> chunk of code here

>> }}}

>

>

> This is also the approach of the Google Code wiki syntax. As well, the

> language for language-specific syntax highlighting can be specified

> via:

>

> {{{{Python}

> print "hello world"

> }}}


Trac also uses {{{ }}}.

Language is specified with a #!python as the first line.

I like {{{LANG} better though.

Best regards,
--
Pedro Melo
Blog: http://www.simplicidade.org/notes/
XMPP ID: melo at simplicidade.org
Use XMPP!




More information about the Markdown-Discuss mailing list