I’m trying to have a text box that has syntax highlighting. To avoid the hassel and rework of implementing my own highlighter, is it possible to incorporate and use XCode’s editor? Similar to how QuickLook shows the contents of files.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t.
QuickLook asks a plugin how to render. Xcode’s QuickLook plugin for source files uses Xcode’s own library, which is not open source.
Here are a few open source initiatives that provide syntax highlighting in Cocoa.