OSDev.org
https://forum.osdev.org/

Better Code Highlighting
https://forum.osdev.org/viewtopic.php?f=6&t=27032
Page 2 of 2

Author:  xenos [ Sun Aug 18, 2013 1:35 am ]
Post subject:  Re: Better Code Highlighting

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.

Author:  dozniak [ Sun Aug 18, 2013 3:02 am ]
Post subject:  Re: Better Code Highlighting

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.

Author:  Owen [ Sun Aug 18, 2013 10:18 am ]
Post subject:  Re: Better Code Highlighting

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.

Author:  xenos [ Sun Aug 18, 2013 10:26 am ]
Post subject:  Re: Better Code Highlighting

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?

Page 2 of 2 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/