class_docstr: A lexer for DTDs (Document Type Definitions).
  
  .. versionadded:: 1.5
class_docstr_tok: ["A","lexer","for","DTDs","(","Document","Type","Definitions",")",".","..","versionadded",":",":","1.5"]
code: def analyse_text(text):
      if not looks_like_xml(text) and (
          "<!ELEMENT" in text
          or "<!ATTLIST" in text
          or "<!ENTITY" in text
      ):
          return 0.8
  
imports: import re
  from pygments.lexer import RegexLexer, ExtendedRegexLexer, include, bygroups, default, using
  from pygments.token import Text, Comment, Operator, Keyword, Name, String, Punctuation
  from pygments.util import looks_like_xml, html_doctype_matches
  from pygments.lexers.javascript import JavascriptLexer
  from pygments.lexers.jvm import ScalaLexer
  from pygments.lexers.css import CssLexer, _indentation, _starts_block
  from pygments.lexers.ruby import RubyLexer
label_desc: Use image node_id 1 for calling the DtdLexer obj's underlying member method code with example usage: obj.analyse_text(text) and returns: int