Suppose we have a very large file (1,000,000+ lines). For example, it could be 
an XML file or a Java class written by a beginner programmer :).
The question is: how should we handle styling for such large files?

The simplest solution is to apply styles to all lines at once. Another option 
is to implement lazy styling—only styling the lines that are about to be 
displayed (crucially, before they are shown).

Could you please clarify if lazy styling is possible in CodeArea? If yes, which 
API should be used for this? Or, in such cases, is a different approach 
recommended?

Best regards, Pavel

Reply via email to