%20%E4%B8%AD%E8%AE%BE%E7%BD%AE%E6%96%87%E6%9C%AC%E7%9A%84%E8%83%8C%E6%99%AF%E9%A2%9C%E8%89%B2.png)
答案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