I'm trying to do a minted \newenvironment
I looked at this post new-environment-with-minted, but I would like to know if there's a more simple way to do that, like
\newenvironment{matlabcode}
{\begin{minted}[mathescape,linenos=true]{matlab}}
{\end{minted}}
In that case, I get a FancyVerbGetLine
error
As I know, it seems that I should use \CustonVerbatimEnvironment
matlab-prettifier
package; see this answer.