[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 by Matt Raible on January 14, 2004 at 12:54 AM MST #
Posted by Matt Raible on January 14, 2004 at 01:17 AM MST #
Posted by Lance on January 14, 2004 at 03:11 PM MST #