Fournisseur

http://alexgorbatchev.com/SyntaxHighlighter/

 Le site n'existe plus. Le plugin n'utilise que du javascript, contrairement à la famile geshi qui elle utilise du php.

Le site ne fonctionne pas très bien.

 

La syntaxe

<pre class="brush:php;gutter:false;toolbar:false">    
    public static function getpost() {
        if (version_compare(JVERSION, '4.0', 'ge')){
            return JFactory::getApplication()->input->getArray(array());
        }
        else {
            return call_user_func_array('AttachmentsHelper::get', ['post']);
        }
    }
</pre>

 

 

Le résultat

	
    public static function getpost() {
        if (version_compare(JVERSION, '4.0', 'ge')){
            return JFactory::getApplication()->input->getArray(array());
        }
        else {
            return call_user_func_array('AttachmentsHelper::get', ['post']);
        }
    }

 

Correctif

J'ai eu un souci sous Internet Explorer

can't find a brush

 

J'ai fait un correctif dans syntaxhighlighter:

JFactory::getDocument()->addScriptDeclaration($js); 
//added  
JFactory::getDocument()->addScript( 'plugins/content/syntaxhighlighter/js/shBrushPhp.js' );
JFactory::getDocument()->addScript( 'plugins/content/syntaxhighlighter/js/shBrushCss.js' );