View source: R/html_highlight.R
html_highlight | R Documentation |
Returns text with colour and bold html formatting.
html_highlight(t1, text, t3, colour = "#FF4500")
t1 |
Text that will precede coloured text. |
text |
Text that will be highlighted with colour. |
t3 |
Text that will follow coloured text. |
colour |
Colour of the highlighting. Hex code required i.e. #FF4500 |
Returns text that is surrounded with the <strong> and <span style='colour:'#colour'> that will colour the text to emphasise it. Requires special characters like dashes "-" to be be double-escaped "\-" to be parsed correctly.
html_highlight("Code\\-looking text that ", "will contain red.", "")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.