\usepackage{minted}
\usepackage{fancyvrb}


\newenvironment{code}[1]{
    \VerbatimEnvironment
    \begin{minted}[
    autogobble,
    breaklines,
    breakindentnchars=2,
    frame=lines,
    framesep=2mm,
    baselinestretch=1.1,
    linenos]{#1}}
{\end{minted}}
