Tuesday October 17, 2006 Blog about your favourite Wiki with the Wikipedia Formatter Plugin
You can easily use the Plog4U Wikipedia Formatter in this Groovy-News Roller instance. Simply register your user and create a new blog.
In the Preferences->Settings menu you can define your prefered Weblog editor page to be used as editor-text.jsp and that the Wikipedia formatter plugin should be applied by default:

Uploaded images are included in a blog entry by inserting the URL in the blog's text. If the name of the image ends with *.png, *.gif, *.jpg or *.jpeg the image is directly included in the text.
For example <center>http://www.groovy-news.org/e/resources/test/wiki_editor.png</center> embeds the image at the end of this blog entry.
If you create a template with the name _wiki,

wiki_url=http://en.wikipedia.org/wiki/${title}

The editor's textarea for this blog entry will look like this:

Using the syntax highlighter for code snippets
The Wikipedia formatter supports tags to show syntax highlighted code snippets for java, php, csharp, javscript, xml and abap programming language source code.
Here is a simple Java example:
<java>
package test;
public class HelloWorld {
/**
* The main method
*
* @param args
*/
public static void main(String[] args) {
// output example:
System.out.println("Hello World");
}
}
</java>
which renders like this:
package test;
public class HelloWorld {
/**
* The main method
*
* @param args
*/
public static void main(String[] args) {
// output example:
System.out.println("Hello World");
}
}
Posted by axelclk
( Oct 17 2006, 08:49:03 PM CEST )
Permalink
Comments [0]