Skip to content

Commit dbb72fe

Browse files
committed
Integrate D mode
1 parent df989f4 commit dbb72fe

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

doc/compress.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ <h1><span class="logo-braces">{ }</span> <a href="http://codemirror.net/">CodeMi
7070
<option value="http://codemirror.net/mode/coffeescript/coffeescript.js">coffeescript.js</option>
7171
<option value="http://codemirror.net/mode/commonlisp/commonlisp.js">commonlisp.js</option>
7272
<option value="http://codemirror.net/mode/css/css.js">css.js</option>
73+
<option value="http://codemirror.net/mode/d/d.js">d.js</option>
7374
<option value="http://codemirror.net/mode/diff/diff.js">diff.js</option>
7475
<option value="http://codemirror.net/mode/ecl/ecl.js">ecl.js</option>
7576
<option value="http://codemirror.net/mode/erlang/erlang.js">erlang.js</option>

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ <h2 style="margin-top: 0">Supported modes:</h2>
4040
<li><a href="mode/coffeescript/index.html">CoffeeScript</a></li>
4141
<li><a href="mode/commonlisp/index.html">Common Lisp</a></li>
4242
<li><a href="mode/css/index.html">CSS</a></li>
43+
<li><a href="mode/d/index.html">D</a></li>
4344
<li><a href="mode/diff/index.html">diff</a></li>
4445
<li><a href="mode/ecl/index.html">ECL</a></li>
4546
<li><a href="mode/erlang/index.html">Erlang</a></li>

mode/d/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ <h1>CodeMirror: D mode</h1>
249249
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
250250
lineNumbers: true,
251251
matchBrackets: true,
252+
indentUnit: 4,
252253
mode: "text/x-d"
253254
});
254255
</script>

0 commit comments

Comments
 (0)