爱上语法高亮控件ICSharpCode.TextEditor ~o~
来源:互联网 发布:java 人脸识别sdk 编辑:程序博客网 时间:2024/06/06 03:29
爱上语法高亮控件ICSharpCode.TextEditor ~o~
语法高亮控件ICSharpCode.TextEditor来自开源项目SharpDevelop,今天才知道,汗!害我白白花费时间自己编了一个SyntaxTextBox(http://surfsky.cnblogs.com/archive/2005/12/12/295814.html)。不妨发挥拿来主义风格,解剖了它再说!科学研究发现,咳咳,这个控件比较牛了啦~。VisualStudio代码编辑器的功能基本都能实现(包括CodeComplete和tip功能),速度也很快,而且是--开源免费软件!(大家鼓掌:) ,我想我爱上它了^_^,在此严重推荐一下!
1。以下是该控件的源代码和自己草编的简单使用例程:
ICSharpCode.TextEditor1.1的源代码:【下载】
ICSharpCode.TextEditor2.2的源代码:【下载】
自己编的使用例程:【下载】
2。使用效果:
3。使用该控件的关键句子:
using ICSharpCode.TextEditor;
using ICSharpCode.TextEditor.Gui.CompletionWindow;
using ICSharpCode.TextEditor.Document;
using ICSharpCode.TextEditor.Actions;
protected ICSharpCode.TextEditor.TextEditorControl txtContent;
txtContent.Document.HighlightingStrategy = HighlightingStrategyFactory.CreateHighlightingStrategy("C#");
txtContent.Encoding = System.Text.Encoding.Default;
using ICSharpCode.TextEditor.Gui.CompletionWindow;
using ICSharpCode.TextEditor.Document;
using ICSharpCode.TextEditor.Actions;
protected ICSharpCode.TextEditor.TextEditorControl txtContent;
txtContent.Document.HighlightingStrategy = HighlightingStrategyFactory.CreateHighlightingStrategy("C#");
txtContent.Encoding = System.Text.Encoding.Default;
这几句代码若是不写的话,会无法高亮显示代码且汉字会变乱码的。切记切记,阿弥陀佛~
欢迎大家讨论该控件的使用方法~~
发表于 2005-12-30 21:21 Kevin Cheng 阅读(646) 评论(12) 编辑 收藏 引用 收藏至365Key 所属分类: .NET组件控件
评论
- 爱上语法高亮控件ICSharpCode.TextEditor ~o~
- 语法高亮显示控件ICSharpCode.TextEditor
- 使用ICSharpCode.TextEditor制作一个语法高亮显示的XML编辑器
- SharpDevelop浅析_3_Internationalization & TextEditor 国际化、文档编辑器、语法高亮显示……
- ICSharpCode.TextEditor设置选择的文本
- 语法高亮控件
- ICSharpCode.TextEditor扩展——增加右键菜单
- RichEdit 控件:语法高亮显示
- WPF语法高亮控件AvalonEdit
- EclipsePlug-in使用TextEditor开发自己的编辑器,实现关键字高亮和代码提示.
- EclipsePlug-in使用TextEditor开发自己的编辑器,实现关键字高亮和代码提示.
- Devexpress TextEditor等控件常用操作
- 用c#实现的语法高亮控件
- 用c#实现的语法高亮控件
- 爱上发的高
- 关于ICSharpCode.SharpZipLib控件的问题
- 语法高亮
- 测试语法高亮
- 如何调整ABAP程序的性能
- [转贴]Linux下Makefile的automake生成全攻略[三]
- 仿Delphi/BCB中的TStringList,用C#完成了一个StringList
- 阿润
- 发布语法加亮控件(SyntaxTextBox)
- 爱上语法高亮控件ICSharpCode.TextEditor ~o~
- C++字符串完全指引之一
- C语言中操作字符串
- 几篇好文章
- 将ASP.NET用户控件转化为自定义控件
- JavaScript就这么回事
- c语言学习新手必看
- C--指针
- 如何高效的搜索,获取信息