this code doesn't compile for me. Could it be a bug or is something wrong with my LaTex installation?
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{gb4e}
\usepackage{listings}
\begin{document}
\begin{exe}
\ex
\gll Isso é um exemplo.\\
This is an example\\
\trans `This is an example.'
\end{exe}
\begin{lstlisting}
source code
\end{lstlisting}
\end{document}
My goal: have glossed examples AND indented source code (the verbatim environment did not indent the code).
gb4emesses with catcodes, it's best to load it last or almost last in your list of packages. – Alan Munn Jan 1 at 22:14