我想将文本从 highlight_file 写入 html textarea...但不确定如何?注意:我可以将彩色文本写入屏幕,但我希望将其加载到可以修改文本的框中。谢谢
<?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>