Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 631 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 631 Bytes

Sublime Syntax Convertor

Converts tmLanguage to sublime-syntax

Install

Add this line to your application's Gemfile:

gem 'sublime_syntax_convertor'

And then execute:

bundle

Or install it yourself as:

gem install sublime_syntax_convertor

USAGE

Command line

sublime_syntax_convertor files
sublime_syntax_convertor folder

In your code

require 'sublime_syntax_convertor'
file = File.read(tmLanguage_file)
convertor = SublimeSyntaxConvertor::Convertor.new(file)
sublime_syntax = convertor.to_yaml

© Copyright 2015 Allen Bargi. See LICENSE for details.