WP-Syntax

When using WordPress to publish code we take advantage of the functionality of a generic Syntax Highlighter created by GeSHi. To use this in WordPress you’ll need a plugin called WP-Syntax.

Example:

1
2
3
4
5
6
7
8
  static void FO_HelloWorld(Args _args)
  {
      str     HelloWorld = "Hello World!";
      ;
 
      print HelloWorld;
      pause;
  }

My advice to anyone that thinks about installing this plugin is to read about it and it’s functionality. The link to the plugin contains good information that descibes how to edit the look of the code display using CSS.

2 thoughts on “WP-Syntax

  1. Hi!

    We chose wordpress because that was the blog engine I knew how to use basically. But I like it a lot, works great, is easy to use and has a lot of helpful plugins.

    Geshi has a templete that is created for x++. It´s called xpp:

    I can not type the correct syntax here because my editor won´t allow me to. But if you look att he example under the link “edit” in the above text, just change lang=”java” to lang=”xpp”.

    Hope that helps!

Leave a Reply

Your email address will not be published. Required fields are marked *