Created
February 4, 2022 02:52
-
-
Save vividtone/a1fd9478ebf56f4a1ac557e29c8b01b3 to your computer and use it in GitHub Desktop.
Generate code highliging supported languages list of Redmine
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
bin/rails r 'Rouge::Lexer.all.sort_by(&:tag).each {|lexer| desc = String.new("#{lexer.desc}"); desc << " [aliases: #{lexer.aliases.join(%q|,|)}]" if lexer.aliases.any? ; puts "<tr>\n <td>#{lexer.tag}</td>\n <td>#{CGI.escapeHTML(desc)}</td>\n</tr>"}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment