如何语法高亮在一个RichTextBox [C#]? [英] How to Syntax Highlight in a RichTextBox [C#]?

查看:194
本文介绍了如何语法高亮在一个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 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#]?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆