Skip to content

pointlessone/syntax-on

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

== 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

About

vim-based syntax highlighting library, command line tool, and paste-bin website source

Resources

License

MIT, GPL-3.0 licenses found

Licenses found

MIT
LICENSE
GPL-3.0
COPYING

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors