Highlight, textcolor, and boldface simultaneously

Put \hl{..} inside.

\documentclass{report}
\usepackage{color,soul}
\begin{document}
  \hl{foo}
  \hl{\textbf{foo}} 
  \textcolor{red}{foo}
  \textbf{\textcolor{red}{\hl{foo}}}
  \textcolor{red}{\textbf{\hl{foo}}}
\end{document}

enter image description here


\documentclass{article}
\usepackage{xcolor}
\begin{document}
~\\
\colorbox{pink}{highlight}\\
\colorbox{green}{highlight}\\
\colorbox{yellow}{highlight}\\
\bfseries\colorbox{pink}{highlight + boldface}\\
\colorbox{green}{highlight + boldface}\\
\colorbox{yellow}{highlight + boldface}\\
\color{red}\colorbox{pink}{highlight  + boldface  + colored text}\\
\colorbox{green}{highlight  + boldface + colored text}\\
\colorbox{yellow}{highlight  + boldface  + colored text}\\
\color{red}\colorbox{pink}{\parbox{10cm}{
highlight  + boldface  + long long long  long long long long long long long long long long long long long long long colored text}}\\
\color{red}\colorbox{green}{\parbox{10cm}{
highlight  + boldface  + long long long  long long long long long long long long long long long long long long long colored text}}\\
\color{red}\colorbox{yellow}{\parbox{10cm}{
highlight  + boldface  + long long long  long long long long long long long long long long long long long long long colored text}}\\
\end{document}

enter image description here