Syntax highlighting
In the terminalela --spec syntax-highlighting
Input is coloured as it is typed, through isocline's highlighter callback and ela's own lexer: keywords, strings, variables ($env.NAME and $keyring.NAME each as one, and $name and ${...} inside a double-quoted string too), commands (the first word of a command, by the parser's command-or-code rule), numbers and comments each get their own colour. The colours are the terminal's own ANSI colours, so they follow its theme:
| Kind | Colour |
|---|---|
| Keyword | magenta |
| String | green |
| Variable | cyan |
| Command | bold blue |
| Number | yellow |
| Comment | dark grey |