Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
5 registered (alissarose, KuKuKaChu, Dunny, id242, FordDoctor), 47 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 03/06/10
Posts: 14
Top Posters (30 Days)
Ruben 51
Gizmo 24
DennyP 24
Dunny 15
SteveS 14
AllenAyres 12
SD 10
dbremer 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 4 1 2 3 4 >
Topic Options
#188600 - 06/24/07 07:11 PM Syntax highlighting
SD Offline
Registered: 04/19/07
Posts: 4056
Loc: SoCal, USA
Currently we have the "< php >" tags and the highlighting is generated 'server side'.

With forums where syntax highlighting is extensively used, it would not only be nice to offload the server to the client side (php vs javascript), but to also add more than just php code as that being highlighted.

There are .js libs out there to do the trick and they fall into various categories. Most important of which is licensing (FREE to use and add to commercial product).

Two products (and there probably are more) that come to mind are:

http://softwaremaniacs.org/soft/highlight/en/ (ty Ian)
http://code.google.com/p/syntaxhighlighter/

both fit the 'FREE' category. one being a short license blurb allowing it and the other with a full on GNU Lesser glob.

This would be simple to add to the <? button as a dropdown to generate the appropriate class tags, allowing for all kinds of highlighting that is accomplished on the clients' machines.

Thanks to Ian Spence for this idea.
_________________________

Threads tutorials . Threads & Wordpress experts . UBB resume

If I you, click this link as to why
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#188605 - 06/24/07 08:06 PM Re: Syntax highlighting [Re: SD]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
I do like the idea of expanding on resource highlighting, but I'd like to sugguest we keep the php syntax highlighter as is as who's to say the user is going to have javascript enabled in the first place?

The benefit of server-side is that you don't have to depend on user security settings to relay the same content and have it appear as it should...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#188630 - 06/25/07 12:11 AM Re: Syntax highlighting [Re: Gizmo]
Ian Spence Offline
Registered: 06/04/06
Posts: 255
 Originally Posted By: Gizmo
I do like the idea of expanding on resource highlighting, but I'd like to sugguest we keep the php syntax highlighter as is as who's to say the user is going to have javascript enabled in the first place?

The benefit of server-side is that you don't have to depend on user security settings to relay the same content and have it appear as it should...


it should just be assumed that javascript is enabled, since it's pretty impossible to use the board to it's full potential without it anyway. You can't upload files, make polls, use the shoutbox, use any dropdown menus, preview your post, use quick reply, etc.
Top
#188631 - 06/25/07 12:35 AM Re: Syntax highlighting [Re: Ian Spence]
SD Offline
Registered: 04/19/07
Posts: 4056
Loc: SoCal, USA
i agree. the days of having to degrade to a non .js and even non .css environment should be over.
_________________________

Threads tutorials . Threads & Wordpress experts . UBB resume

If I you, click this link as to why
Top
#188632 - 06/25/07 12:38 AM Re: Syntax highlighting [Re: SD]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
But you can reply, you can login, you can use the basic underlying system, without Javascript being enabled...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#188635 - 06/25/07 12:51 AM Re: Syntax highlighting [Re: Gizmo]
Ian Spence Offline
Registered: 06/04/06
Posts: 255
actually you can't post.

(Boy, that really ruined your reasoning, didn't it? \:p )
Top
#188638 - 06/25/07 01:41 AM Re: Syntax highlighting [Re: Ian Spence]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
That really sucks... You'd think at least THAT wouldn't rely on javascript... Looks like I'll never be posting on a UBB.T7 forum from my PDA running IE4 and it's crappy implimentation of life...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#188639 - 06/25/07 02:37 AM Re: Syntax highlighting [Re: Gizmo]
Ian Spence Offline
Registered: 06/04/06
Posts: 255
I think UBB.threads should detect IE4 and delete your account
Top
#188641 - 06/25/07 02:55 AM Re: Syntax highlighting [Re: Ian Spence]
SD Offline
Registered: 04/19/07
Posts: 4056
Loc: SoCal, USA
i'm for ie 5.5 \:D (no seriously though)..

Giz, js is inevitable. you're advocating an AJAX registration and probably tons other Ajax stuff..

i know you realize what the J in Ajax really is ;\)

and you do realize that the < and > and & characters are replaced, so there is no possibility of hax0ring there ;\)
_________________________

Threads tutorials . Threads & Wordpress experts . UBB resume

If I you, click this link as to why
Top
#188642 - 06/25/07 03:25 AM Re: Syntax highlighting [Re: SD]
gliderdad Offline
Registered: 06/08/06
Posts: 1466
Loc: NY
I say IE all together \:p


Edited by gliderdad (06/25/07 03:25 AM)
Top
Page 1 of 4 1 2 3 4 >



Moderator:  AllenAyres, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10490 Members
36 Forums
33841 Topics
181708 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image