Serendipity plugin

This is a highlight plugin for the blogging platform Serendipity.

Download

Installation

  • Install highlight on your host
  • Unpack the serendipity_event_highlight.zip file into the serendipity plugin dir
  • Activate and configure the plugin in the serendipity administration menu

IMPORTANT: To avoid insertion of superfluous <br> Tags by the nl2br plugin, add the string “highlight” to the “list of HTML-tags where no breaks shall be converted” in the nl2br configuration menu.

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.

Screenshot

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