Open Source Objective-C Syntax Highlighter?

Can someone point me towards a project / framework / tutorial, preferably in Objective-C (or C / C ++, I think) that will demonstrate / handle syntax highlighting? I would like this to work with the contents of a UITextView (iPhone / iPad), and I would like it to support minimal PHP, but preferably also Javascript / CSS / HTML, etc. I had absolutely no luck googling, everything seems to be blog plugins, etc., for displaying color content on your site in <pre>. I don't need a syntax check, just a coloring.

Thank!

+3
source share
3 answers

TexShop (http://pages.uoregon.edu/koch/texshop/) Smultron (http://smultron.sourceforge.net/)

+2

, , " ".

Objective-C Mac Enscript - eps, HTML ( ). , HTML ​​:

enscript -E --color --language=html --toc -pfile.html *.h *.m

, Objective-C, , UIWebView... , , , , UIAttributedStrings, , .

+2

Here's the VIM plugin for Cocoa / Objective-C - it can help!

http://www.vim.org/scripts/script.php?script_id=2674

Note:

People should not support downvoting - This is not in the compiled code or in the format you want - I KNOW that - I simply declare that here is a short rule file that describes the color highlighting ypu want for the desired language!

0
source

Source: https://habr.com/ru/post/1777127/


All Articles