简体   繁体   English

C ++中的文本编辑器?

[英]Text editor in c++?

I was going to do something with PHP, but it was quite a hassle and didn't need to be on a website, so I've decided to try it in c++. 我本来打算用PHP来做一些事情,但这很麻烦,不需要在网站上,所以我决定在c ++中尝试。 I've had some experience with javascript, so I'm not completely new to programming, although I know c++ is definitely quite a bit tougher. 我曾经有过使用javascript的经验,因此虽然不是很熟悉c ++,但我对编程并不完全陌生。 I figure I'll start with something basic and work my way up from there. 我认为我将从一些基本的东西开始,然后从那里开始。

So, for now, I'd like to make a cross-platform text-editor in c++ using something like MS Visual Studio. 因此,就目前而言,我想使用MS Visual Studio之类的工具在c ++中创建一个跨平台的文本编辑器。 Are there any tutorials for something like this? 是否有类似这样的教程?

I'm sure there a ton of this kind of thing, so if you know of any simple source codes, please let me know so I can try to make sense of it. 我敢肯定有很多这样的事情,因此,如果您知道任何简单的源代码,请告诉我,以便我能理解它。

Check out Scintilla , it's a fantastic cross-platform text-editing component used in a lot of software. 查看Scintilla ,它是许多软件中使用的出色的跨平台文本编辑组件。

I don't like discouraging people, but... if you only have Javascript experience, moving over to C++ is going to be a pretty big undertaking even without a GUI project. 我不喜欢劝阻人们,但是...如果您仅具有Javascript经验,即使没有GUI项目,向C ++的移植也将是一项艰巨的任务。 Start smaller and work your way up. 从小开始,然后逐步提高。

Vim for sure. 肯定是Vim You can get vim on almost all platforms, and it is default editors for many *nix distributions. 您几乎可以在所有平台上获得vim,它是许多* nix发行版的默认编辑器。 It has great power and relatively easy to learn (compared to Emacs). 它具有强大的功能并且相对容易学习(与Emacs相比)。 Usually once you've learnt vim, you would never need to learn another editor again. 通常,一旦您学习了vim,就无需再学习其他编辑器了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM