class Rouge::Lexers::HTML
Public Class Methods
Source
# File lib/rouge/lexers/html.rb, line 12 def self.detect?(text) return true if text.doctype?(/\bhtml\b/i) return false if text =~ /\A<\?xml\b/ return true if text =~ /<\s*html\b/ end
# File lib/rouge/lexers/html.rb, line 12 def self.detect?(text) return true if text.doctype?(/\bhtml\b/i) return false if text =~ /\A<\?xml\b/ return true if text =~ /<\s*html\b/ end