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/ex2.subx.html | |
parent | 9d27e966b5e9bf1bd3da48f49d7e133d112a2bbe (diff) | |
download | mu-14a380525ed2df295463b1906b718cb26871df3b.tar.gz |
4809 - subx: html with 5 colors for comments
Diffstat (limited to 'html/subx/examples/ex2.subx.html')
-rw-r--r-- | html/subx/examples/ex2.subx.html | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/html/subx/examples/ex2.subx.html b/html/subx/examples/ex2.subx.html index 1f7f3775..42a590f1 100644 --- a/html/subx/examples/ex2.subx.html +++ b/html/subx/examples/ex2.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">## add 1 and 1, and return the result in the exit code</span> +<span id="L1" class="LineNr"> 1 </span><span class="subxComment"># Add 1 and 1, and return the result in the exit code.</span> <span id="L2" class="LineNr"> 2 </span><span class="subxComment">#</span> <span id="L3" class="LineNr"> 3 </span><span class="subxComment"># To run (from the subx directory):</span> <span id="L4" class="LineNr"> 4 </span><span class="subxComment"># $ subx translate examples/ex2.subx -o examples/ex2</span> @@ -62,13 +66,15 @@ if ('onhashchange' in window) { <span id="L9" class="LineNr"> 9 </span> <span id="L10" class="LineNr">10 </span>== code <span id="L11" class="LineNr">11 </span> -<span id="L12" class="LineNr">12 </span>bb/copy-to-EBX 1/imm32 -<span id="L13" class="LineNr">13 </span>43/inc-EBX -<span id="L14" class="LineNr">14 </span><span class="subxComment"># exit(EBX)</span> -<span id="L15" class="LineNr">15 </span>b8/copy-to-EAX 1/imm32 -<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="L12" class="LineNr">12 </span><span class="subxComment"># EBX = 1</span> +<span id="L13" class="LineNr">13 </span>bb/copy-to-EBX 1/imm32 +<span id="L14" class="LineNr">14 </span><span class="subxComment"># increment EBX</span> +<span id="L15" class="LineNr">15 </span>43/inc-EBX +<span id="L16" class="LineNr">16 </span><span class="subxComment"># syscall(exit, EBX)</span> +<span id="L17" class="LineNr">17 </span>b8/copy-to-EAX 1/imm32 +<span id="L18" class="LineNr">18 </span>cd/syscall 0x80/imm8 +<span id="L19" class="LineNr">19 </span> +<span id="L20" class="LineNr">20 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> </pre> </body> </html> |