1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>SyntaxHighlighter Brushes Tests</title>
<script type="text/javascript" src="/js/jquery-1.4.2.js"></script>
<!-- SyntaxHighlighter -->
<script type="text/javascript" src="/sh/scripts/XRegExp.js"></script> <!-- XRegExp is bundled with the final shCore.js during build -->
<script type="text/javascript" src="/sh/scripts/shCore.js"></script>
<script type="text/javascript" src="/sh/scripts/shAutoloader.js"></script>
<script type="text/javascript" src="/sh/scripts/shBrushAppleScript.js"></script>
<script type="text/javascript" src="/sh/scripts/shBrushAS3.js"></script>
<script type="text/javascript" src="/sh/scripts/shBrushBash.js"></script>
<script type="text/javascript" src="/sh/scripts/shBrushColdFusion.js"></script>
<script type="text/javascript" src="/sh/scripts/shBrushCpp.js"></script>
<script type="text/javascript" src="/sh/scripts/shBrushCSharp.js"></script>
<script type="text/javascript" src="/sh/scripts/shBrushCss.js"></script>
<script type="text/javascript" src="/sh/scripts/shBrushDelphi.js"></script>
<script type="text/javascript" src="/sh/scripts/shBrushDiff.js"></script>
<script type="text/javascript" src="/sh/scripts/shBrushErlang.js"></script>
<script type="text/javascript" src="/sh/scripts/shBrushGroovy.js"></script>
<script type="text/javascript" src="/sh/scripts/shBrushJava.js"></script>
<script type="text/javascript" src="/sh/scripts/shBrushJavaFx.js"></script>
<script type="text/javascript" src="/sh/scripts/shBrushJScript.js"></script>
<script type="text/javascript" src="/sh/scripts/shBrushPerl.js"></script>
<script type="text/javascript" src="/sh/scripts/shBrushPhp.js"></script>
<script type="text/javascript" src="/sh/scripts/shBrushPlain.js"></script>
<script type="text/javascript" src="/sh/scripts/shBrushPowerShell.js"></script>
<script type="text/javascript" src="/sh/scripts/shBrushPython.js"></script>
<script type="text/javascript" src="/sh/scripts/shBrushRuby.js"></script>
<script type="text/javascript" src="/sh/scripts/shBrushSass.js"></script>
<script type="text/javascript" src="/sh/scripts/shBrushScala.js"></script>
<script type="text/javascript" src="/sh/scripts/shBrushSql.js"></script>
<script type="text/javascript" src="/sh/scripts/shBrushVb.js"></script>
<script type="text/javascript" src="/sh/scripts/shBrushXml.js"></script>
<link type="text/css" rel="stylesheet" href="/sh/styles/shCoreDefault.css"/>
</head>
<body>
<div id="output"></div>
<style>
body {
background: white;
font-family: Helvetica;
}
.test-wrap {
width: 100%;
height: 800px;
overflow: auto;
border: none;
}
</style>
<script type="text/javascript">
var brushes = [
'AS3',
'AppleScript',
'Bash',
'CSharp',
'ColdFusion',
'Cpp',
'Css',
'Delphi',
'Diff',
'Erlang',
'Groovy',
'JScript',
'Java',
'JavaFX',
'Perl',
'Php',
'Plain',
'PowerShell',
'Python',
'Ruby',
'Sass',
'Scala',
'Sql',
'Vb',
'Xml'
];
$(document).ready(function()
{
var html = '';
$.each(brushes, function(index)
{
var name = this;
html += ''
+ '<div class="test-wrap">'
+ '<h1>'
+ '<a href="#theme' + (index + 1) + '">next</a> '
+ '<a name="theme' + index + '">'
+ name
+ '</a>'
+ '</h1>'
;
$.ajax({
url: 'brushes/' + name.toLowerCase() + '.html',
type: 'GET',
dataType: 'text',
async: false,
success: function(data)
{
html += data;
},
error: function()
{
html += '<p>Not found...</p>';
}
});
html += '</div>\n';
if (index % 2 != 0)
html += '<div style="clear:both"></div>\n';
});
$('#output')[0].innerHTML = html;
$('#output a[name]:first').attr('name', 'top');
$('#output a[href]:last').attr('href', '#top').html('top');
SyntaxHighlighter.highlight();
});
</script>
<!-- jinwei.me Baidu tongji analytics -->
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F91918ac6d6854623883a2b546ebc00ac' type='text/javascript'%3E%3C/script%3E"));
</script>
</body>
</html>
|