问题描述
伙计们.
我正在研究一种语法突出显示工具,其中我当前的突出显示方法(RichTextBox + TextChanged +正则表达式)变得不流畅和缓慢.我花了几天的时间寻找其他方法,而我找到的最好的方法是ICSharpCode.TextEditor,但是当我研究它时,我找不到能突出显示其代码的代码. >
那么你们中有人在这里有一些经验吗?任何帮助将不胜感激,但是代码示例更多.PS:我当前的荧光笔大约需要10秒才能突出显示2100行代码,而ICSharpCode.TextEditor大约需要1-2秒.
Theo
Hey guys.
I''m working on a syntax highlighter, in which my current method of highlighting (RichTextBox + TextChanged + Regular Expressions) has become to unsmooth and slow. I''ve literally spent days searching for other methods, and the best one I''ve found was the ICSharpCode.TextEditor, however when taking I look into it I was unable to find the code in which it highlights its code.
So any of you guys have some experience here? Any help''d be appreciated, but code examples more.
PS: my current highlighter is about 10 seconds about highlighting 2100 lines of code, where ICSharpCode.TextEditor is about 1 - 2 seconds.
Theo
推荐答案
这篇关于语法高亮显示的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!