I want to compare two codes in two different languages in latex. I use lstlisting for both of them and then I want to see them side by side. I archived this using minipage environment but my listings are bigger than one page so they are overlapped. Also I have a strange empty page before listings. Multicolsenvironment doesn't allow me to see listings side by side.
Anybody know solution?
I use code like this
\begin{landscape}
\noindent\begin{minipage}{.45\columnwidth}
\begin{lstlisting}[caption=code 1,frame=tlrb]{Name}
void code()
{
}
\end{lstlisting}
\end{minipage}\hfill
\begin{minipage}{.45\columnwidth}
\begin{lstlisting}[caption=code 2,frame=tlrb]{Name}
void code()
{
}
\end{lstlisting}
\end{minipage}
\end{landscape}

paracolpackage as already suggested in the comments on this related question: side-by-side inputlisting in landscape over multiple pages](https://tex.stackexchange.com/q/377797/134144)[ – leandriis Jun 29 '19 at 21:16paracolpackage – Atar1x Jun 29 '19 at 21:25paracolonly seems to work in portrait pages. Would that be an option for you? – leandriis Jun 30 '19 at 16:26