I was able to improvise a solution using verbatim:

|\begin{verbatim}
very_long_code_very_long_code_very_long_code_
    very_long_code_
\end{verbatim}|

Anyway, if there's a better way to do it I would like to know it, because this solution enables me to break the lines by the present column width but, if I ever change that width, then I would have to format all the code again.

Thanks!

Roberto

-----------------------
Roberto Gorjão wrote:
I have an article set with the APA class and two columns. In this article I need to write some amount of javascript code. The problem is that sometimes these code lines get too long, without any spaces, so lines extend beyond the columns width. How can I set those paragraphs to break when they reach the end of the column?

It would be perfect if broken lines of code got indented after the break.

--
-------------------- Roberto Gorjão
freelance designer and web designer
personal site: www.castelosnoar.com
PORTUGAL / BRAGA / PÓVOA DE LANHOSO

Reply via email to