Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
4 registered (KuKuKaChu, Dunny, id242, FordDoctor), 47 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/05/06
Posts: 469
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 4 of 4 < 1 2 3 4
Topic Options
#188762 - 06/26/07 12:28 AM Re: Syntax highlighting [Re: SD]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
.... ok, so i do like the line numeration and ability to specify your own colors... :cracks:

However, I do NOT like this (off of their UBB.Wiki):
 Quote:
Performance
SyntaxHighlighter uses regular expressions to parse the text. It's not extremely fast, in fact, it's pretty slow. If you are trying to highlight a few dozens lines of code, you won't see any problems. Trying to highlight 10kb worth of text will result in JavaScript being aborted because of long execution time.
_________________________
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
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."
#188765 - 06/26/07 12:36 AM Re: Syntax highlighting [Re: Gizmo]
ntdoc Offline
Registered: 11/09/06
Posts: 3384
No like that, we post a LOT of code.
Top
#188766 - 06/26/07 12:37 AM Re: Syntax highlighting [Re: Gizmo]
SD Offline
Registered: 04/19/07
Posts: 4056
Loc: SoCal, USA
hehe, i think it would be quite easy to limit the size of the data being parsed per post. so that would save the javascript abort.

and in normal use (at least in the threads forums where i already use it), people don't paste more than a page or two of code at a time, which the .js code (from what i see) handles in chunks between pre's or textareas. so the fear of having a long thread with 2 pages each per post breaking it probably isn't totally scary.

matter of fact i just tried it on my test forum with 20 large copy/pastes of differing code types in one thread and it handles it, albeit perceptibly slowly (1-2 seconds to finally hump through all 20 posts) and also, that 2 seconds was ALL (huge percent) client time. imagine the server (php) having to do the same and serving it up to 100 users at a whack! ;\)

but i will grant you that it might be slow on huge stuff.

i'm glad you read his UBB.Wiki and found that out. it's good info to take into account, when evaluating ;\)

ps: on a side note, i wonder if he has a brother with 1st name Michail (gorbachev) \:D
_________________________

Threads tutorials . Threads & Wordpress experts . UBB resume

If I you, click this link as to why
Top
#188767 - 06/26/07 01:00 AM Re: Syntax highlighting [Re: SD]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
See, that javascript abort is the problem... for coding communities, people post WELL MORE than 10k per thread... Think, it's not just PER POST, it's per page...

Then you bring it to say "view all posts in this thread", posting numersous lines of code... you're aborting all code highlighting...

Ahh, whats that I hear, oh yes, me finding another reason why to handle things that CAN be done server-side being done server site :flex:
_________________________
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
#188768 - 06/26/07 01:01 AM Re: Syntax highlighting [Re: Gizmo]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
PS, i'd rather be referanced as stalin than gorbichav...
_________________________
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
#188769 - 06/26/07 01:06 AM Re: Syntax highlighting [Re: Gizmo]
SD Offline
Registered: 04/19/07
Posts: 4056
Loc: SoCal, USA
i was talking about the author: Alex Gorbachev ;\)

you are simply the Giz
_________________________

Threads tutorials . Threads & Wordpress experts . UBB resume

If I you, click this link as to why
Top
#188770 - 06/26/07 02:09 AM Re: Syntax highlighting [Re: SD]
Yarp™ Offline
Registered: 08/30/06
Posts: 1513
Loc: Breda, NL
 Originally Posted By: Sirdude
Currently we have the "< php >" tags and the highlighting is generated 'server side'.


I don't see this as a big problem, since the syntax highlighting just needs to be done once when putting the message in the database.
_________________________
Top
#188772 - 06/26/07 02:26 AM Re: Syntax highlighting [Re: Gizmo]
Ian Spence Offline
Registered: 06/04/06
Posts: 255
 Originally Posted By: Gizmo
See, that javascript abort is the problem... for coding communities, people post WELL MORE than 10k per thread... Think, it's not just PER POST, it's per page...

Then you bring it to say "view all posts in this thread", posting numersous lines of code... you're aborting all code highlighting...

Ahh, whats that I hear, oh yes, me finding another reason why to handle things that CAN be done server-side being done server site :flex:


The problem is that server's have execution times as well. If the php script times out, the post never gets made. If the javascript times out, you get unhighlighted text.

Honestly, I think there should be a button similar to the spoiler button that does the highlighting at request instead of by default.
Top
#188773 - 06/26/07 03:38 AM Re: Syntax highlighting [Re: Ian Spence]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
Now theres a sugguestion I can get behind, code tag spoilers with on-demand highlighting...
_________________________
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
Page 4 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