highlight: Highlight text

View source: R/fmt.R

highlightR Documentation

Highlight text

Description

A fmt() convenience wrapper for highlighting text.

Usage

highlight(x, pad = 0L, output_type = c("ansi", "html", "plain"))

Arguments

x

Character: Text to highlight.

pad

Integer: Number of spaces to pad before text.

output_type

Character: Output type ("ansi", "html", "plain").

Value

Character: Formatted text with highlight.

Author(s)

EDG

Examples

message(highlight("This is highlighted!"))

rtemis.core documentation built on April 22, 2026, 1:11 a.m.