Diff: Help/SyntaxHighlighterPlugin

Note: You are viewing an old revision of this page. View the current version.

Differences between version 3 and previous revision of Help/SyntaxHighlighterPlugin.

Other diffs: Previous Major Revision, Previous Author

Newer page: version 3 Last edited on 9 September 2007 0:16 by harold Revert
Older page: version 2 Last edited on 22 May 2014 3:01 by harold Revert
@@ -1,70 +1,50 @@
-The ** ~SyntaxHighlighter** [[Help:WikiPlugin| plugin]] passes all its arguments through a C++  
-highlighter called "highlight" (available at [[ http://www.andre-simon.de]] ). 
+The ~SyntaxHighlighter plugin passes all its arguments through a C++  
+highlighter called "highlight" (available at http://www.andre-simon.de/ ). 
  
-== Arguments ==  
+Author: alecthomas  
  
-{| class="bordered"  
-|-  
- ! Argument  
-! Description  
-! Default value  
-|-  
-| ** syntax**  
- |  
-| //None// (required argument ), 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)  
-|}  
+! 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 ==  
  
-{{{  
-<<SyntaxHighlighter syntax=c style=kr color=bright  
+! Example  
+  
+<verbatim>  
+ <?plugin SyntaxHighlighter syntax=c style=kr color=emacs  
  #include <stdio.h> 
  
  int main() { 
  printf("Lalala\n"); 
 
-> >  
-}}}  
+? >  
+</verbatim>  
  
-will give:  
+=>  
  
-<< SyntaxHighlighter syntax=c style=kr color=bright  
+<?plugin SyntaxHighlighter syntax=c style=kr color=emacs  
  #include <stdio.h> 
  
  int main() { 
  printf("Lalala\n"); 
 
->
+?
  
 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. 
  
-== Authors ==  
-  
-* alecthomas  
-* Fixes by [[Help: Reini Urban|Reini Urban]] :  
-* * support options: syntax, style, color,  
-* * php version switch,  
-* * HIGHLIGHT_DATA_DIR, HIGHLIGHT_EXE constants,  
-  
-<noinclude>  
+Fixes by Reini Urban:  
+* support options: syntax, style, color.  
+* php version switch  
+* HIGHLIGHT_DATA_DIR, HIGHLIGHT_EXE constants 
 ---- 
-[[ PhpWikiDocumentation]] [[CategoryWikiPlugin]]  
-</noinclude>  
+PhpWikiDocumentation Help:WikiPlugin  

version 3

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");
 }
?>

=>


#include <stdio.h>

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

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 Help:WikiPlugin