No commit activity in last 3 years
No release in over 3 years
A simple (!) extension to the syntax gem, that allows you to highlight vim syntax.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme

What is this?

A simple (!) extension to the syntax gem, that allows you to highlight vim syntax.

How do I use it?

First:

gem install karottenreibe-vim-syntax --source http://gems.github.com

Then:

require 'vim-syntax'
require 'syntax/convertors/html'

convertor = Syntax::Convertors::HTML.for_syntax "vim"
puts convertor.convert( "let mapleader=','" )

What are the classes of the html elements it produces?

  • comment
  • string
  • key
  • number
  • punct
  • command
  • word
  • whitespace