如何用C ++编写文本编辑器 [英] how to write a text editor in c++

查看:50
本文介绍了如何用C ++编写文本编辑器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我多次学习c ++,但从未使用过c编写真正的应用程序.很长时间以来,我一直认为编写文本编辑器将是一件非常有趣的事情,现在我正在寻找一个简单但又不错的用c或c ++编写的文本编辑器,从中我可以从中得到启发并学习如何自己编写文本编辑器.

I learned c++ on and off for several times but never write a real apps using it . long time I've been thinking that writing a text editor will be something very interesting , now I am looking for a simple but decent text editor written in c or c++ from which I can get inspiration and learn how to write a text editor by myself.

你们能推荐给我一个用c或c ++编写的简单但不错的"文本编辑器吗?

Could you guys recommend a "simple but decent" text editor written in c or c++ to me ?

推荐答案

好吧,您想要看的东西听起来更像是教程,而不是实际的应用程序(我认为演示.QT是一个跨平台的GUI工具包,因此您没有绑定到特定的操作系统,但是可能比Windows中的Visual Studio环境更难设置.

Well what you want to see sounds more like a tutorial than an actual application (I think applications like Notepad++ will be a lot to dive into in the beginning). Since you don't mention any environment you want to program in, you could check out the QT Text Editor Demo. QT is a cross platform GUI Toolkit so you are not bound to a specific operating system but probably harder to setup then a Visual Studio environment in Windows.

仅对于Windows,您可能要考虑按照

For Windows only you might want to think about digging more into the .NET platform (e.g. C#) as suggested in this question. It doesn't help learning C++ but it makes GUI development a hell of a lot easier.

这篇关于如何用C ++编写文本编辑器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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