View Full Version : Testing AS Tag
kirupa
February 23rd, 2010, 01:26 PM
this.text= "smiley icon :)"
Edit: Sigh :(
Krilnon
February 23rd, 2010, 03:13 PM
this.text= "smiley icon :)"
You could try to figure out what noparse does, since it doesn't display the smileys above.
kirupa
February 24th, 2010, 01:16 AM
One alternative is to change :) to be :-). What other smileys are you all running into that cause code to be converted into smileys?
Krilnon
February 25th, 2010, 12:06 AM
this.text= "smiley icon :)"
Edit: Sigh :(
Perhaps ;(, but I don't really run into the problem all that often. I think there's one that shows up really often; it may be: :P, but I'm not sure why.
So, is syntax highlighting going to be gone forever?
kirupa
February 25th, 2010, 12:27 AM
Right now, it looks like it. Syntax highlighting was basically a hack/mod to vBulletin - one of the very few that this forum has. I'm still going to see what can be done though...
kirupa
February 25th, 2010, 01:21 AM
Ok, there is no more tag. I ran a query that replaced every instance of [as] and with the appropriate [code] tag so that all of the broken AS code displays in the plain/boring code syntax instead :( :)
Krilnon
February 25th, 2010, 01:51 AM
I loaded this thread when it was only half finished, so I saw a bunch of [code][/as] tag mismatches… it was pretty funny.
kirupa
February 25th, 2010, 02:00 AM
Yeah, I saw you in the Currently Active Users Viewing This Thread list and I figured if anybody would have seen that in the 3 minute-ish window the tags were mismatched, it would have been you :P
TheCanadian
February 25th, 2010, 05:11 PM
One alternative is to change :) to be :-). What other smileys are you all running into that cause code to be converted into smileys?
Any time you type a variable there's a chance, like d:Date or p:Proxy. Looks like you fixed it though :thumb:
kirupa
February 25th, 2010, 05:19 PM
All that really remains now is to keep tweaking the performance...I hope :egg:
Krilnon
February 25th, 2010, 05:47 PM
Any time you type a variable there's a chance, like d:Date or p:Proxy. Looks like you fixed it though :thumb:
Yeah that's what I was thinking about but couldn't remember! I guess I was forgetting how greedy the emoticon finder must be.
mathew.er
April 24th, 2010, 03:25 AM
I was a bit surprised when I showed up after a long time again and saw the tags just sitting there, hugging tightly the pasted code with an expression of sadness and despair, knowing that it has failed on what is used the be the very best at. :sad:
Did you consider some of the JavaScript-based syntax highlighters? It takes the plain text, chews trough it and adds the styles. Other have more features, like showing line numbers, switching back to plain text or (trough a hidden swf) placing the original code into your clipboard. I'm sure you've encountered it on blogs and such yourself.
I don't know what are the rules and principles here, like if this is a task that belongs on the server and would otherwise alter ways in which is the forum content displayed outside of the browser (RSS feeds, email, etc.)? I'm not sure where these libraries stand in regard to performance though I've never noticed that being an issue while browsing the web. It just seems like a viable and smiley-free solution. :D
Krilnon
April 26th, 2010, 04:33 PM
It does seem like a JS-based highlighter would be minimally invasive, since you'd (perhaps) just have to getElementsByClassName('stuffToBeHighlighted') and then run some highlighting script on those elements.
TheCanadian
April 27th, 2010, 06:28 AM
Could the as tags at the very least be re-added as a wrapper for the code tags? I find myself constantly writing as tags out of habit and then having to edit my post afterwards.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.