File modules/editor/codemirror/mode/asn.1/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: ASN.1 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="asn.1.js"></script> 10 <style type="text/css"> 11 .CodeMirror { 12 border-top: 1px solid black; 13 border-bottom: 1px solid black; 14 } 15 </style> 16 <div id=nav> 17 <a href="http://codemirror.net"><h1>CodeMirror</h1> 18 <img id=logo src="../../doc/logo.png"> 19 </a> 20 21 <ul> 22 <li><a href="../../index.html">Home</a> 23 <li><a href="../../doc/manual.html">Manual</a> 24 <li><a href="https://github.com/codemirror/codemirror">Code</a> 25 </ul> 26 <ul> 27 <li><a href="../index.html">Language modes</a> 28 <li><a class=active href="http://en.wikipedia.org/wiki/Abstract_Syntax_Notation_One">ASN.1</a> 29 </ul> 30 </div> 31 <article> 32 <h2>ASN.1 example</h2> 33 <div> 34 <textarea id="ttcn-asn-code"> 35 -- 36 -- Sample ASN.1 Code 37 -- 38 MyModule DEFINITIONS ::= 39 BEGIN 40 41 MyTypes ::= SEQUENCE { 42 myObjectId OBJECT IDENTIFIER, 43 mySeqOf SEQUENCE OF MyInt, 44 myBitString BIT STRING { 45 muxToken(0), 46 modemToken(1) 47 } 48 } 49 50 MyInt ::= INTEGER (0..65535) 51 52 END 53 </textarea> 54 </div> 55 56 <script> 57 var ttcnEditor = CodeMirror.fromTextArea(document.getElementById("ttcn-asn-code"), { 58 lineNumbers: true, 59 matchBrackets: true, 60 mode: "text/x-ttcn-asn" 61 }); 62 ttcnEditor.setSize(400, 400); 63 var mac = CodeMirror.keyMap.default == CodeMirror.keyMap.macDefault; 64 CodeMirror.keyMap.default[(mac ? "Cmd" : "Ctrl") + "-Space"] = "autocomplete"; 65 </script> 66 <br/> 67 <p><strong>Language:</strong> Abstract Syntax Notation One 68 (<a href="http://www.itu.int/en/ITU-T/asn1/Pages/introduction.aspx">ASN.1</a>) 69 </p> 70 <p><strong>MIME types defined:</strong> <code>text/x-ttcn-asn</code></p> 71 72 <br/> 73 <p>The development of this mode has been sponsored by <a href="http://www.ericsson.com/">Ericsson 74 </a>.</p> 75 <p>Coded by Asmelash Tsegay Gebretsadkan </p> 76 </article> 77
Downloadmodules/editor/codemirror/mode/asn.1/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.