Could define and use a macro:
- In file
config.edn
, inside:macros {}
, add a line like the ones below::colored-text "[:span {:style \"color: $1\"} $2]"
:light-yellow "[:span {:style \"color: #d9d898\"} $1]"
- Then inside a block, type respectively:
-
{{colored-text <color>, "<text>"}}
- e.g.
{{colored-text #d9d898, "this is a test text, which should be colored"}}
- e.g.
-
{{light-yellow "<text>"}}
- e.g.
{{light-yellow "this is a test text, which should be colored"}}
- e.g.
-