I’ve created a new extension for mediawiki to color code / syntax highlight using SyntaxHighlighter.

Uses the latest 2.0 SyntaxHighlighter by Alex Gorbatchev. It supports Bash/shell, C#, C++, CSS, Delphi, Diff, Groovy, JavaScript, Java, Perl, PHP, Plain Text, Python, Ruby, Scala, SQL, Visual Basic and XML!

Example:

public static void main(Strings [] args)
{
	int i = 0;
	String x = "hello";

	System.out.println(x);
}
  • TwitThis
  • Yahoo! Buzz
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • MySpace
  • Google
  • Blogosphere News
  • LinkedIn
  • Live
  • Reddit
  • Slashdot
  • Technorati

Previous Post: Syntax Highlighter and Code Prettifier Plugin for Wordpress
Next Post: Installing haproxy load balancing for http and https

Leave a Reply