« 花了一晚上,美化了不少 | (回到Blog入口) | FLASH常用技术 »

测试

修改BUG中。。。。
不知道有没人想要呢?
function[/b][/color] FCCheckSyntaxDef([/color]/*lang, ...*/[/color])[/color] {[/color]
    if[/b][/color] ([color=#0000a0][b]arguments[/color][color=#0000ff].[color=#008000]length
 [color=#0000ff]>
 0[color=#0000ff])
 [color=#0000ff]{

        [color=#800000][b]var
[/color] langList =[/color] {[color=#0000ff]}[color=#0000ff];

修改BUG中。。。。
不知道有没人想要呢?
function[/b][/color] FCCheckSyntaxDef([/color]/*lang, ...*/[/color])[/color] {[/color]
if[/b][/color] ([/color]arguments[/b][/color].[/color]length[/color] >[/color] 0)[/color] {[/color]
var[/b][/color] langList =[/color] {[/color]}[/color];[/color]
for[/b][/color] ([/color]var[/b][/color] i =[/color] arguments[/b][/color].[/color]length[/color] -[/color] 1;[/color] i >[/color]=[/color] 0;[/color] i-[/color]-[/color])[/color] {[/color]
if[/b][/color] ([/color]FCSyntaxDef[[/color]arguments[/b][/color][[/color]i][/color]][/color] ![/color]=[/color] null[/b][/color])[/color] langList[[/color]arguments[/b][/color][[/color]i][/color]][/color] =[/color] true[/b][/color];[/color]
}[/color]
}[/color] else[/b][/color] {[/color]
var[/b][/color] langList =[/color] FCSyntaxDef;[/color]
}[/color]
for[/b][/color] ([/color]var[/b][/color] lang in[/b][/color] langList)[/color] {[/color]
var[/b][/color] syntax =[/color] FCSyntaxDef[[/color]lang][/color];[/color]
var[/b][/color] delim =[/color] syntax.[/color]delimiters;[/color]
if[/b][/color] ([/color]delim =[/color]=[/color] null[/b][/color])[/color] {[/color]
syntax.[/color]delimiters =[/color] "[email protected]%^&*()-+=|\/{}[]:;\"'<>,.? \t"[/color];[/color]
}[/color] else[/b][/color] if[/color] ([/color]delim.[/color]indexOf[/color]([/color]" \t"[/color])[/color] <[/color] 0[color=#0000ff]) [color=#0000ff]{
syntax[color=#0000ff].
delimiters [color=#0000ff]+
[color=#0000ff]=
[color=#ff00ff]" \t"
[color=#0000ff];

[color=#0000ff]}

[color=#800000][b]if
[color=#0000ff](
syntax[color=#0000ff].
comments [color=#0000ff]!
[color=#0000ff]=
[color=#0000a0]null
[color=#0000ff])
[color=#0000ff]{

[color=#800000][b]if
[/color] ([/color]typeof[/color]([/color]syntax.[/color]comments)[/color] =[/color]=[/color] [color=#ff00ff]"string"[color=#0000ff]) syntax[color=#0000ff].comments [color=#0000ff]= syntax[color=#0000ff].comments[color=#0000ff].[color=#5000a0]split[color=#0000ff](
[color=#ff00ff]" "
[color=#0000ff])
[color=#0000ff];

[color=#800000][b]if
[/color] [color=#0000ff](
syntax[color=#0000ff].
cmtcolor [color=#0000ff]=
[color=#0000ff]=
[color=#0000a0][b]null
[/color][color=#0000ff])
syntax[color=#0000ff].
cmtcolor [color=#0000ff]=
[color=#ff00ff]"#00ff00"
[color=#0000ff];

[color=#800000][b]if
[/color] (syntax[color=#0000ff].
cmtstyle [color=#0000ff]=
[color=#0000ff]=
[color=#0000a0][b]null
[/color])[/color] syntax.[/color]cmtstyle [color=#0000ff]= [color=#ff00ff]""[color=#0000ff];

[color=#800000][b]else
[/color] syntax.[/color]cmtsytle =[/color] syntax.[/color]cmtstyle.[color=#5000a0]toLowerCase[color=#0000ff]([color=#0000ff])[color=#0000ff];

[color=#0000ff]}

[color=#800000][b]var
blocks [color=#0000ff]=
syntax[color=#0000ff].
blocks[color=#0000ff];

[color=#800000][b]for
[color=#0000ff](
[color=#800000][b]var
classid [color=#800000]in
blocks[color=#0000ff])
[color=#0000ff]{

[color=#800000][b]var
block [color=#0000ff]=
blocks[color=#0000ff][
classid[color=#0000ff]]
[color=#0000ff];

[color=#800000][b]if
[/color] ([/color]block[color=#0000ff].[color=#008000]color
[color=#0000ff]=
[color=#0000ff]=
[color=#0000a0][b]null
[/color])[/color] block.[/color]color [color=#0000ff]= [color=#ff00ff]"#00ffff"[color=#0000ff];

[color=#800000]if
[color=#0000ff](
block[color=#0000ff].
style [color=#0000ff]=
[color=#0000ff]=
[color=#0000a0][b]null
[/color])[/color] block[color=#0000ff].style [color=#0000ff]=
[color=#ff00ff]""
[color=#0000ff];

[color=#800000][b]else
[/color] block.[/color]style =[/color] block[color=#0000ff].style[color=#0000ff].[color=#5000a0]toLowerCase
[color=#0000ff](
[color=#0000ff])
[color=#0000ff];

[color=#0000ff]}

[color=#800000]var
keywords [color=#0000ff]=
syntax[color=#0000ff].
keywords[color=#0000ff];

[color=#800000]for
[color=#0000ff](
[color=#800000]var
classid [color=#800000][b]in
[/color] keywords[color=#0000ff])
[color=#0000ff]{

[color=#800000][b]var
[/color] group =[/color] keywords[color=#0000ff][classid[color=#0000ff]]
[color=#0000ff];

[color=#800000][b]if
[/color] [color=#0000ff](
group[color=#0000ff].
[color=#008000]color
[color=#0000ff]=
[color=#0000ff]=
[color=#0000a0][b]null
[/color])[/color] group.[/color]color [color=#0000ff]= [color=#ff00ff]"#0000ff"[color=#0000ff];

[color=#800000]if
[color=#0000ff](
group[color=#0000ff].
style [color=#0000ff]=
[color=#0000ff]=
[color=#0000a0][b]null
[/color])[/color] group.style [color=#0000ff]= [color=#ff00ff]""
[color=#0000ff];

[color=#800000][b]else
[/color] group.[/color]style =[/color] group.[/color]style.[/color]toLowerCase[/color]([/color])[color=#0000ff];
group[color=#0000ff].
[color=#5000a0]list
[color=#0000ff]=
[color=#0000ff](
[color=#ff00ff]" "
[color=#0000ff]+
[color=#0000ff](
group[color=#0000ff].
[color=#5000a0]list
[color=#0000ff]instanceof
[color=#0000a0][b]Array
[/color] ?[/color] group.[/color]list[/color].[/color]join[/color]([/color]" "[/color])[/color]
:[/color] group.[/color]list[/color])[/color] +[/color] " "[color=#0000ff])[color=#0000ff].replace[color=#0000ff]([color=#0000ff]/ [color=#0000ff]+[color=#0000ff]/
g[color=#0000ff],
[color=#ff00ff]" "
[color=#0000ff])
[color=#0000ff];

[color=#0000ff]}

[color=#0000ff]}

[color=#0000ff]}

[color=#008080]//--------------------------------------------------------------

关于

此页面包含了发表于2004年12月26日 15:47的 Blog 上的单篇日记。

此 Blog 的前一篇日记是 花了一晚上,美化了不少

此 Blog 的后一篇日记是 FLASH常用技术

更多信息可在 主索引 页和 归档 页看到。

Creative Commons License
此 Blog 中的日记遵循以下授权 Creative Commons(创作共用)授权.
Powered by
Movable Type 6.3.2