OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 23, 2017 4:04 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Better Code Highlighting
PostPosted: Sun Aug 18, 2013 1:35 am 
Offline
Member
Member
User avatar

Joined: Thu Aug 11, 2005 11:00 pm
Posts: 1019
Location: Tartu, Estonia
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 // SF user: xenos1984; OS project: XeNOS


Top
 Profile  
 
 Post subject: Re: Better Code Highlighting
PostPosted: Sun Aug 18, 2013 3:02 am 
Offline
Member
Member
User avatar

Joined: Thu Jul 12, 2012 7:29 am
Posts: 566
Location: Tallinn, Estonia
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.


Top
 Profile  
 
 Post subject: Re: Better Code Highlighting
PostPosted: Sun Aug 18, 2013 10:18 am 
Offline
Member
Member
User avatar

Joined: Fri Jun 13, 2008 3:21 pm
Posts: 1700
Location: Cambridge, United Kingdom
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.


Top
 Profile  
 
 Post subject: Re: Better Code Highlighting
PostPosted: Sun Aug 18, 2013 10:26 am 
Offline
Member
Member
User avatar

Joined: Thu Aug 11, 2005 11:00 pm
Posts: 1019
Location: Tartu, Estonia
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 // SF user: xenos1984; OS project: XeNOS


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group