move a few things away in to-be-integrated/
[myslice.git] / to-be-integrated / third-party / codemirror-3.15 / mode / gas / index.html
1 <!doctype html>
2 <html>
3     <head>
4         <meta charset="utf-8">
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>
11     </head>
12     <body>
13         <h1>CodeMirror: Gas mode</h1>
14
15         <form>
16 <textarea id="code" name="code">
17 .syntax unified
18 .global main
19
20 /* 
21  *  A
22  *  multi-line
23  *  comment.
24  */
25
26 @ A single line comment.
27
28 main:
29         push    {sp, lr}
30         ldr     r0, =message
31         bl      puts
32         mov     r0, #0
33         pop     {sp, pc}
34
35 message:
36         .asciz "Hello world!<br />"
37 </textarea>
38         </form>
39
40         <script>
41             var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
42                 lineNumbers: true,
43                 mode: {name: "gas", architecture: "ARMv6"},
44             });
45         </script>
46
47         <p>Handles AT&amp;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.
54
55         <p><strong>MIME types defined:</strong> <code>text/x-gas</code></p>
56     </body>
57 </html>