[Tex/LaTex] Change font size in minted

minted

i'have this in my document

\begin{minted}{objc}
@property (retain, nonatomic) IBOutlet UIButton *playButton;
\end{minted}

But I would like to reduce the size of the text '@property ..' because it is very long and I do not want it to head..
I do not understand how to change the size of font :\

Best Answer

minted has a fontsize option.

Here some examples:

\documentclass{article}
\usepackage{minted}
\begin{document}
\noindent This is \verb|\footnotesize|:
\begin{minted}[fontsize=\footnotesize]{objc}
@property (retain, nonatomic) IBOutlet UIButton *playButton;
\end{minted}
This is \verb|\small|:
\begin{minted}[fontsize=\small]{objc}
@property (retain, nonatomic) IBOutlet UIButton *playButton;
\end{minted}
This is a normal text size for comparison:
\begin{minted}{objc}
@property (retain, nonatomic) IBOutlet UIButton *playButton;
\end{minted}
\end{document}

enter image description here

Related Question