#asciicolor.style.Styler enables fmt.html to function ergonomically you can color text by simply writing io.fmt:styled('error', 'some error message') and it will automatically load the user's configuration (see shim.html for details on how).
| dark | light |
|---|---|
| b - black | w - white |
| d - darkgrey | l - lightgrey |
| r - red | p - pink |
| y - yellow | h - honey |
| g - green | t - tea |
| c - cyan | a - aqua |
| n - navy | s - sky -- blue |
| m - magenta | f - fuschia |
| Name | Description |
|---|---|
| bg | special: defines the default background color. |
| Tools/Loggers/etc | |
| path | file/dir path |
| match | search match |
| line | line number / etc |
| meta | Meta=metadata such as description of ops, etc |
| info | info box, i.e. editor overlay. |
| notify | make very visible |
| good | tell the user something was positive. |
| error | tell the user of an error. |
| warn | warn the use. |
| base | The base when comparing text (aka removed text) |
| basel | The base line number (use with base) |
| change | The change when comparing (aka added text) |
| changel | The change line number (use with change) |
| empty | Denote that something is empty. |
| ref | Denote a reference (i.e. to code, docs, etc) |
| Document Styles | |
| code | code |
| bold | bold text |
| ul | underlined text |
| boldul | bold-underlined text |
| h1, h2, h3, h4 | headers |
| Code Syntax | |
| api | api, i.e. public function/class name |
| type | type signature |
| var | variable name |
| keyword | for while do etc |
| symbol | = + . { } etc |
| builtin | builtin fns/mods/names: io sys self etc |
| comment | content of comment: /*content*/ |
| stringbox | start/end of string: '' "" [[]] etc |
| string | content of string inside quotes |
| key | key in map/struct/etc |
| char | single character: 'c' |
| num | float or integer: 0 1.0 0xFF etc |
| literal | other literal: null, bool, date, regex, etc |
| call | function call: foo() |
| dispatch | object.method called: obj.foo(), obj:foo() } |
Functions
Note: pass f (file) to create the default AcWriter with the file. Note: pass mode, stylepath to control loadStyle
Fields:
Methods