class Rugments::Lexers::HTML

Public Class Methods

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