Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a method for getting style information (e.g. CSS).

  • Loading branch information...
commit 2613b07512ca3caa954ac12fc05a4f3406ec0029 1 parent 0316e1d
@nex3 nex3 authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/yard-pygments.rb
View
4 lib/yard-pygments.rb
@@ -23,6 +23,10 @@ def languages
@languages ||= languages!
end
+ def style(style, formatter, options = {})
+ execute(["-S", style, "-f", formatter] + convert_options(options))
+ end
+
def highlight(source, lexer, formatter, options = {})
execute(["-l", lexer, "-f", formatter] + convert_options(options), source)
end
Please sign in to comment.
Something went wrong with that request. Please try again.