TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Pet Project: Developing your own text editor where to start?

1 点作者 lexx12超过 16 年前
With so many text editors out there packed so many awesome features(textmate,coda,eclipse,komodo,e-text editor, intype) still I have this somewhat ambitious idea- to create my own. I'm into web development particularly and I'd like to stick my goals to it. Right now I'm quiet overwhelmed I have this problem in determining where to start.<p>Any helpful ideas?

5 条评论

trickjarrett超过 16 年前
If the purpose of this is to teach yourself a new language or a new functionality that you haven't previously coded, then sure go for it.<p>If it is for pay, or possible pay, then by all means dive in and see what you can do.<p>But a purely for fun project with copious alternatives that handle the vast majority of what you're trying to do and have the ability to be extended, means you'll eventually run out of steam and realize you can just use these other tools. I've been working on a twitter app for months and I've run out of steam. I have plenty of ideas and improvements, and as none of the ones out there really allow extensions, I'm still plugging away at my one, but I've taken absurdly long to get a lightly functional app.<p>Be warned, that way lies madness.
评论 #480489 未加载
yan超过 16 年前
Before you start, think long and hard if your problem hasn't already been solved. I'd be doubtful if I can create a text editor on par with even the average. If you thought about it, long and hard and realized that you really do want to write one, I'd start by downloading the source to one of the open ones (pick one: <a href="http://en.wikipedia.org/wiki/List_of_text_editors#Free_software_.28free.2Flibre.2Fopen-source.29" rel="nofollow">http://en.wikipedia.org/wiki/List_of_text_editors#Free_softw...</a>, but avoid emacs it will be too complex for you) and study how they solved the usual text editor problems, and where it went wrong. This should also be able to teach you about the common way to construct the architecture of a text editor.<p>Pick a set of features you want to start with and how you will interact with it. Pick what language/API/platform/etc you want it to work under and start reading docs and thinking how to go about writing your own.<p>Not to discourage you, but you probably won't be able to match most editors having never written one before. If you just want a hobby project, it be useful to start it for the experience. It might teach you a lot about software, or however, it might just frustrate you.<p>edit: What is your experience in? What kind of code do you write now?
评论 #480612 未加载
评论 #480473 未加载
Tangurena超过 16 年前
I'd start with Scite.<p><a href="http://www.scintilla.org/SciTE.html" rel="nofollow">http://www.scintilla.org/SciTE.html</a><p><a href="http://en.wikipedia.org/wiki/SciTE" rel="nofollow">http://en.wikipedia.org/wiki/SciTE</a>
lexx12超过 16 年前
I have to admit I'm into Ruby and PHP mainly, but I have this idea of extending it too.
timf超过 16 年前
What language do you want to work with?