0.0
No commit activity in last 3 years
No release in over 3 years
Syntax-on is a library/cli/website for highlighting source by automating vim
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project 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