Greetings,
I'm the new one here

I started to write my Bachelor Thesis with LaTeX, had some problems but found good solutions here. Now I've a problem where I can't find any solution

I use the Listings-Package for source code in my work.
The general settings for listings are as the follow. I defined my own rules for JavaScript-Language (because JavaScript isn't supported)
Code: Select all
\lstset{
language=JavaScript,
breakatwhitespace=false,
backgroundcolor=\color{lightgray},
extendedchars=true,
basicstyle=\footnotesize\ttfamily,
showstringspaces=false,
showspaces=false,
numbers=left,
numberstyle=\footnotesize,
numbersep=9pt,
tabsize=2,
breaklines=true,
showtabs=false,
captionpos=b
}
This works fine - until yet. Now I’ve a .js file with very long names or variables, contents and so on (it’s a .js file for penetration testing). As an example:
<800*f> means ‘f’ is repeated 800 times. If I compile the document now I get the following error:
Is there any way to say the Listings-Package it should always break the line after a definite number of characters, or does anybody have an better idea how to put such long strings in a LaTeX-Document?
Thanks for help!