Better Code Highlighting

Questions, comments, and suggestions about this site should go here.
User avatar
xenos
Member
Member
Posts: 1121
Joined: Thu Aug 11, 2005 11:00 pm
Libera.chat IRC: xenos1984
Location: Tartu, Estonia
Contact:

Re: Better Code Highlighting

Post 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.
Programmers' Hardware Database // GitHub user: xenos1984; OS project: NOS
User avatar
dozniak
Member
Member
Posts: 723
Joined: Thu Jul 12, 2012 7:29 am
Location: Tallinn, Estonia

Re: Better Code Highlighting

Post 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.
Learn to read.
User avatar
Owen
Member
Member
Posts: 1700
Joined: Fri Jun 13, 2008 3:21 pm
Location: Cambridge, United Kingdom
Contact:

Re: Better Code Highlighting

Post 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.
User avatar
xenos
Member
Member
Posts: 1121
Joined: Thu Aug 11, 2005 11:00 pm
Libera.chat IRC: xenos1984
Location: Tartu, Estonia
Contact:

Re: Better Code Highlighting

Post 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?
Programmers' Hardware Database // GitHub user: xenos1984; OS project: NOS
Post Reply