Class: XCPretty::Syntax

Inherits:
Object
  • Object
show all
Defined in:
lib/xcpretty/syntax.rb

Class Method Summary collapse

Class Method Details

.highlight(code, options = "") ⇒ Object



4
5
6
# File 'lib/xcpretty/syntax.rb', line 4

def self.highlight(code, options="")
  pygments_available? ? pygmentize(code, options) : code
end