diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-11-30 16:54:01 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-11-30 16:54:01 -0800 |
commit | 14a380525ed2df295463b1906b718cb26871df3b (patch) | |
tree | a14422794d91a6fd4d132a12ffa7c3d72708eced /html/subx/examples/ex1.subx.html | |
parent | 9d27e966b5e9bf1bd3da48f49d7e133d112a2bbe (diff) | |
download | mu-14a380525ed2df295463b1906b718cb26871df3b.tar.gz |
4809 - subx: html with 5 colors for comments
Diffstat (limited to 'html/subx/examples/ex1.subx.html')
-rw-r--r-- | html/subx/examples/ex1.subx.html | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/html/subx/examples/ex1.subx.html b/html/subx/examples/ex1.subx.html index 495dd840..2c8d9fee 100644 --- a/html/subx/examples/ex1.subx.html +++ b/html/subx/examples/ex1.subx.html @@ -11,12 +11,16 @@ <style type="text/css"> <!-- pre { font-family: monospace; color: #aaaaaa; background-color: #080808; } -body { font-size: 12pt; font-family: monospace; color: #aaaaaa; background-color: #080808; } -a { color:#eeeeee; text-decoration: none; } -a:hover { text-decoration: underline; } -* { font-size: 12pt; font-size: 1em; } -.subxComment { color: #005fff; } -.LineNr { color: #444444; } +body { font-size:12pt; font-family: monospace; color: #aaaaaa; background-color: #080808; } +.subxS2Comment a { color:inherit; } +.subxS1Comment a { color:inherit; } +.subxComment a { color:inherit; } +.subxH2Comment a { color:inherit; } +.subxH1Comment a { color:inherit; } +* { font-size:12pt; font-size: 1em; } +.subxComment { color:#16bfff; } +.subxS2Comment { color:#4466ff; } +.LineNr { color:#444444; } --> </style> @@ -51,7 +55,7 @@ if ('onhashchange' in window) { </head> <body onload='JumpToLine();'> <pre id='vimCodeElement'> -<span id="L1" class="LineNr"> 1 </span><span class="subxComment">## first program: same as <a href="https://www.muppetlabs.com/~breadbox/software/tiny/teensy.html">https://www.muppetlabs.com/~breadbox/software/tiny/teensy.html</a></span> +<span id="L1" class="LineNr"> 1 </span><span class="subxComment"># First program: same as <a href="https://www.muppetlabs.com/~breadbox/software/tiny/teensy.html">https://www.muppetlabs.com/~breadbox/software/tiny/teensy.html</a></span> <span id="L2" class="LineNr"> 2 </span><span class="subxComment"># Just return 42.</span> <span id="L3" class="LineNr"> 3 </span><span class="subxComment">#</span> <span id="L4" class="LineNr"> 4 </span><span class="subxComment"># To run (from the subx directory):</span> @@ -63,12 +67,12 @@ if ('onhashchange' in window) { <span id="L10" class="LineNr">10 </span> <span id="L11" class="LineNr">11 </span>== code <span id="L12" class="LineNr">12 </span> -<span id="L13" class="LineNr">13 </span>bb/copy-to-EBX 2a/imm32 <span class="subxComment"># 42 in hex</span> -<span id="L14" class="LineNr">14 </span><span class="subxComment"># exit(EBX)</span> +<span id="L13" class="LineNr">13 </span><span class="subxComment"># syscall(exit, 42)</span> +<span id="L14" class="LineNr">14 </span>bb/copy-to-EBX 2a/imm32 <span class="subxComment"># 42 in hex</span> <span id="L15" class="LineNr">15 </span>b8/copy-to-EAX 1/imm32/exit <span id="L16" class="LineNr">16 </span>cd/syscall 0x80/imm8 <span id="L17" class="LineNr">17 </span> -<span id="L18" class="LineNr">18 </span><span class="subxComment"># vim:nowrap:textwidth=0</span> +<span id="L18" class="LineNr">18 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> </pre> </body> </html> |