phpBB

Development Discussion Board

phpBB's testing ground of bleeding edge code
Advanced search

[RFC] GeSHi highlighting

Publish your own request for comments or patches for the next version of phpBB. Discuss the contributions and proposals of others. Upcoming releases are 3.1/Ascraeus and 3.2/Arsia.

Re: [RFC] GeSHi highlighting

Postby AliasM2K » Tue May 08, 2012 11:16 pm

Just a suggestion; there is Prettify too...
User avatar
AliasM2K
Registered User
 
Posts: 82
Joined: Tue Mar 27, 2012 2:33 am

Re: [RFC] GeSHi highlighting

Postby brunoais » Wed May 09, 2012 10:57 am

I believe that won't be accepted because it works in the client side (js).
brunoais
Registered User
 
Posts: 626
Joined: Fri Dec 18, 2009 3:55 pm

Re: [RFC] GeSHi highlighting

Postby callumacrae » Wed May 09, 2012 11:05 am

brunoais wrote:I believe that won't be accepted because it works in the client side (js).

What's wrong with client-side highlighting?
"In JavaScript, there is a beautiful, elegant, highly expressive language that is buried under a steaming pile of good intentions and blunders"
—Douglas Crockford

View my MOD, phpBB Mobile
User avatar
callumacrae
Website Team
Website Team
 
Posts: 883
Joined: Tue Apr 27, 2010 9:37 am
Location: England

Re: [RFC] GeSHi highlighting

Postby Erik Frèrejean » Wed May 09, 2012 11:10 am

brunoais wrote:I say that this is what I'd call a great extension.
I think the overhead of this does not make it worthwhile for the core. Many forums that run phpBB are forums related to coding, right.
I still believe that that is not enough to have such feature in the core.
So, -1 for core. Great as an extension
(technical stuff under this)
This is something very easy to place. This is just something that processes text.
Having that into account, I believe we just need to insert geshi into the BBcode parser (the part before displaying the post).
A nicely placed event will make the extension making simple enugh.

+1
Available on .com
Support Toolkit developer
User avatar
Erik Frèrejean
Registered User
 
Posts: 207
Joined: Thu Oct 25, 2007 2:25 pm
Location: surfnet

Re: [RFC] GeSHi highlighting

Postby brunoais » Wed May 09, 2012 5:51 pm

callumacrae wrote:
brunoais wrote:I believe that won't be accepted because it works in the client side (js).

What's wrong with client-side highlighting?

Does not work for non js users.
brunoais
Registered User
 
Posts: 626
Joined: Fri Dec 18, 2009 3:55 pm

Re: [RFC] GeSHi highlighting

Postby wGEric » Wed May 09, 2012 6:28 pm

brunoais wrote:Does not work for non js users.

You could argue that this feature is like AJAX, enhances the user experience but everything still works without it.
Eric
wGEric
Registered User
 
Posts: 506
Joined: Wed Jun 11, 2003 2:07 am

Re: [RFC] GeSHi highlighting

Postby callumacrae » Wed May 09, 2012 7:16 pm

I wouldn't class syntax highlighting as an essential feature, just an enhancement - it doesn't need to work with JS disabled.
"In JavaScript, there is a beautiful, elegant, highly expressive language that is buried under a steaming pile of good intentions and blunders"
—Douglas Crockford

View my MOD, phpBB Mobile
User avatar
callumacrae
Website Team
Website Team
 
Posts: 883
Joined: Tue Apr 27, 2010 9:37 am
Location: England

Re: [RFC] GeSHi highlighting

Postby AliasM2K » Thu May 10, 2012 2:15 pm

callumacrae wrote:I wouldn't class syntax highlighting as an essential feature, just an enhancement - it doesn't need to work with JS disabled.


Absolutely :D
User avatar
AliasM2K
Registered User
 
Posts: 82
Joined: Tue Mar 27, 2012 2:33 am

Re: [RFC] GeSHi highlighting

Postby DavidIQ » Thu May 10, 2012 2:33 pm

+1 for being kept as an extension.
Image
User avatar
DavidIQ
MOD Team Leader
MOD Team Leader
 
Posts: 760
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth

Re: [RFC] GeSHi highlighting

Postby imkingdavid » Thu May 10, 2012 5:06 pm

DavidIQ wrote:+1 for being kept as an extension.
I do custom MODs. PM for a quote!
View My: MODs | Portfolio
Please do NOT contact for support via PM or email.
Remember, the enemy's gate is down.
User avatar
imkingdavid
Development Team
Development Team
 
Posts: 902
Joined: Thu Jul 30, 2009 12:06 pm

Previous Next

Return to [3.x] RFCs

Who is online

Users browsing this forum: Bing [Bot] and 10 guests