From 68b1529714f308b7c6b96992344c25726483adcc Mon Sep 17 00:00:00 2001 From: Burke Libbey Date: Tue, 30 Mar 2010 13:57:45 -0500 Subject: [PATCH] Removed warning about pygmentize not being installed. --- lib/rocco.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/rocco.rb b/lib/rocco.rb index 28a5d4d..8407f48 100644 --- a/lib/rocco.rb +++ b/lib/rocco.rb @@ -50,6 +50,13 @@ require 'mustache' # We use `Net::HTTP` to highlight code via require 'net/http' +# Code is run through [Pygments](http://pygments.org/) for syntax +# highlighting. If it's not installed, locally, use a webservice. +# It may be a good idea to warn the user. +# if `which pygmentize` == "" +# puts "Warning: Pygments not found. Using pygments.appspot.com for highlighting" +# end + #### Public Interface # `Rocco.new` takes a source `filename`, an optional list of source filenames @@ -162,7 +169,6 @@ class Rocco code_html = if `which pygmentize` == "" - puts "Warning: pygmentize not installed. Using pygmentize.appspot.com" highlight_webservice(code_stream) elsif highlight_pygmentize(code_stream)