Today I Learned

hashrocket A Hashrocket project

Code to HTML

The vim 'syntax.txt' plugin includes an awesome command called :TOhtml.

Highlight a range of code in Vim and run the command. Default range is the entire buffer.

You'll get an HTML document based on the code and its highlighting. Write the file and it is ready for a browser, a presentation, or anyplace else.

See More #vim TILs
Every developer at Hashrocket is a Vim expert. Check out our development environment, Dotmatrix, and if you are in Chicago, come to the Vim Chicago Meetup hosted at our Chicago office.