答案1
您可以使用命令 \defineunderbar.看例子:
\setuplayout
[width=9.4cm]
\definebar
[foobar]
[color=yellow,
rulethickness=1.2em,
offset=1.2,
continue=yes,
order=background]
\starttext
There must be \foobar{a way to set the background color when I need to
highlight multiple lines of text. And then return to normal mode} without
affecting the layout.
\stoptext