This is a highlight plugin for the blogging platform Serendipity.
Plugin archive: serendipity_event_highlight.zip
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.
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.