[xwiki-users] Code Box inside a Blog Entry
As a developer I am very interested to be able to display code (snippets) inside a blog entry. Any idea or hints on how to accomplish that? Thanks Andreas Schaefer CEO of Madplanet.com Inc. Email: [email protected] [email protected] Twitter; andy_mpc AIM: [email protected]
Andreas Schaefer wrote:
As a developer I am very interested to be able to display code (snippets) inside a blog entry.
Any idea or hints on how to accomplish that?
A blog entry can contain any wiki markup, and even scripts. See the syntax here: http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax For your case, you can use the code macro. Syntax 1.0: {code:java} System.out.println("Hello world!"); {code} Syntax 2.0: {{code language="java"}} System.out.println("Hello world!"); {{/code}} -- Sergiu Dumitriu http://purl.org/net/sergiu/
participants (2)
-
Andreas Schaefer -
Sergiu Dumitriu