Reading Source Code on iPad with Vim syntax highlighting

The best way to learn new languages/technologies is to read some good sample source code.

Incidentally there is an abundance of source code, but only so little time. I thought it would be nice to read some on my iPad while I’m on the train. Of course it would be even better if I could have it syntax colored.

Fortunately as I mentioned in my previous post, there is an easy command in Vim to convert any text to html, including the colors.

:TOhtml

does the trick.

So here is what you need to do:

  1.  Get yourself an iPad reader that supports html – I use GoodReader
  2.  Convert the source code you would like to read into html using your Vim editor and save it to a file
  3.  Upload the saved html file to your iPad reader (ideally using something quick and convenient like GoodReader’s WiFi transfer)
Advertisements
  1. Reading Source Code on iPad with Vim syntax highlighting » Lab49 Blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: