5 <title>CodeMirror: Gas mode</title>
6 <link rel="stylesheet" href="../../lib/codemirror.css">
7 <script src="../../lib/codemirror.js"></script>
8 <script src="gas.js"></script>
9 <link rel="stylesheet" href="../../doc/docs.css">
10 <style>.CodeMirror {border: 2px inset #dee;}</style>
13 <h1>CodeMirror: Gas mode</h1>
16 <textarea id="code" name="code">
26 @ A single line comment.
36 .asciz "Hello world!<br />"
41 var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
43 mode: {name: "gas", architecture: "ARMv6"},
47 <p>Handles AT&T assembler syntax (more specifically this handles
48 the GNU Assembler (gas) syntax.)
49 It takes a single optional configuration parameter:
50 <code>architecture</code>, which can be one of <code>"ARM"</code>,
51 <code>"ARMv6"</code> or <code>"x86"</code>.
52 Including the parameter adds syntax for the registers and special
53 directives for the supplied architecture.
55 <p><strong>MIME types defined:</strong> <code>text/x-gas</code></p>