[Tex/LaTex] A few words in a coloured/grey background box

boxescolorhighlighting

How can I write a few words with a grey highlighting box in the background, as shown in the picture below ("TEXT 4")?

Best Answer

put the xcolor package in the preamble,

\usepackage{xcolor}

then use a command like this:

\fcolorbox{gray}{gray}{TEXT}

Change 'gray' to the shade that suits your gods liking.