Parent

Methods

Class/Module Index [+]

Quicksearch

Rouge::Lexers::HTML

Public Class Methods

analyze_text(text) click to toggle source
# File lib/rouge/lexers/html.rb, line 9
def self.analyze_text(text)
  return 1 if text.doctype?(/\bhtml\b/)
  return 1 if text =~ /<\s*html\b/
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.