Hi everyone!
When I use GeSHi with smaller code snippets, everything works fine (great work btw.). But when I start using longer Code (about 700 lines), the entire node won't show up (header, footer, blocks etc. are all fine, just no content).
Did I maybe miss some option like "maximum code length" or is this a bug?
Comments
Comment #1
enkore commentedComment #2
soxofaan commentedThere is certainly a limit, but it depends on the available memory of your PHP setup, version of used GeSHi library, complexity of the source code/language to render, ... Nearly impossible to pin point a hard number.
Does highlighting work if you split your code block in two parts of, say, 350 lines?
Comment #3
enkore commentedIt stops highlighting at around 500 lines, independent of the code language or complexity. It is already enough to copy and paste 800 lines of void main(); ...
Well, anyways I'll write a small module to watch the memory usage.
(fakeedit): If PHP is going low on memory, wouldn't it then abort the script execution resulting in a blank page? When I have a node with too long code, then just the content area is blank while all other areas (including comments and everything below the content) are rendered normally... strange
Comment #4
enkore commentedThe memory limit is not the reason. I got more than 60 % free memory... script execution time is it neither, since the page loads as fast as all other pages.
Comment #5
yukare commentedThere are two setting about pcre in php, improve both, you will be able to process bigger codes, but anyway always will be a limit about the size of the code taht geshi is able to process.