From: <var...@us...> - 2009-03-09 18:49:57
|
Revision: 6672 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6672&view=rev Author: vargenau Date: 2009-03-09 18:49:40 +0000 (Mon, 09 Mar 2009) Log Message: ----------- Wikicreole syntax Modified Paths: -------------- trunk/pgsrc/Help%2FPhpHighlightPlugin Modified: trunk/pgsrc/Help%FPhpHighlightPlugin =================================================================== --- trunk/pgsrc/Help%2FPhpHighlightPlugin 2009-03-09 18:38:33 UTC (rev 6671) +++ trunk/pgsrc/Help%2FPhpHighlightPlugin 2009-03-09 18:49:40 UTC (rev 6672) @@ -9,14 +9,14 @@ Content-Transfer-Encoding: binary The **~PhpHighlight** [[Help:WikiPlugin|plugin]] pretty-prints PHP code using the -php-function:highlight-string. +php-function:highlight-string. -See also [SyntaxHighlighter|Help:SyntaxHighlighterPlugin] plugin for highlighting other languages. +See also [[Help:SyntaxHighlighterPlugin|SyntaxHighlighter]] plugin for highlighting other languages. == Usage -You specify options for the plugin on the same line as the =<?plugin=, -and put the code on the following lines, until the final =?>=: +You specify options for the plugin on the same line as ##~<~<~PhpHighlight##, +and put the code on the following lines, until the final ##~>~>##: {{{ <<PhpHighlight [wrap?] [color options] @@ -26,8 +26,8 @@ == Description -Depending on the =wrap= option, then the plugin will take care of -adding =<?php= and =?>= to the code before passing it to +Depending on the ##wrap## option, then the plugin will take care of +adding ##<?php## and ##?>## to the code before passing it to php-function:highlight-string. If the PHP delimiters were added, then the plugin removes them again from the highlighted string, before presenting it. @@ -37,13 +37,13 @@ Automatic Wrapping: If you don't want the plugin to automatically wrap the source code - in =<?php= and =?>=, then set =wrap= to =0=. The default value is =1= + in ##<?php## and ##?>##, then set ##wrap## to ##0##. The default value is ##1## which means that the plugin takes care of adding and removing - =<?php= and =?>= automatically. + ##<?php## and ##?>## automatically. - If you set =wrap= to =0=, then you'll be able to mix PHP code with - HTML. The plugin will then translate '=< ?php=' into '=<?php=' and - '=? >=' into '=?>=' to allow you to start and stop PHP mode in your + If you set ##wrap## to ##0##, then you'll be able to mix PHP code with + HTML. The plugin will then translate '##< ?php##' into '##<?php##' and + '##? >##' into '##?>##' to allow you to start and stop PHP mode in your code. Color Options: @@ -52,14 +52,14 @@ highlight settings in *php.ini*. Specified colors must be a valid hexadecimal color or [HTML 4 color name|http://www.w3.org/TR/REC-html40/types.html#h-6.5] - in lowercase, such as ='#0f0344'= or =blue=. You can set the + in lowercase, such as ##'#0f0344'## or ##blue##. You can set the following options: - =string=, =comment=, =keyword=, =bg=, =default=, and =html= + ##string##, ##comment##, ##keyword##, ##bg##, ##default##, and ##html## == Examples -=== PHP with default colors from =php.ini=: +=== PHP with default colors from ##php.ini##: <<PhpHighlight function hello() { @@ -69,8 +69,8 @@ === HTML with embedded PHP -Here we have to use =wrap=0= to prevent automatic wrapping, and escape -'=?>=' as '=? >=': +Here we have to use ##wrap=0## to prevent automatic wrapping, and escape +'##?>##' as '##? >##': <<PhpHighlight wrap=0 html='#000000' bg='#dddddd' <html> @@ -85,7 +85,7 @@ === C Source -Although =highlight_string()= was designed with PHP code in mind it is +Although ##highlight_string()## was designed with PHP code in mind it is suitable for basic syntax-highlighting of most C code because the two syntax are similar. @@ -106,8 +106,8 @@ == Authors -* Martin Geisler mailto:gim...@gi... -* Carsten Klapp mailto:car...@us.... +* [[mailto:gim...@gi...|Martin Geisler]] +* [[mailto:car...@us...|Carsten Klapp]] <noinclude> ---- This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |