Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
8 registered (WEBDosser, UBBSystems, KT999, FordDoctor, Cuervo, Bad Frog, Dunny, VaGunTrader), 35 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 08/05/10
Posts: 108
Top Posters (30 Days)
Ruben 84
SD 62
Gizmo 57
Dunny 30
gliderdad 30
Mark S 23
Iann128 19
driv 18
Steve C 16
dbremer 16
Latest Photos
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Gizzo Marx
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: 4031
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: 14898
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: 4031
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: 14898
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: 14898
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: 4031
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: 1427
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
Long thread, UBB code not parsing
by Bad Frog
19 minutes 56 seconds ago
Most Recent Posts
by Bert
Today at 12:21 AM
Welcome message
by johnH
Yesterday at 05:00 PM
how to update registrant contact info?
by VaGunTrader
02/07/12 05:29 PM
can't edit profile
by prkrgrp
02/04/12 07:26 PM
Forum Stats
10204 Members
36 Forums
33659 Topics
180853 Posts

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