Merge pull request #139 from wok/master
Add support for HTML (Rails) and Ruby on Rails grammar
This commit is contained in:
commit
ba7d9ce799
|
@ -176,7 +176,7 @@ module.exports =
|
||||||
beautifyHTML ?= require("js-beautify").html
|
beautifyHTML ?= require("js-beautify").html
|
||||||
text = beautifyHTML(text, self.getOptions("html", allOptions))
|
text = beautifyHTML(text, self.getOptions("html", allOptions))
|
||||||
beautifyCompleted text
|
beautifyCompleted text
|
||||||
when "HTML (Ruby - ERB)"
|
when "HTML (Ruby - ERB)", "HTML (Rails)"
|
||||||
beautifyHTMLERB ?= require("./langs/html-erb-beautify")
|
beautifyHTMLERB ?= require("./langs/html-erb-beautify")
|
||||||
beautifyHTMLERB text, self.getOptions("html", allOptions), beautifyCompleted
|
beautifyHTMLERB text, self.getOptions("html", allOptions), beautifyCompleted
|
||||||
when "CSS"
|
when "CSS"
|
||||||
|
@ -198,7 +198,7 @@ module.exports =
|
||||||
when "Python"
|
when "Python"
|
||||||
beautifyPython ?= require("./langs/python-beautify")
|
beautifyPython ?= require("./langs/python-beautify")
|
||||||
beautifyPython text, self.getOptions("python", allOptions), beautifyCompleted
|
beautifyPython text, self.getOptions("python", allOptions), beautifyCompleted
|
||||||
when "Ruby"
|
when "Ruby", "Ruby on Rails"
|
||||||
beautifyRuby ?= require("./langs/ruby-beautify")
|
beautifyRuby ?= require("./langs/ruby-beautify")
|
||||||
beautifyRuby text, self.getOptions("ruby", allOptions), beautifyCompleted
|
beautifyRuby text, self.getOptions("ruby", allOptions), beautifyCompleted
|
||||||
when "GitHub Markdown"
|
when "GitHub Markdown"
|
||||||
|
|
Loading…
Reference in New Issue