Skip to content

Instantly share code, notes, and snippets.

@tknv
Created February 24, 2015 16:30
Show Gist options
  • Save tknv/68a6969bf9ac05cdaa99 to your computer and use it in GitHub Desktop.
Save tknv/68a6969bf9ac05cdaa99 to your computer and use it in GitHub Desktop.
Add openssl.cnf syntax highlight
@@ -11,6 +11,7 @@ def self.highlight(str, lang)
lang = 'objc' if lang == 'm'
lang = 'perl' if lang == 'pl'
lang = 'yaml' if lang == 'yml'
+ lang = 'openssl' if lang == 'cnf'
str = pygments(str, lang).match(/<pre>(.+)<\/pre>/m)[1].to_s.gsub(/ *$/, '') #strip out divs <div class="highlight">
tableize_code(str, lang)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment