Page 2 of 2

Re: Better Code Highlighting

Posted: Sun Aug 18, 2013 1:35 am
by xenos
That's why I suggested to use a syntax highlighting which can be adapted to the forum styles, instead of using fixed colors. This way one could have styles which show different colors for syntax highlighting, and styles which don't. Would that be sufficiently user configurable?

We already have syntax highlighting in the wiki, so you can see what it looks like - does anyone oppose this highlighting in the wiki? The wiki plugin uses GeSHi, which is also available as a PHPBB plugin and works just as I described in my post above. The colors are applied via CSS and can thus be adapted to the different forum styles.

Re: Better Code Highlighting

Posted: Sun Aug 18, 2013 3:02 am
by dozniak
All we need is a set of css styles matching each forum theme, where most of the themes could probably be served by a single css style.

Most browsers also allow CSS overrides, so you can style away all you want.

Re: Better Code Highlighting

Posted: Sun Aug 18, 2013 10:18 am
by Owen
XenOS wrote:That's why I suggested to use a syntax highlighting which can be adapted to the forum styles, instead of using fixed colors. This way one could have styles which show different colors for syntax highlighting, and styles which don't. Would that be sufficiently user configurable?

We already have syntax highlighting in the wiki, so you can see what it looks like - does anyone oppose this highlighting in the wiki? The wiki plugin uses GeSHi, which is also available as a PHPBB plugin and works just as I described in my post above. The colors are applied via CSS and can thus be adapted to the different forum styles.
Thats a phpBB2 plugin.

Re: Better Code Highlighting

Posted: Sun Aug 18, 2013 10:26 am
by xenos
Owen wrote:Thats a phpBB2 plugin.
I'm not familiar with PHPBB versions and which plugin works on which version... But anyway, isn't there something similar for the version used here?