Closed (outdated)
Project:
GeSHi Filter for syntax highlighting
Version:
7.x-1.0
Component:
Filtering
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Jul 2011 at 12:39 UTC
Updated:
5 Apr 2017 at 17:06 UTC
Jump to comment: Most recent
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.