# Beamer: Global text justification in the example enviroment

Using this answer, I can justify text in block environments globally. However, if I replace the block environment by an example environment, the above solution doesn't work:

\documentclass{beamer}
\usepackage{ragged2e}   %new code
\usetheme{default}

\begin{document}

\begin{frame}{Test}
\begin{example}
The brown fox jumped over the lazy dog. The brown fox jumped over
the lazy dog. The brown fox jumped over the lazy dog. The brown
fox jumped over the lazy dog. The brown fox jumped over the lazy
dog. The brown fox jumped over the lazy dog. The brown fox jumped
over the lazy dog. The brown fox jumped over the lazy dog. The
brown fox jumped over the lazy dog. The brown fox jumped over the
lazy dog. The brown fox jumped over the lazy dog.
\end{example}
\end{frame}
\end{document}


How can I justify text in the example environment globally?

Version: Beamer 3.55 from TeX Live 2018.

The template you want to modify is called block example begin and not example begin

\documentclass{beamer}
\usepackage{ragged2e}   %new code
\usetheme{default}

\begin{document}

\begin{frame}{Test}
\begin{example}
The brown fox jumped over the lazy dog. The brown fox jumped over
the lazy dog. The brown fox jumped over the lazy dog. The brown
fox jumped over the lazy dog. The brown fox jumped over the lazy
dog. The brown fox jumped over the lazy dog. The brown fox jumped
over the lazy dog. The brown fox jumped over the lazy dog. The
brown fox jumped over the lazy dog. The brown fox jumped over the
lazy dog. The brown fox jumped over the lazy dog.
\end{example}
\end{frame}
\end{document}