[Tex/LaTex] Break lines at any character in minted

minted

Consider any snippet of minted code that contains a large string not containing any spaces like:

\documentclass{article}
\usepackage{minted}
\setminted{breaklines}
\begin{document}
\begin{minted}{xml}
<?xml version="1.0"?>
abracadabraabracadabraabracadabraabracadabraabracadabraabracadabraabracadabraabracadabraabracadabraabracadabra
<project name="Package tcolorbox" default="documentation" basedir=".">
<description>
Apache Ant build file (http://ant.apache.org/)
</description>
</project>
\end{minted}
\end{document}

The documentation stated that, when using the option breaklines, line breaks are only inserted when a space occurs. My question is: is there a way to extent this principles so that line breaks are permitted at any time. I.e. the abra.. string gets a break any time it crosses \textwidth.

Best Answer

None of the other answers worked for my as October of 2019. After researching, I could find that minted has implemented this with the option breakanywhere: Allow line breaks anywhere

Related Question