lib/rouge/cli.rb in rouge-0.2.5 vs lib/rouge/cli.rb in rouge-0.2.6
- old
+ new
@@ -62,9 +62,10 @@
puts Rouge.highlight(source, lexer, formatter)
end
desc 'style THEME', 'render THEME as css'
+ option :scope, :desc => "a css selector to scope the styles to"
def style(theme_name='thankful_eyes')
theme = Theme.find(theme_name)
raise "unknown theme: #{theme_name}" unless theme
puts theme.new(options).render