html_highlight: Highlight HTML

View source: R/html_highlight.R

html_highlightR Documentation

Highlight HTML

Description

Returns text with colour and bold html formatting.

Usage

html_highlight(t1, text, t3, colour = "#FF4500")

Arguments

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

Details

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.

Examples


html_highlight("Code\\-looking text that ", "will contain red.", "")


BradyAJohnston/mdfret documentation built on April 16, 2022, 8:32 a.m.