Created
February 24, 2015 16:30
-
-
Save tknv/68a6969bf9ac05cdaa99 to your computer and use it in GitHub Desktop.
Add openssl.cnf syntax highlight
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -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