ProductDose.com
 
 
 

The SyntaxHighlighter plugin passes all its arguments through a C++ highlighter called "highlight" (available at http://www.andre-simon.de/).

Author: alecthomas

Arguments

syntax (required), See http://www.andre-simon.de/doku/highlight/highlight.html
style [ "ansi", "gnu", "kr", "java", "linux" ] (required)
color null (optional), see highlight/themes
number 0 (optional)
wrap 0 (optional)

Example

<?plugin SyntaxHighlighter syntax=c style=kr color=emacs
 #include <stdio.h>

 int main() {
 printf("Lalala\n");
 }
?>

=>

Plugin SyntaxHighlighter failed. sh: line 1: highlight: command not found
Plugin SyntaxHighlighter failed. Couldn't start commandline 'highlight --data-dir /usr/share/highlight --style emacs -c /nfs/c04/h05/mnt/60223/domains/productdose.com/html/phpwiki/uploads/highlight-emacs.css -F kr -q -X -f -S c'

I did not use beautifier, because it used up more than 8M of memory on my system and PHP killed it. I'm not sure whether this is a problem with my integration, or with beautifier itself.

Fixes by Reini Urban:

  • support options: syntax, style, color.
  • php version switch
  • HIGHLIGHT_DATA_DIR, HIGHLIGHT_EXE constants

PhpWikiDocumentation WikiPlugin

Creative Commons License
Valid XHTML 1.0! Valid CSS!
Page Execution took real: 0.621, user: 0.080, sys: 0.020 seconds, Memory: 8256800

 
 

Sponsored Links

 
 
Most Popular Products
No Results.