Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 25 Jul 2012, 13:52
Sarteck's Avatar
Sarteck Sarteck is offline
 
Join Date: Mar 2008
Bunny! Better syntax highlighting for SQL, PHP, HTML, etc. on vB.org?

Using GeSHi (Generic Syntax Highlighter), we could have highlighted code for SQL (and, IMO, better highlighting for HTML and PHP as well) as BB Codes for use on vB.org. We could also include JavaScript, CSS, and (for server optimization, etc.) BASH highlighting.

I give some examples on how to do this for vB4 here, and I don't think the process would be much more involved for vB 3.6.12 (vB.org's version). Although I guess since you have that thing where only licensed members can view code, it might get a little more involved...

But anyways. It's not any huge deal, and we've obviously gotten on well enough without it. I'd just like to bring it to your attention in case it's not previously been considered, and maybe get some member feedback on it as well.

So give it some thought (or not, if you've got your hands full elsewhere, heh). :3
Reply With Quote
  #2  
Old 25 Jul 2012, 13:58
vbenhancer's Avatar
vbenhancer vbenhancer is offline
 
Join Date: Dec 2009
Real name: nexia
Geshi is a bit outdated and unsupported, but your idea join mine regarding a new Code Parser... but coders sites are not that popular, so focussing on coding a complete new highlighter/parser would be a loss of time...i have mine for MySQL, which is the version used by vB.org since day one, but that's about it...

the PHP/HTML/CODE bbcodes are used by how many websites around here?... not much if we consider that nobody need to highlight a PHP code in a parenting forum or a lizards fan group...
Reply With Quote
  #3  
Old 28 Jul 2012, 03:38
Sarteck's Avatar
Sarteck Sarteck is offline
 
Join Date: Mar 2008
I'm not talking about including it in the default vBulletin software--I agree, that's more or less an exercise in futility. :P

I'm talking about using it here at vB.org, where we often do communicate code.

Here's an example. See this thread. Note the JavaScript in the HTML box in my second post? Having that all prettified to actual JavaScript code would be nice. Having it parse correctly at all would be nice. XD
Reply With Quote
  #4  
Old 28 Jul 2012, 16:50
Ziki's Avatar
Ziki Ziki is offline
 
Join Date: Nov 2005
You have my bow.

Though unfortunately I don't see this ever happening.
__________________
My free mods~click here
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
BB Code Enhancements Better code syntax highlighting Sarteck vBulletin 4.x Add-ons 43 21 Aug 2017 01:19



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 07:44.

Layout Options | Width: Wide Color: