What strategy would you recommend for styling large documents in CodeArea?
PavelTurk
pavelturk2000 at gmail.com
Thu Apr 24 18:18:58 UTC 2025
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
More information about the openjfx-dev
mailing list