Oh and also, when i use the "code" macro, it doesnt actually draw a box around the code but it rather highlights the text which is not i want. Thanks On Fri, Jan 15, 2010 at 8:33 AM, Ziggy <[email protected]> wrote:
Hi Guys,
What is the wiki syntax for display code in a page. Here is an example of what i would like to do. Look at this page http://15black.bluedepot.com/styles/tiddlypedia.htm , Look at the TiddlyPediaPackage section half way through the page. The syntax to achieve that is as simple as typing this
{{{ HTML Structure var sidebar = document.getElementbyId('sidebar') }}}
I tried to do the same for xwiki pages but it dont work. I think it is possible to do it using the "code" macro but this only works when you use the WYSIWYG editor. It doesnt work in WIKI edit mode. Is there a simple syntax that i can use to achieve this?
Thanks