Cocoa应用程序的语法着色 [英] Syntax coloring for Cocoa app

查看:84
本文介绍了Cocoa应用程序的语法着色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算做一个Cocoa应用程序,要求代码语法是彩色的(在所有通用的语言)。

I'm planning to do a Cocoa app that requires code syntax to be colored (in all common languages). Instead of writing my own code highlighter/parser, are there any pre-made solutions available?

感谢

推荐答案

您可以使用类似 Geshi 的功能,也请参阅此处列出的资源: http://www.cocoadev.com/index.pl?SyntaxHighlighting

You might be able to use something like Geshi, but there're also the resources listed here: http://www.cocoadev.com/index.pl?SyntaxHighlighting

编辑

更多链接:

  • http://www.stiefels.net/2008/01/22/syntax-highlighting-for-nstextview-with-flex/
  • Syntax Highlighting in Cocoa TextView? Experiences? Suggestions? Ideas?
  • http://forums.macnn.com/79/developer-center/81949/how-to-realize-syntax-highlighting-cocoa/
  • http://www.cocoabuilder.com/archive/message/cocoa/2004/8/24/115460
  • http://parsekit.com/okudakit/

这篇关于Cocoa应用程序的语法着色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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