Skip to content
This repository was archived by the owner on Apr 16, 2026. It is now read-only.

Commit 0b97e94

Browse files
committed
Integrate SQL mode
1 parent afd2e8a commit 0b97e94

4 files changed

Lines changed: 232 additions & 278 deletions

File tree

doc/compress.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ <h1><span class="logo-braces">{ }</span> <a href="http://codemirror.net/">CodeMi
109109
<option value="http://codemirror.net/mode/sieve/sieve.js">sieve.js</option>
110110
<option value="http://codemirror.net/mode/smalltalk/smalltalk.js">smalltalk.js</option>
111111
<option value="http://codemirror.net/mode/smarty/smarty.js">smarty.js</option>
112+
<option value="http://codemirror.net/mode/sql/sql.js">sql.js</option>
112113
<option value="http://codemirror.net/mode/sparql/sparql.js">sparql.js</option>
113114
<option value="http://codemirror.net/mode/stex/stex.js">stex.js</option>
114115
<option value="http://codemirror.net/mode/tiddlywiki/tiddlywiki.js">tiddlywiki.js</option>

index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,12 @@ <h2 style="margin-top: 0">Supported modes:</h2>
5656
<li><a href="mode/less/index.html">LESS</a></li>
5757
<li><a href="mode/lua/index.html">Lua</a></li>
5858
<li><a href="mode/markdown/index.html">Markdown</a> (<a href="mode/gfm/index.html">GitHub-flavour</a>)</li>
59-
<li><a href="mode/mysql/index.html">MySQL</a></li>
6059
<li><a href="mode/ntriples/index.html">NTriples</a></li>
6160
<li><a href="mode/ocaml/index.html">OCaml</a></li>
6261
<li><a href="mode/pascal/index.html">Pascal</a></li>
6362
<li><a href="mode/perl/index.html">Perl</a></li>
6463
<li><a href="mode/php/index.html">PHP</a></li>
6564
<li><a href="mode/pig/index.html">Pig Latin</a></li>
66-
<li><a href="mode/plsql/index.html">PL/SQL</a></li>
6765
<li><a href="mode/properties/index.html">Properties files</a></li>
6866
<li><a href="mode/python/index.html">Python</a></li>
6967
<li><a href="mode/r/index.html">R</a></li>
@@ -77,6 +75,7 @@ <h2 style="margin-top: 0">Supported modes:</h2>
7775
<li><a href="mode/sieve/index.html">Sieve</a></li>
7876
<li><a href="mode/smalltalk/index.html">Smalltalk</a></li>
7977
<li><a href="mode/smarty/index.html">Smarty</a></li>
78+
<li><a href="mode/sql/index.html">SQL</a> (several dialects)</li>
8079
<li><a href="mode/sparql/index.html">SPARQL</a></li>
8180
<li><a href="mode/stex/index.html">sTeX, LaTeX</a></li>
8281
<li><a href="mode/tiddlywiki/index.html">Tiddlywiki</a></li>

mode/sql/index.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
mime = window.location.href.substr(window.location.href.indexOf('mime=') + 5);
2323
}
2424

25-
CodeMirror.fromTextArea(document.getElementById('code'), {
25+
window.editor = CodeMirror.fromTextArea(document.getElementById('code'), {
2626
mode: mime,
2727
indentWithTabs: true,
2828
smartIndent: true,
@@ -53,7 +53,8 @@ <h1>SQL Mode for CodeMirror</h1>
5353
<p><strong>MIME types defined:</strong>
5454
<code><a href="?mime=text/x-sql">text/x-sql</a></code>,
5555
<code><a href="?mime=text/x-mysql">text/x-mysql</a></code>,
56-
<code><a href="?mime=text/x-mariadb">text/x-mariadb</a></code>.
56+
<code><a href="?mime=text/x-mariadb">text/x-mariadb</a></code>,
57+
<code><a href="?mime=text/x-plsql">text/x-plsql</a></code>.
5758
</p>
5859
</body>
59-
</html>
60+
</html>

0 commit comments

Comments
 (0)