In Helene 0.9 things have become much MUCH easier. All you need to do now
is to create your own textarea, with the class 'helene', and include the
helene.js script.

e.g.:

<html>
<head>
	<title>Helene - Syntax Highlighting Editor in Javascript</title>
	<script src="helene.js"></script>
</head>
<body>
	<textarea class="helene" style="width: 400px; height: 300px; color:
black; font-size: 14px; border: 2px inset buttonhighlight" wrap='off'>
&lt;?php
	echo "Hello World!&lt;br&gt;";
?&gt;
</textarea>
</div>
</body>
</html>

That's all.

Below is the HOWTO for the previous version of Helene:

------------------------------------------------------------------------
This file explains how to insert a file read from disk into the editor
using php:


Assuming the contents of your file are in $file:

    $file = str_replace("\r", "", $file);
    $file = str_replace("\n", "\\n", $file);
    $file = str_replace('"', '\"', $file);
    $file = str_replace("\t", "\\t", $file);
    $file = str_replace("</script>", "</\"+\"script>", $file);

And then set the contents with:

    editor.setContents("<?php echo $file; ?>");

