PluginProbe
Wp-Insert / 1.5.3
Wp-Insert v1.5.3
trunk 1.0 1.1 1.2 1.2.1 1.2.2 1.3.0 1.3.1 1.3.3 1.4 1.5.0 1.5.1 1.5.2 1.5.3 1.6.0 1.6.1 1.6.2 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 2.0 All 63 releases
wp-insert / codepress / codepress.html

codepress.html in Wp-Insert 1.5.3, at codepress/codepress.html

36 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html>
3 <head>
4 <title>CodePress - Real Time Syntax Highlighting Editor written in JavaScript</title>
5 <meta name="description" content="CodePress - source code editor window" />
6
7 <script type="text/javascript">
8 var language = 'generic';
9 var engine = 'older';
10 var ua = navigator.userAgent;
11 var ts = (new Date).getTime(); // timestamp to avoid cache
12 var lh = location.href;
13
14 if(ua.match('MSIE')) engine = 'msie';
15 else if(ua.match('KHTML')) engine = 'khtml';
16 else if(ua.match('Opera')) engine = 'opera';
17 else if(ua.match('Gecko')) engine = 'gecko';
18
19 if(lh.match('language=')) language = lh.replace(/.*language=(.*?)(&.*)?$/,'$1');
20
21 document.write('<link type="text/css" href="codepress.css?ts='+ts+'" rel="stylesheet" />');
22 document.write('<link type="text/css" href="languages/'+language+'.css?ts='+ts+'" rel="stylesheet" id="cp-lang-style" />');
23 document.write('<scr'+'ipt type="text/javascript" src="engines/'+engine+'.js?ts='+ts+'"></scr'+'ipt>');
24 document.write('<scr'+'ipt type="text/javascript" src="languages/'+language+'.js?ts='+ts+'"></scr'+'ipt>');
25 </script>
26
27 </head>
28
29 <script type="text/javascript">
30 if(engine == "msie" || engine == "gecko") document.write('<body><pre> </pre></body>');
31 else if(engine == "opera") document.write('<body></body>');
32 // else if(engine == "khtml") document.write('<body> </body>');
33 </script>
34
35 </html>
36