Skip to content

Commit 9389a05

Browse files
committed
[sas mode] Code style, integrate
Issue codemirror#3932
1 parent 7fa0cdc commit 9389a05

File tree

3 files changed

+294
-365
lines changed

3 files changed

+294
-365
lines changed

mode/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ <h2>Language modes</h2>
114114
<li><a href="rst/index.html">reStructuredText</a></li>
115115
<li><a href="ruby/index.html">Ruby</a></li>
116116
<li><a href="rust/index.html">Rust</a></li>
117+
<li><a href="sas/index.html">SAS</a></li>
117118
<li><a href="sass/index.html">Sass</a></li>
118119
<li><a href="spreadsheet/index.html">Spreadsheet</a></li>
119120
<li><a href="clike/scala.html">Scala</a></li>

mode/sas/index.html

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@
66

77
<link rel="stylesheet" href="../../lib/codemirror.css">
88
<script src="../../lib/codemirror.js"></script>
9-
<script src="../../addon/edit/continuelist.js"></script>
109
<script src="../xml/xml.js"></script>
1110
<script src="sas.js"></script>
1211
<style type="text/css">
13-
.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}
14-
.cm-s-default .cm-trailing-space-a:before,
15-
.cm-s-default .cm-trailing-space-b:before {position: absolute; content: "\00B7"; color: #777;}
16-
.cm-s-default .cm-trailing-space-new-line:before {position: absolute; content: "\21B5"; color: #777;}
17-
</style>
12+
.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}
13+
.cm-s-default .cm-trailing-space-a:before,
14+
.cm-s-default .cm-trailing-space-b:before {position: absolute; content: "\00B7"; color: #777;}
15+
.cm-s-default .cm-trailing-space-new-line:before {position: absolute; content: "\21B5"; color: #777;}
16+
</style>
1817
<div id=nav>
1918
<a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
2019

@@ -65,23 +64,18 @@ <h2>SAS mode</h2>
6564
create table foo as
6665
select * from sashelp.class;
6766

68-
select *
67+
select *
6968
from foo;
7069
quit;
71-
7270
</textarea></form>
7371

74-
<script>
75-
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
76-
mode: 'sas',
77-
lineNumbers: true,
78-
theme: "default",
79-
extraKeys: {"Enter": "newlineAndIndentContinueMarkdownList"}
80-
});
81-
</script>
82-
83-
84-
<p><strong>MIME types defined:</strong> <code>text/x-sas</code>.</p>
72+
<script>
73+
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
74+
mode: 'sas',
75+
lineNumbers: true
76+
});
77+
</script>
8578

79+
<p><strong>MIME types defined:</strong> <code>text/x-sas</code>.</p>
8680

87-
</article>
81+
</article>

0 commit comments

Comments
 (0)