I am writing on texstudio, and there is a part where I want to insert a code written by me. In another part of the text I want to quote that piece of code but I don't know how. The code is written in this way:
\section*{Matlab Code}
\begin{lstlisting}
code
\end{lstlisting}