WordPress Plugin

This is a highlight plugin for the blogging platform WordPress.

Download

Highlight sources

The plugin code is located in the examples subdirectory.

Installation

  • Install highlight on your host
  • Upload the plugin directory the content to the `/wp-content/plugins/` directory of your wordpress installation
  • Activate the plugin

Usage

Paste the following in the code section of the blog editing form:

<pre lang="c">#include <stdio.h>

int main (void){
  printf("This is some random code");
  return 0;
}</pre>

Use the lang parameter to define the programming language (c, php, py, xml, etc). See the highlight documentation to learn all possible languages.

See the highlight.php file for some formatting options (line numbering, code indentation, line wrapping etc).

Screenshot

en/wordpress.txt · Last modified: 2015/04/10 18:06 by saalen
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0