Skip to content
Newer
Older
100644 37 lines (31 sloc) 1.04 KB
adcfe95 All SQL variants highlighter
jakubvrana authored
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" lang="en">
3 <head>
4 <title>JUSH - SQL</title>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 </head>
7
8 <body>
9
10 <script type="text/javascript" src="jush.js"></script>
11 <script type="text/javascript">
12 jush.style('jush.css');
13 function highlight(source) {
14 var langs = { sql: 'MySQL', sqlite: 'SQLite', pgsql: 'PgSQL', mssql: 'MS SQL' };
15 for (var lang in langs) {
16 document.getElementById(lang).innerHTML = '<code class="jush-' + lang + '">' + jush.highlight(lang, source) + '</code>';
17 }
18 }
19 </script>
20
21 <form action="">
22 <p>
23 <input name="source" />
24 <input type="submit" value="Highlight" onclick="highlight(this.form['source'].value); return false;" />
25 </p>
26 </form>
27
28 <table cellspacing="0">
29 <tr><th>MySQL</th><td id="sql"></td></tr>
30 <tr><th>SQLite</th><td id="sqlite"></td></tr>
31 <tr><th>PostgreSQL</th><td id="pgsql"></td></tr>
32 <tr><th>MS SQL </th><td id="mssql"></td></tr>
33 </table>
34
35 </body>
36 </html>
Something went wrong with that request. Please try again.