Is there a way to define a new listings environment with some listings options by default?
For example, I am hoping to define a new environment, say myenv, such that
\begin{myenv}
\end{myenv}
and
\begin{lstlisting}[language = Java , frame = trBL , escapeinside={(*@}{@*)}, escapechar=\%]
\end{lstlisting}
are the same
Is there a way to achieve this?
