diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-05-24 17:24:28 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-05-24 17:24:28 -0400 |
| commit | a9e4e9f0167ed344e55ba298928a575cabb1de0d (patch) | |
| tree | 040b8d389b6822a575d6bd8c74c0aa6773459dcf /docs/syntax/operators.md | |
| parent | a41e83e6a28d17e41fcf90c4d39003a06fa9ba51 (diff) | |
add format string example
Diffstat (limited to 'docs/syntax/operators.md')
| -rw-r--r-- | docs/syntax/operators.md | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/docs/syntax/operators.md b/docs/syntax/operators.md index b36f44b..33334b2 100644 --- a/docs/syntax/operators.md +++ b/docs/syntax/operators.md @@ -11,11 +11,47 @@ ## ``print` ```text -Result[I32] : Is[File; Void] `print DATA +Result[I32] : Is[File; Void] `print Any ``` If no `File` is specified the output is send to `stdout` +## ``format` + +```text +Result[String] : Const[String]`format Any +``` + +### Formatting + +#### Replace + +Use `%` to indicate an item from `Any`, use `\%` for a literal `%` + +#### Colors + +Use `#NAME#` to change the text color, use `#` to reset the text color, use `\#` for a literal `#` + +```text +BOLD +FAINT +ITALIC +UNDERLINE - UL + +BACKGROUND - BG +LIGHT + +BLACK +RED +GREEN +YELLOW +BLUE +MAGENTA +CYAN +GREY +WHITE +``` + ## ``panic` Stops execution and prints `Any` to `stdout` |
