livebs / syntaxhighlighter

Automatically exported from code.google.com/p/syntaxhighlighter
GNU General Public License v3.0
0 stars 0 forks source link

script hangs when code too large? #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

go here first, this is the file im going to try to highlight next:
http://doesthatevencompile.com/current-projects/code-sniplets/GuiBrowsePanel.htm

no look at the highlighted file:
http://doesthatevencompile.com/current-projects/code-sniplets/GuiBrowsePanel-tes
t.htm

What is the expected output? What do you see instead?

highlighted file, script hangs

What version of the product are you using? On what operating system?

1.5.1

Please provide any additional information below.

Original issue reported on code.google.com by kor...@gmail.com on 15 Aug 2007 at 7:30

GoogleCodeExporter commented 8 years ago
It actually works fine for me, but I have a rather fast PC.

http://code.google.com/p/syntaxhighlighter/wiki/Overview

Performance

SyntaxHighlighter? uses regular expressions to parse the text. It's not 
extremely
fast, in fact, it's pretty slow. If you are trying to highlight a few dozens 
lines of
code, you won't see any problems. Trying to highlight 10kb worth of text will 
result
in JavaScript? being aborted because of long execution time. 

Original comment by alex.gor...@gmail.com on 17 Aug 2007 at 2:49

GoogleCodeExporter commented 8 years ago

Original comment by alex.gor...@gmail.com on 17 Aug 2007 at 2:50