class Rouge::Lexers::HTML
Public Class Methods
detect?(text)
click to toggle 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