Another objc_util example (yes, I'm really excited about this module)...
This one's really just for fun because I wanted to see if I could make it work at all. As the previous MapView example, this is also a custom view class, but of a completely different kind... It uses Pythonista's own code editor, syntax highlighter, and extended keyboard classes, and wraps them in a convenient ui.View package.

Here's the code:
It supports Python, HTML, JavaScript, and Markdown for syntax highlighting (there's also a 'text' mode that doesn't highlight anything). The type of extended keyboard is chosen automatically, and it can also be disabled entirely. Things like the "Highlight All" menu item, and automatic character pairs are supported as well.
I've mentioned it in the comments, but it's worth pointing out again: Do not rely on this for anything important. It's quite likely to break in the future, but it's fun to play around with. :)


