I am trying to show the text literally in verbatim environment with line breaking automatically. I Googled this and people recommended using the listings package. I am following the instructions in the help and figure out the code as follows
\begin{lstlisting}[breaklines=true, breakatwhitespace=true, breakindent=0pt, basicstyle=\ttfamily]
Here is some text I type to test if the listing environment could give me what I expect. I like this way pretty much because everything goes just like what I expected except for that the text alginment ...
\end{lstlisting}
It almost solve all my problem except that all text justify left now. Is that any way to make it break the line automatically while show all text to justify left and right?