Movable Type Plugin

This is a highlight plugin for the blogging platform Movable type.

Download

Plugin archive: mt-highlight.zip

Installation

  • Install highlight on your host
  • Unzip the mt-highlight.tar.gz file and upload the content to the `plugins/` directory of your MT installation

Usage

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

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

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

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 plugins/highlight/highlight.pl file for some formatting options (line numbering, code indentation, line wrapping etc).

Screenshot

en/movabletype.txt · Last modified: 2012/06/18 21:33 (external edit)
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0