本文介绍了如何语法高亮在一个RichTextBox [C#]?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何在RichTextBox控件的在用户键入使用字符串[]关键字语法高亮显示。我将很快发布一个轻量级的记事本网页,我希望它有语法高亮。我使用Windows窗体。有人可以张贴的代码示例

How do I syntax highlight in a richtextbox control AS THE USER TYPES and USING A String[] keywords. I will be publishing a lightweight notepad to the web soon and I want it to have syntax highlighting. I am using Windows forms. Can someone post a code example?

推荐答案


  • 的(约RichTextBox的本身会谈 - 最小的功能,但到底是什么你问这里)

  • (会谈主要是关于做它的其他方式)

  • RichTextBox syntax highlighting (talks about RichTextBox itself - minimal features but exactly what you asked for here)
  • A textbox/richtextbox that has syntax highlighting? [C#] (talks mostly about other ways of doing it)
  • 这篇关于如何语法高亮在一个RichTextBox [C#]?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 20:05