Cosmin Apreutesei
2013-09-10 16:14:19 UTC
Hi,
I'm trying to integrate the scintilua lexers into a text editor of my own
for the purpose of syntax highlighting. I have found that lexing the whole
text on each key stroke is too slow. But scintilla doesn't have this
problem so I assume that scintilla calls the lexer only on parts of the
text and not on the entire text every time. What is the logic by which
scintilla decides which part of the text needs re-lexing when the text
changes? Any hints/pointers on where to look in the code appreciated.
Regards,
Cosmin.
I'm trying to integrate the scintilua lexers into a text editor of my own
for the purpose of syntax highlighting. I have found that lexing the whole
text on each key stroke is too slow. But scintilla doesn't have this
problem so I assume that scintilla calls the lexer only on parts of the
text and not on the entire text every time. What is the logic by which
scintilla decides which part of the text needs re-lexing when the text
changes? Any hints/pointers on where to look in the code appreciated.
Regards,
Cosmin.
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.