La coloration syntaxique avec drupal
- Configuer le plugin drupal : https://www.drupal.org/project/geshifilter
- Pour ajouter un bloc coloré syntaxique
Ajouter un bloc :
<pre language="php">
code...
</pre>
/** * Process callback for the GeSHi filter. */ function geshifilter_process_callback($text, $filter) { require_once drupal_get_path('module', 'geshifilter') .'/geshifilter.pages.inc'; return _geshifilter_process($filter->format, $text); }
Ajouter un commentaire