First extracts the relevant expression from text and returns after styling.

style_region(text, context)

Arguments

text

Character vector that contains the highlighted region.

context

The context from find_active_context().