Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F948200
html.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
html.js
View Options
/*
Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if
(
!
dojo
.
_hasResource
[
"dojox.highlight.languages.pygments.html"
]){
dojo
.
_hasResource
[
"dojox.highlight.languages.pygments.html"
]
=
true
;
dojo
.
provide
(
"dojox.highlight.languages.pygments.html"
);
dojo
.
require
(
"dojox.highlight._base"
);
dojo
.
require
(
"dojox.highlight.languages.pygments._html"
);
(
function
(){
var
dh
=
dojox
.
highlight
,
_1
=
dh
.
languages
,
_2
=
[],
ht
=
_1
.
pygments
.
_html
.
tags
;
for
(
var
_3
in
ht
){
_2
.
push
(
_3
);
}
_2
=
"\\b("
+
_2
.
join
(
"|"
)
+
")\\b"
;
_1
.
html
=
{
case_insensitive
:
true
,
defaultMode
:
{
contains
:
[
"name entity"
,
"comment"
,
"comment preproc"
,
"_script"
,
"_style"
,
"_tag"
]},
modes
:
[{
className
:
"comment"
,
begin
:
"<!--"
,
end
:
"-->"
},{
className
:
"comment preproc"
,
begin
:
"\\<\\!\\[CDATA\\["
,
end
:
"\\]\\]\\>"
},{
className
:
"comment preproc"
,
begin
:
"\\<\\!"
,
end
:
"\\>"
},{
className
:
"string"
,
begin
:
"'"
,
end
:
"'"
,
illegal
:
"\\n"
,
relevance
:
0
},{
className
:
"string"
,
begin
:
"\""
,
end
:
"\""
,
illegal
:
"\\n"
,
relevance
:
0
},{
className
:
"name entity"
,
begin
:
"\\&[a-z]+;"
,
end
:
"^"
},{
className
:
"name tag"
,
begin
:
_2
,
end
:
"^"
,
relevance
:
5
},{
className
:
"name attribute"
,
begin
:
"\\b[a-z0-9_\\:\\-]+\\s*="
,
end
:
"^"
,
relevance
:
0
},{
className
:
"_script"
,
begin
:
"\\<script\\b"
,
end
:
"\\</script\\>"
,
relevance
:
5
},{
className
:
"_style"
,
begin
:
"\\<style\\b"
,
end
:
"\\</style\\>"
,
relevance
:
5
},{
className
:
"_tag"
,
begin
:
"\\<(?!/)"
,
end
:
"\\>"
,
contains
:
[
"name tag"
,
"name attribute"
,
"string"
,
"_value"
]},{
className
:
"_tag"
,
begin
:
"\\</"
,
end
:
"\\>"
,
contains
:
[
"name tag"
]},{
className
:
"_value"
,
begin
:
"[^\\s\\>]+"
,
end
:
"^"
}]};
})();
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 26, 15:16 (2 h, 3 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27383
Default Alt Text
html.js (1 KB)
Attached To
rZEDHG ZedLegacy
Event Timeline
Log In to Comment