Look what we are using. It's improving the ms .B1/.B2 macros and is backwards compatible.
Heinz .B1 [fill_color [frame_color [frame_thickness]]] start boxed text .B2 the additional parameter par*box-n sets the distance between box left and text. .nr par*box-n 1n .B1 green black .05c \m[blue]Das ist der zweite Teil des Textes. Das ist der zweite Teil.\m[] .B2
sbox.tmac
Description: Troff document