<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="home" title="HomePage" href="HomePage.html" />
<link rel="help" title="HowToUseWiki" href="HowToUseWiki.html" />
<link rel="copyright" title="GNU General Public License" href="http://www.gnu.org/copyleft/gpl.html#SEC1" />
<link rel="author" title="The PhpWiki Programming Team" href="http://phpwiki.org/ThePhpWikiProgrammingTeam" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Language" content="en" />
<meta name="robots" content="noindex,nofollow" />
<meta name="language" content="en" />
<meta name="document-type" content="Public" />
<meta name="document-rating" content="General" />
<meta name="generator" content="PhpWiki" />
<meta name="PHPWIKI_VERSION" content="1.3.14" />

<base href="../" />
<link rel="stylesheet" type="text/css" charset="iso-8859-1" href="phpwiki-printer.css" />
<title>PhpWiki - Help  /  Syntax Highlighter Plugin</title>
</head>
<body>

<div id="header">
  
<!-- Page title -->
<h1>Help  /  Syntax Highlighter Plugin</h1>
</div>
<div id="content">



<div class="wikitext"><p class="tightenable top">The SyntaxHighlighter plugin passes all its arguments through a C++
highlighter called &quot;highlight&quot; (available at <a href="http://www.andre-simon.de/" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />http://www.andre-simon.de/</span></a>).</p>
<p class="tightenable">Author: alecthomas</p>
<h4>Arguments</h4>
<table class="wiki-dl-table" border="1" cellspacing="0" cellpadding="6"><tr class="tightenable top bottom"><th>syntax</th>
<td>(required), See <a href="http://www.andre-simon.de/doku/highlight/highlight.html" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />http://www.andre-simon.de/doku/highlight/highlight.html</span></a></td>
</tr>
<tr class="tightenable top bottom"><th>style</th>
<td>[ &quot;ansi&quot;, &quot;gnu&quot;, &quot;kr&quot;, &quot;java&quot;, &quot;linux&quot; ] (required)</td>
</tr>
<tr class="tightenable top bottom"><th>color</th>
<td>null (optional), see <tt>highlight/themes</tt></td>
</tr>
<tr class="tightenable top bottom"><th>number</th>
<td>0  (optional)</td>
</tr>
<tr class="tightenable top"><th>wrap</th>
<td>0  (optional)</td>
</tr>
</table>
<h4>Example</h4>
<pre class="tightenable">
&lt;?plugin SyntaxHighlighter syntax=c style=kr color=emacs
 #include &lt;stdio.h&gt;

 int main() {
 printf(&quot;Lalala\n&quot;);
 }
?&gt;</pre>
<p class="tightenable">=&gt;</p>
<div class="errors"><strong>Plugin SyntaxHighlighter failed.</strong> sh: highlight: command not found
</div>
<div class="plugin tightenable" id="SyntaxHighlighterPlugin"><div class="errors"><strong>Plugin SyntaxHighlighter failed.</strong> Couldn't start commandline 'highlight --data-dir /usr/share/highlight --style emacs -c /home/e-smith/files/ibays/phpwiki/html/uploads/highlight-emacs.css -F kr -q -X -f -S c'</div>
</div>
<p class="tightenable">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.</p>
<p class="tightenable bottom">Fixes by Reini Urban:</p>
<ul><li class="tightenable top bottom">support options: syntax, style, color.</li>
<li class="tightenable top bottom">php version switch</li>
<li class="tightenable top bottom">HIGHLIGHT_DATA_DIR, HIGHLIGHT_EXE constants</li>
</ul>
<hr />
<p class="tightenable top bottom"><a href="PhpWikiDocumentation.html" class="wiki">PhpWikiDocumentation</a> <a href="Help/WikiPlugin" class="interwiki"><span style="white-space: nowrap"><img src="images/interwiki.png" alt="" class="linkicon" border="0" />Help:</span><span class="wikipage">WikiPlugin</span></a></p>
</div>

<div id="footer">  <hr class="printer" noshade="noshade" />
<p class="editdate">Owner: &quot;admin&quot;  Last edited on August 14, 2007  7:11 am by &quot;The PhpWiki programming team&quot;</p>
</div>

</div>
<!-- Add your Disclaimer here -->
</body>
</html>
