How to break long code lines

2007-10-22 Thread Roberto Gorjão
Hi! 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 this code lines get too long, without any spaces, so lines extend beyond the columns width. How can I set those paragraphs to break when

Re: How to break long code lines

2007-10-23 Thread Roberto Gorjão
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 wid

Re: How to break long code lines

2007-10-23 Thread Helge Hafting
Roberto Gorjão wrote: Hi! 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 this code lines get too long, without any spaces, so lines extend beyond the columns width. How can I set those par

Re: How to break long code lines

2007-10-23 Thread Roberto Gorjão
Obrigado, Helge! I will have that look at the "listings" package! I also found that the {verse} environment also does the trick. I only have to open a space where the line should break, and it even indents the next line: - \begin{verse} very+long+code+that+should+break+here and+t