\usemintedstyle{native} \definecolor{ourBackgroundColor}{rgb}{0.1,0.1,0.2} \inputminted[ breaklines, linenos=true, bgcolor=ourBackgroundColor, firstline=5, lastline=7, gobble=4 ]{java}{exercises/source-code-listings/Source.java} \usemintedstyle{default} \begin{minted}{latex} \usemintedstyle{native} \definecolor{ourBackgroundColor}{rgb}{0.1,0.1,0.2} \inputminted[ breaklines, % line breaks linenos=true, % line numbers bgcolor=ourBackgroundColor, % bbackground color firstline=5, % first line to be included lastline=7, % last line to be included gobble=4 % remove leading spaces ]{java}{exercises/source-code-listings/Source.java} \end{minted}