File modules/editor/codemirror/mode/sas/index.html

Last commit: Sun Dec 17 01:14:09 2017 +0100	Jan Dankert	Integration eines weiteren Code-Editors: Codemirror. Demnächst müssen wir hier mal aufräumen und andere Editoren rauswerfen.
1 <!doctype html> 2 3 <title>CodeMirror: SAS mode</title> 4 <meta charset="utf-8"/> 5 <link rel=stylesheet href="../../doc/docs.css"> 6 7 <link rel="stylesheet" href="../../lib/codemirror.css"> 8 <script src="../../lib/codemirror.js"></script> 9 <script src="../xml/xml.js"></script> 10 <script src="sas.js"></script> 11 <style type="text/css"> 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> 17 <div id=nav> 18 <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> 19 20 <ul> 21 <li><a href="../../index.html">Home</a> 22 <li><a href="../../doc/manual.html">Manual</a> 23 <li><a href="https://github.com/codemirror/codemirror">Code</a> 24 </ul> 25 <ul> 26 <li><a href="../index.html">Language modes</a> 27 <li><a class=active href="#">SAS</a> 28 </ul> 29 </div> 30 31 <article> 32 <h2>SAS mode</h2> 33 <form><textarea id="code" name="code"> 34 libname foo "/tmp/foobar"; 35 %let count=1; 36 37 /* Multi line 38 Comment 39 */ 40 data _null_; 41 x=ranuni(); 42 * single comment; 43 x2=x**2; 44 sx=sqrt(x); 45 if x=x2 then put "x must be 1"; 46 else do; 47 put x=; 48 end; 49 run; 50 51 /* embedded comment 52 * comment; 53 */ 54 55 proc glm data=sashelp.class; 56 class sex; 57 model weight = height sex; 58 run; 59 60 proc sql; 61 select count(*) 62 from sashelp.class; 63 64 create table foo as 65 select * from sashelp.class; 66 67 select * 68 from foo; 69 quit; 70 </textarea></form> 71 72 <script> 73 var editor = CodeMirror.fromTextArea(document.getElementById("code"), { 74 mode: 'sas', 75 lineNumbers: true 76 }); 77 </script> 78 79 <p><strong>MIME types defined:</strong> <code>text/x-sas</code>.</p> 80 81 </article>
Download modules/editor/codemirror/mode/sas/index.html
History Sun, 17 Dec 2017 01:14:09 +0100 Jan Dankert Integration eines weiteren Code-Editors: Codemirror. Demnächst müssen wir hier mal aufräumen und andere Editoren rauswerfen.