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 = NULL)

Arguments

x

Character: Text to highlight.

pad

Integer: Number of spaces to pad before text.

output_type

Character ("ansi", "html", "plain") or NULL: Output type. If NULL, resolved via get_output_type().

Value

Character: Formatted text with highlight.

Author(s)

EDG

Examples

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

rtemis.core documentation built on Sept. 20, 2026, 9:06 a.m.