Handlebars icon indicating copy to clipboard operation
Handlebars copied to clipboard

Convert Handlebars.tmLanguage to Handlebars.sublime-syntax

Open kjmph opened this issue 5 years ago • 2 comments

For some packages that rely on syntax parsing, such as bat, they look for sublime-syntax as opposed to tmLanguage. However, by leveraging SublimeSyntaxConvertor, we can convert Handlebars.tmLanguage to Handlebars.sublime-syntax. Thus, Handlebars can now be syntax highlighted by bat.

kjmph avatar Aug 06 '20 03:08 kjmph

Hey, first of all, thanks a lot for the PR and sorry for the slow reply!

Sounds good to me, but would you mind writing up a paragraph on how to do this conversion? I was looking for a Sublime package, but it might be the Ruby package https://github.com/aziz/SublimeSyntaxConvertor you used? What is the exact command to use?

daaain avatar Aug 20 '20 09:08 daaain

I ran this:

$ gem install --user-install sublime_syntax_convertor
$ ~/.gem/ruby/X.X.X/bin/sublime_syntax_convertor Handlebars.tmLanguage

Replace, X.X.X with your Ruby version.

Does this help?

kjmph avatar Aug 20 '20 13:08 kjmph

Done in https://github.com/daaain/Handlebars/pull/111

daaain avatar Nov 29 '23 00:11 daaain