Hi all, I was eager to experiment with the new SyntaxHighlightPanel. As long as I post modest code snippets, all goes fine. But when I posted some 50K XML code, all hell broke loose.
In fact, Chrome was the only browser that parsed it in a few seconds without issuing any warning. IE7, Firefox, Safari and Opera all complained about the script taking too long. Now, while I understand it's a major pain to parse code client-side, I wonder if there is any sensible workaround for it. One thing would be to disable syntax highlighting when code size exceeds a certain threshold, but I can't find any method on the SyntaxHighlightPanel to do so, nor can I see any SYNTAX_NONE constant or anything like that. Otherwise, the code could be lazy-parsed, like a few lines at a time as the user scrolls through the code. I guess that would imply rewriting a lot of stuff though. Any other ideas for a workaround, please? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "GWT-Ext Developer Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/gwt-ext?hl=en -~----------~----~----~----~------~----~------~--~---
