diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-09-07 10:37:27 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-09-07 10:37:27 -0700 |
commit | f5465e1220d73e237c51897b7d1211ec53b0dc04 (patch) | |
tree | 939ee8e57241b8515aede8106c6420e330ace75a /html/console.mu.html | |
parent | 5ccf2653fb7d31b013f77df4e92e964e45c54f8a (diff) | |
download | mu-f5465e1220d73e237c51897b7d1211ec53b0dc04.tar.gz |
2177
Diffstat (limited to 'html/console.mu.html')
-rw-r--r-- | html/console.mu.html | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/html/console.mu.html b/html/console.mu.html index 203cbd20..116fb450 100644 --- a/html/console.mu.html +++ b/html/console.mu.html @@ -13,9 +13,12 @@ pre { white-space: pre-wrap; font-family: monospace; color: #eeeeee; background-color: #080808; } body { font-family: monospace; color: #eeeeee; background-color: #080808; } * { font-size: 1.05em; } +.muRecipe { color: #ff8700; } .Comment { color: #9090ff; } +.Delimiter { color: #a04060; } .Special { color: #ff6060; } -.Identifier { color: #804000; } +.Constant { color: #00a0a0; } +.muControl { color: #c0a020; } --> </style> @@ -28,19 +31,19 @@ body { font-family: monospace; color: #eeeeee; background-color: #080808; } <body> <pre id='vimCodeElement'> <span class="Comment"># example program: reading events from keyboard or mouse</span> -# +<span class="Comment">#</span> <span class="Comment"># Keeps printing 'a' until you press a key or click on the mouse.</span> -recipe main [ +<span class="muRecipe">recipe</span> main [ open-console - { + <span class="Delimiter">{</span> e:event, found?:boolean<span class="Special"> <- </span>check-for-interaction - break-if found? - <span class="Identifier">print</span>-character-to-display 97, 7/white - loop - } + <span class="muControl">break-if</span> found? + print-character-to-display <span class="Constant">97</span>, <span class="Constant">7/white</span> + <span class="muControl">loop</span> + <span class="Delimiter">}</span> close-console - $<span class="Identifier">print</span> e, 10/newline + $print e, <span class="Constant">10/newline</span> ] </pre> </body> |