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