Web www.gerd-tentler.de
Version 1.3 (released Feb. 19, 2011) [Download]

Usage

Insert this script into your HTML page like this:
<html>
<head>
...
<script src="codeview.js" type="text/javascript"></script>
...
</head>
<body>
...
Then insert one or more PRE tags and use "codeview" followed by the script language as class name:
<pre class="codeview php" style="width:600px; height:300px;">...</pre>
...
<pre class="codeview javascript" style="width:600px; height:300px;">...</pre>
...
Line numbers can be viewed by adding the option "lineNumbers":
<pre class="codeview php lineNumbers" style="width:600px; height:300px;">...</pre>

Comments