GeSHi Code Editor for the Web

hi :) (sorry if my english is not perfect: /) I'm trying to make a code editor for my site, I want users to automatically write color when they are on tape. I found this PHP script that uses GeSHi for color code. my problem is that I cannot use it in textarea: / someone talked about using fieldset, but I cannot figure out how: /

include("geshi/geshi.php");

$source = $req;
$language = 'php';
$path = 'geshi/geshi/';

$geshi = new GeSHi($source, $language, $path);

echo $geshi->parse_code();

can someone help me? :) thanks :)

+4
source share
1 answer

Geshi , . JS-, CodeMirror highlight.js, .

+1

Source: https://habr.com/ru/post/1534340/


All Articles