View source: R/coloured_text.R
coloured_text | R Documentation |
Colour specific text in a html document
coloured_text(colour, ...)
colour |
colour to use for the content |
... |
content to be coloured |
In quarto/Rmarkdown documents, use the function in an inline R chunk
(`r coloured_text(...)`
) or in an R chunk with the result set to asis
coloured_text("red", "This text should be red")
# also works with multiple contents
coloured_text("red", "This text should be red", "this one too")
# For multiple colours, use multiple calls to the function:
coloured_text("red", "this is red,")
coloured_text("blue", "and this is blue!")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.