thanks for the answer but it wasnt exactly what i needed.
for example when I have to make a fraction like this:
\frac{x}{y}
I need to show the teacher how i made the fraction by showing him the code, in the .PDF document.
I'm using texmaker, and i need to explain how to use some of the functions.
Therefore i need to be able to write the codes in a way so that the reader can see the codes afterwards.
Does anyone know how to do that? Because i can't find a way to do it.