Tuesday January 13, 2004
[New Feature] Wiki Syntax support added to comments For you, my friends, I've added the ability to use JSPWiki syntax when writing comments. All you need to do is start your comment with an exclamation point - ! Hopefully this will help add automatic line-breaks when you add a line-break in the textarea, as well as making it easier for you to you to type in any code. If you're typing or pasting in Java code, try using the Java2HtmlPlugin. It's easy to use, just type the starting and closing tags, and insert a blank line before your code. For example, here's the raw text.
[{Java2HtmlPlugin
public class HelloWorld {
public static void main(String args[]) {
System.out.println("Hello World!");
}
}
}]
I don't know if the "Preview" button (from the Permalink) supports it, but I've added the following to both twisty comments and regular comments.
#if($content.startsWith("!"))
#set( $wikiText = $stringUtils.substring($content,1))
#set( $renderedText = $wikiPlugin.render($wikiText))
#else
#set( $renderedText = $content )
#end
$renderedText
Enjoy!
Posted in Roller
at Jan 13 2004, 05:48:44 PM MST
3 Comments
Search This Site
Recent Entries
- Wine Tasting in Napa Valley
- How to build a Shot-Ski
- Bus Project Update
- Farewell to the 2011-2012 Ski Season
- Cruising around the Western Caribbean
- Spring Break!
- A Spectacular Trip to Stockholm and Madrid
- Comparing Web Frameworks and HTML5 with Play Scala at Jfokus 2012
- Play Framework 2.0 with Peter Hilton at Jfokus
- Secure JSON Services with Play Scala and SecureSocial
Posted by Matt Raible on January 13, 2004 at 06:54 PM MST #
Posted by Matt Raible on January 13, 2004 at 07:17 PM MST #
Posted by Lance on January 14, 2004 at 09:11 AM MST #