
see below....
<link href='http://alexgorbatchev.com/pub/sh/2.1.364/styles/shCore.css' rel='stylesheet' type='text/css'/> <link href='http://alexgorbatchev.com/pub/sh/2.1.364/styles/shThemeDefault.css' rel='stylesheet' type='text/css'/> <script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shCore.js' type='text/javascript'></script> <script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shBrushCpp.js' type='text/javascript'></script> <script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shBrushCSharp.js' type='text/javascript'></script> <script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shBrushCss.js' type='text/javascript'></script> <script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shBrushJava.js' type='text/javascript'></script> <script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shBrushJScript.js' type='text/javascript'></script> <script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shBrushPhp.js' type='text/javascript'></script> <script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shBrushPython.js' type='text/javascript'></script> <script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shBrushRuby.js' type='text/javascript'></script> <script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shBrushSql.js' type='text/javascript'></script> <script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shBrushVb.js' type='text/javascript'></script> <script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shBrushXml.js' type='text/javascript'></script> <script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shBrushPerl.js' type='text/javascript'></script> <script language='javascript'> SyntaxHighlighter.config.bloggerMode = true; SyntaxHighlighter.config.clipboardSwf = 'http://alexgorbatchev.com/pub/sh/2.1.364/scripts/clipboard.swf'; SyntaxHighlighter.all(); </script>
[!HTMLthis? &source=`sourceHTML` &type=`1` !]
<?php
/**********************************
HTMLthis
**********************************
Built upon SyntaxHighlighter
by Alex Gorbatchev
(SyntaxHighlighter is a fully functional self-contained
code syntax highlighter developed in JavaScript.)
http://alexgorbatchev.com/wiki/SyntaxHighlighter
==========================
Takes two parameters &source and &type
Example Call:
[!HTMLthis &source=`rawCodeTpl` &type=`1` !]
rawCodeTpl is the name of the chunk containing the code
to be displayed.
&type is the type of code being displayed.
1 = html
2 = php
3 = css
-------------------------------------------
*/
global $modx;
$chunk_str = $modx->getChunk($source);
switch ($type) {
case 0:
echo "i equals 0";
break;
case 1:
$ext = 'html';
break;
case 2:
$ext = 'php';
break;
}
$output_code = '<pre class="brush: '.$ext.'">'."\n";
$output_code .= $chunk_str;
$output_code .= '</pre>'."\n";
echo $output_code;
?>
$modx->regClientStartupScript('http://wr.readspeaker.com/webreader/webreader.js.php?cid='. $cid);