| 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.
