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!
TexShop (http://pages.uoregon.edu/koch/texshop/) Smultron (http://smultron.sourceforge.net/)
, , " ".
Objective-C Mac Enscript - eps, HTML ( ). , HTML :
enscript -E --color --language=html --toc -pfile.html *.h *.m
, Objective-C, , UIWebView... , , , , UIAttributedStrings, , .
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!
Source: https://habr.com/ru/post/1777127/More articles:How to find errors in an XML file? - androidhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1777123/extend-webpages-to-fit-a-sticky-footer&usg=ALkJrhjwCbUB7bNFrhA9IVSrEcyUmY7rZgDelete inserts of UITableViewStyleGrouped UITableView? - iphoneHow to stop (not kill) an action to run onRestart ()? - androidReading bytes from a Python string - pythonКакое программное обеспечение полезно при разработке/планировании большого нового личного проекта? - c++rails, given an HTML string from WYSIWYG - how to get only text - ruby-on-railsAdd derived field to Django admin change form - pythonIntel GMA 4500HD & vsync - c ++NoClassDefFoundError occurs at runtime when I use mutliple Java packages in one Android project - androidAll Articles