hi :) (sorry if my english is not perfect :/ ) im trying to make a code editor for my site, i want to color automatically code written by users at the some time they tape it. i found this php script which use GeSHi to color code . my problem is that i can't use it in textarea :/ someone talked about using fieldset but i cant understand how :/
include("geshi/geshi.php");
$source = $req;
$language = 'php';
$path = 'geshi/geshi/';
$geshi = new GeSHi($source, $language, $path);
echo $geshi->parse_code();
could someone help me ? :) thank you :)
Geshi can't do that since it run on server side. You may use a JS code highlighter like CodeMirror or highlight.js which run on client side.