The code you show has only 3300 characters (more or less), so I don't understand.
Now, very long listings are annoying to read here, particularly when they are not formatted properly, so I see no major issue with this limitation: you found yourself a good workaround.