Syntax coloring for Cocoa app

后端 未结 5 2082
感情败类
感情败类 2020-12-28 11:24

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

5条回答
  •  旧时难觅i
    2020-12-28 11:54

    An excellent solution is Uli Kusterer's UKSyntaxColoredTextDocument. It is fast and has several built-in syntax parsers. It's easy to add new languages.

    It's free for non-commercial use and very cheap if you want it for a commercial app.

提交回复
热议问题