[Tex/LaTex] Highlight/color a part of text in block in beamer

beamerblockhighlighting

I am using beamer in Latex to make a presentation. I use a block for definition like:

 \begin{block}{P1}
 \justifying
  Some text here
 \end{block}

Let us say I wish to highlight a word "Some". By highlight, I mean something like which is performed by \hl{text}. However, hl does not work in a block in latex. So what should I do, if I want to highlight text in block in beamer.

I don't want to change the color of text but I want to highlight it as shown in attached image. alert changes the text color. hl does not work in a block. So how should I do it?
enter image description here

Best Answer

You can apply the answer https://tex.stackexchange.com/a/41693/36296 to your problem:

\documentclass{beamer}

\usepackage{soul}
\makeatletter
\let\HL\hl
\renewcommand\hl{%
  \let\set@color\beamerorig@set@color
  \let\reset@color\beamerorig@reset@color
  \HL}
\makeatother
\begin{document}

\begin{frame}
 \begin{block}{P1}
  Some \hl{text} here
 \end{block}
\end{frame}

\end{document}

enter image description here