This server will be upgraded at 3pm Sydney time on December 3rd (December 2nd, 8pm PST) and will be down for up to 30 minutes.

Show Page Source Inline Macro

Name Show Page Source Inline
Version 0.1
Product Versions 2.7.3
Author(s) Shawn Stepper
Price Free
License Free

Description/Features

Display the source code of your page within the page itself. Helpful for showcasing your wiki coding mastery. It's a very simple macro, but was not totally obvious how to implement it. So other people can benefit from my time investment.

Installation

Create a new User Macro called "sourcecode".
Uncheck "Macro has a body"
Select for output: "Macro generates wiki markup"

Enter this code:

## Display the source code of the current page inline
#set ($source = $content.getContent())
{noformat:title=Source Code}
$source
{noformat}

Usage

Just put {sourcecode} in your page.

Screenshots

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.