3 messages in com.googlegroups.pylons-discussRe: Question on image tags in wiki {c...
FromSent OnAttachments
zunzun17 Oct 2007 08:14 
Philip Jenvey17 Oct 2007 11:12 
zunzun17 Oct 2007 15:25 
Subject:Re: Question on image tags in wiki {code} sections
From:Philip Jenvey (pjen@public.gmane.org)
Date:10/17/2007 11:12:49 AM
List:com.googlegroups.pylons-discuss

On Oct 17, 2007, at 8:14 AM, zunzun wrote:

I'm trying to add a code section to

http://wiki.pylonshq.com/display/pylonscommunity/Adding+graphical +output

and if I use the wiki {code} tags, it tries to display an image.

At the very bottom of the page, you can see where I used HTML code tags, since these render properly.

Any advice on how to have the wiki render image tags in {code} sections? I did not see it in the wiki docs.

{code:html} should work

A {code} block without specifying the language tries to auto detect the type of source code, but the detection routine is very limited. It's not detecting that you wanted the html highlighting, just like it didn't detect the other code blocks on that page are python (change those to {code:python} for highlighting to show up).

You shouldn't really ever use {code} without specifying the langugage.