I'm using new float enviroment to show some examples in my document. This enviroment contains tcolorbox which provides a gray background. The main text in the enviroment is a mixture of plain text and code blocks (in lstlisting env). Each float should have it's own caption and label.
In style file:
\usepackage{newfloat}
\DeclareFloatingEnvironment[name={Example}]{suppfigure}
In the main document:
\begin{suppfigure}[!h]
\caption{Some code example}\label{suppfigure1}
\begin{tcolorbox}[arc=0mm, left=1pt, right = 1pt, boxrule=0mm,colback = {shadow-gray}]
Text
\begin{lstlisting}
int i = 0;
\end{lstlisting}
Some more text
\begin{lstlisting}
String.Format("{0,10:0.0}", -123.4567);
\end{lstlisting}
\end{tcolorbox}
\end{suppfigure}
How can I allow page break inside the suppfigure to extend my example to multiple pages?

