lib/snibbets.rb in snibbets-2.0.13 vs lib/snibbets.rb in snibbets-2.0.14
- old
+ new
@@ -251,11 +251,11 @@
snippets.each do |snip|
header = File.basename(filepath, '.md')
warn header
warn '-' * header.length
code = snip['code']
- code = highlight(code, filepath) if Snibbets.options[:highlight]
+ code = Highlight.highlight(code, filepath) if Snibbets.options[:highlight]
print(code)
end
end
elsif snippets.length > 1
if Snibbets.options[:all]
@@ -298,10 +298,10 @@
else
header = "#{File.basename(filepath, '.md')}: #{answer['title']}"
warn header
warn '-' * header.length
code = answer['code']
- code = highlight(code, filepath) if Snibbets.options[:highlight]
+ code = Highlight.highlight(code, filepath) if Snibbets.options[:highlight]
print(code)
end
end
end
end