ハイライトファイルからhtmlテキストエリアにテキストを書きたいのですが...どうすればいいですか?注:画面に色付きのテキストを書き込むことはできますが、テキストを変更できるボックスにロードする必要があります。どうも
<?php
...
$code = highlight_file($_POST[filename]);//not sure if this works to write to $code
...
?>
<html>
<textarea type="text" name="code" rows="40" cols="120">
<?php echo $code; ?>
</textarea> <!this does not work>
</html>