PDA

View Full Version : Test new AS tags


Jesse
11-04-2005, 08:33 AM
if (working) {
jesse.goto(dinner);
} else {
jesse.keepWorking();
}

Cota
11-04-2005, 12:48 PM
Well it works, so how was dinner....

farafiro
11-06-2005, 12:15 PM
trace("long live Jesse")

snapple
11-06-2005, 12:45 PM
var libItem = doc_lib.items[i];

comes out as:


var libItem = doc_lib.items[i];


Regards, snapple

cxn926
11-06-2005, 05:56 PM
YAY. They are grey again.
YESSSSSSSSSSSSSSSSSSSSSS!!!!!!!

senocular
11-06-2005, 06:00 PM
testies, 1, 2,... 3?


/*
* comment /
*
not done
//*/
var should_be_done;
// comment
*/
done;
//*
shouldnt_start;
*/


var bob = " hello there 'said' some \" me < you >";
function jo(){ return true; }
bo = function(){
return false;
}


(){}[]<>$@ javascript onclick onload
function num2(){
var obj3 = {}
var obj4 = {
p1: 2,
p2: 4
};
}


comments dont end when they should, escaped quotes arent recognized as escaped, odd auto-intention of multi-line object definitions

snapple
11-06-2005, 07:22 PM
i.e. they're not really fixed.

Jesse
11-07-2005, 04:30 AM
Some key problems there. Thanks all for identifying them. We'll get onto them.

Note that this is the exact same mod that we were using before the recent upgrade, and many of these errors didn't seem to arise (in typical usage) at that time. Thus I'm hoping they won't be crippling. Nonetheless, I'll get back onto them.

CyanBlue
11-07-2005, 05:12 AM
Maybe there is something VB is doing differently this time???
I tried to edit a thread whoes title has a double quote in it and once I edit the thread, the double quote became &quot or some of those HTML escaped characters... Maybe this goes along with the same line???

Jesse
11-07-2005, 12:55 PM
Testing new GeSHi
if (working) {
jesse.goto(dinner);
} else {
jesse.keepWorking();
}

Jesse
11-07-2005, 12:56 PM
Copy of Seno's bug's in GeSHi


/*
* comment /
*
not done
//*/
var should_be_done;
// comment
*/
done;
//*
shouldnt_start;
*/


var bob = " hello there 'said' some \" me < you >";
function jo(){ return true; }
bo = function(){
return false;
}


(){}[]<>$@ javascript onclick onload
function num2(){
var obj3 = {}
var obj4 = {
p1: 2,
p2: 4
};
}

Jesse
11-07-2005, 12:58 PM
Looks like the new version of GeSHi handles most of the bugs correctly. It still doesn't do indenting.

I'll let you regular users decide which is the greater evil. GeSHi will do indenting in its next major release apparently but that could be a while off...

If we stick with it, colors will need to be changed but it supports making keywords bold, as well as coloring them. It also support sline numbers and other goodness.

Jesse
11-07-2005, 01:07 PM
I think it's possible that CB is right re the new vB being partially at fault. It seems even GeSHi stuffs up the [] brackets which I'm pretty positive shouldn't be the case. There's a new subversion of vB out since last week. We'll move to it ASAP.

senocular
11-07-2005, 02:06 PM
I think the lack of auto intention makes up for the other problems. Most code is copied and pasted anyway which preserves its original indention.

Cota
11-07-2005, 06:58 PM
And most people copy and paste code out of the forums, so flash will take of the indenting there also, I would be more concerned with the brackets [] not working correctly..

senocular
11-07-2005, 07:08 PM
it seems only the left bracket is being affected now

test[i]

Cota
11-07-2005, 07:13 PM
1 out of 2 isnt bad....:p

senocular
11-07-2005, 07:38 PM
but not good enough :D

tg
11-08-2005, 06:05 PM
var x=[][];



heh.... this may be more complicated then you expect... it looks like it just happens on the first [, but not the next on the same line.

weird.

senocular
11-08-2005, 08:13 PM
[][][]
function [][][]
go [][][]
// []
/* [] */

very weird heh

CyanBlue
11-08-2005, 08:58 PM
Uh... Is it how AS 3.0 is going to look like??? WoW...

senocular
11-09-2005, 10:14 AM
We REALLY need to change those colors. That isnt so hard to do, is it? Those are hideous defaults

CyanBlue
11-09-2005, 05:42 PM
Agreed... That color with the lack of tab makes me not to look at the code... :(

Cota
11-09-2005, 07:08 PM
The current colors just confuse me sometimes. For example

myVars = new LoadVars();
myVars.SomeVariable = "value";

Variable being colored makes me think I'm using a reserved word at first...makes me do a double take.

jjbilly
11-10-2005, 09:40 AM
I think this is a new problem, but perhaps it was always thus:

I just tried to copy some previously pasted code to post with amendments further down the thread, and ended up losing all the linebreaks.

Jesse
11-10-2005, 11:14 AM
OK the brackets problem is fixed. Plugin had to be updated to suit new vB parsing methods since pre-release of 3.5.0. Will address the colors next.

Jesse
11-10-2005, 11:27 AM
OK there you go. Colors have been made more AS.org standard. I know some don't like them. Someone give me a better combination and I may be able to change them.

jjbilly
11-10-2005, 11:36 AM
Grand, those colours are much better than they were (the old ones were disappearing on my screen); As they are, but comments grey (#999999), would be great, imo.

Cota
11-10-2005, 01:00 PM
Jesse is the man. I shall now sit and repeat the words thank you over and over. Well, you get the idea.

senocular
11-10-2005, 01:23 PM
Im content :D

CyanBlue
11-10-2005, 03:43 PM
Great... Thanks, Jesse... ;)

Xeef
11-10-2005, 04:10 PM
A=["is","this","true"]
B=":D"

Cota
11-10-2005, 04:12 PM
Does this make Xeef a happy man now?

CyanBlue
11-10-2005, 04:21 PM
What do you get when you trace that 'B'??? I think he is happy if you get a smilie... ;)

Cota
11-10-2005, 06:19 PM
A happy Xeef is a friendly Xeef....all is well again.

CyanBlue
11-10-2005, 06:43 PM
Oopsie... No indenting working... Oh, well...
function test()
{
for (var i = 0; i < 100; i++)
{
if (i == 1)
{
trace("Hello");
}
}
}

Cota
11-10-2005, 06:46 PM
Cant win them all.......

Jesse
11-11-2005, 08:46 AM
Yeah this is the plugin which doesn't do indenting. But the square bracket problem was unrelated so we can switch back to the one which does if people prefer it. Colors will be the same... in fact, it'll be indentical but it will indent. I think I'll do that.

Jesse
11-11-2005, 08:55 AM
OK new ones are up... Mmmm indendentation... :)

senocular
11-11-2005, 11:43 AM
Now a lot of the old problems are back, escaped strings, commenting, and indention of multi-line objects (see my first code examples)

CyanBlue
11-11-2005, 01:11 PM
Everything looks okay except the escaping quotes part... Cool... Thanks, Jesse... ;)

cxn926
11-11-2005, 01:14 PM
OK new ones are up... Mmmm indendentation... :)
Looks a bunch better. Like what senocular said there are still a few problems.

Cota
11-11-2005, 06:18 PM
Jesse Jesse he's the man, if he cant do it, then no one can!............

Flash Gordon
11-11-2005, 06:41 PM
How about the button to format tags, so people don't have to manually type in [ as]

Jesse
11-12-2005, 04:14 AM
Now a lot of the old problems are back, escaped strings, commenting, and indention of multi-line objects (see my first code examples)

Seno is right. I could fix the plugin to make it perfect, but I'm not going to. I've switched the forums back.

There's no auto-indenting in this one but it is supported (in a fashion) and the next feature they are introducing is indentation, so it shouldn't be long. And indenting is less of an issue as compared to improper formatting and escaping, whcih can cause more confusion, IMHO.

Headshotz
11-13-2005, 07:59 AM
Jesse Jesse he's the man, if he cant do it, then no one can!............

Hehe, other websites will have a bit more trouble then.

Xeef
11-13-2005, 09:13 AM
jeh seams so

i am some times also on "http://www.flashforum.de"

and a couple of people start to crye for the [as] tag
was sending a thread whit the thread from Jessy (the vbuletin one)
the ancer was yes we know and we are on it :p
still not working

so Jesse seam to done very well !

THX

Headshotz
11-13-2005, 09:30 AM
:claps:

Most other websites I go to have to use "code" tags for everything :cool: