Class: Rouge::Formatters::HTMLDebug
- Inherits:
-
HTML
- Object
- Rouge::Formatter
- HTML
- Rouge::Formatters::HTMLDebug
- Defined in:
- lib/rouge/formatters/html_debug.rb
Constant Summary
Constants inherited from HTML
Rouge::Formatters::HTML::ESCAPE_REGEX, Rouge::Formatters::HTML::TABLE_FOR_ESCAPE_HTML
Constants inherited from Rouge::Formatter
Instance Method Summary collapse
Methods inherited from HTML
assert_html_formatter!, #span, #stream
Methods inherited from Rouge::Formatter
disable_escape!, enable_escape!, #escape?, escape_enabled?, #filter_escapes, find, format, #format, #initialize, #render, #stream, tag, with_escape
Constructor Details
This class inherits a constructor from Rouge::Formatter
Instance Method Details
#safe_span(tok, safe_val) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/rouge/formatters/html_debug.rb', line 6 def safe_span(tok, safe_val) safer_val = safe_val.gsub('"', '"') title = "#{tok.qualname}(#{safer_val})" shortname = tok.shortname %(<span title="#{title}" class="#{shortname}">#{safe_val}</span>) end |