» Coloration Synthaxique avec Geshi
By COil on Monday 15 January 2007 23:50 ::
symfony ::
Permalink ::
Tags ::
parser
|
plugin
|
symfony
|
View comments
[En] About the syntax colouration, it's achieved with the help of the Geshi class, a new Symfony plugin has been done to be able to easly integrate and use it in Symfony. Hartym made it, all details here, Geshi allows to "colour" multiple syntaxes php, java... a little example : (1)
[Fr] A propos de la coloration syntaxique, elle est effectuée grâce à la classe Geshi, un plugin pour Symfony est sorti afin de l'utiliser simplement. C'est Hartym qui a créé ce plugin, ca se passe here, Geshi permet de "coloriser" de multiples syntaxes, php, java... un petit exemple :
(1)
[php]
<?php
$highlighter = new sfGeshi("<?php\necho 'Hello World';\n?>","php");
echo $highlighter->parse_code();
?>






