Syntax highlighting utility (via vim automation)
Ruby CSS Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
spec
themes
.gitignore
COPYING
LICENSE
README
TODO
syntax-on.gemspec

README

== syntax-on

Syntax-on is a library for highlighting source by automating vim

It also has a command line interface and a paste-bin style website http://syntax-on.org

== Gem Usage

  require 'syntax-on'

  # example specifying syntax
  puts SyntaxOn.new("class Dog; end", :syntax => :ruby).to_html

  # example using a modeline
  puts SyntaxOn.new("class Dog; end\n# vim:set ft=ruby:").to_html

== Command Line Usage

  $ syntax-on highlight my-ruby-file.rb

  $ syntax-on highlight --syntax ruby --code "some code to highlight as ruby"

  $ syntax-on highlight --code -s ruby < some-ruby-file-from-STDIN

  $ syntax-on highlight --preview will-preview-in-firefox.rb

  $ syntax-on help highlight  # for more help information

== License

Syntax-on is released under the terms of the GNU General Public License

See COPYING