Development

dkGeshiPlugin

You must first sign up to be able to contribute.

Overview

dkGeshiPlugin (old sfGeshiPlugin) wraps the PHP library GeSHi to silently integrates it in symfony.

To use dkGeshiPlugin, you should always make an external link to the branch of current stable GeSHi version. To view all branches, please look at plugin branches list in trac

Branches names are made of {symfony-version}.{geshi-version}.{subrelease}

Usage

<?php
$highlighter = new dkGeshi("<?php\necho 'Hello World';\n?>","php");
echo $highlighter->parse_code();
?>

You can use any function of GeSHi with the dkGeshi class, which extends the original one.

Reference