If I understand you correctly, you are suggesting breaking up the generated lines or better removing them to a separate file?
Well Scintilla is known not to handle really long lines well (ex. minified JS), but also "word wrapping" causes a major performance hit. I would try to disable the latter, if you enabled it, before messing with the code.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/791#issuecomment-162712496