[dokuwiki] Re: Using GeSHi language definition colors instead of fixed colors for all languages

  • From: cyrille giquello <cyrille37@xxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Fri, 13 Mar 2009 13:09:55 +0100

2009/3/13 D.Hendriks (Dennis) <D.Hendriks@xxxxxx>:
> In GeSHi language definition files (.php files), one specifies STYLES. While
> DokuWiki uses GeSHi for syntax highlighting, it uses its own coloring
> scheme.
> This coloring scheme is the same for all languages.
> ...
> This is the patch:
> ...
> +    $style_code = '<style type="text/css"><!--' .
> $geshi->get_stylesheet(true) . '--></style>';
> +    $highlighted_code = $style_code . $highlighted_code;
> +
> ...
> Let me know what you think. Thanks.

I vote for this patch, it's nice and simple, and it respects the
GeSHi's features.

Regards
Cyrille.
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: