Tidy options. (c) 1998-2000 (W3C) MIT, INRIA, Keio University See Tidy.cs for the copyright notice. Derived from HTML Tidy Release 4 Aug 2000
Esempio n. 1
0
 internal TidyMessage(string filename, int line, int column, string message, MessageLevel level,
                      TidyOptions options)
 {
     Options   = options;
     _filename = filename;
     _line     = line;
     _column   = column;
     _message  = message;
     _level    = level;
 }
Esempio n. 2
0
 internal TidyMessage(string filename, int line, int column, string message, MessageLevel level,
                      TidyOptions options)
 {
     Options = options;
     _filename = filename;
     _line = line;
     _column = column;
     _message = message;
     _level = level;
 }
Esempio n. 3
0
        public HtmlTidy()
        {
            _options = new TidyOptions();

            AttributeTable at = AttributeTable.DefaultAttributeTable;

            if (at == null)
            {
                return;
            }

            var tt = new TagCollection {
                Options = _options
            };

            _options.TagTable = tt;
        }
Esempio n. 4
0
 public PPrint(TidyOptions options)
 {
     _options = options;
 }
Esempio n. 5
0
 public Lexer(StreamIn input, TidyOptions options)
 {
     Input = input;
     Lines = 1;
     Columns = 1;
     State = LEX_CONTENT;
     BadAccess = 0;
     BadLayout = 0;
     BadChars = 0;
     BadForm = 0;
     Waswhite = false;
     Pushed = false;
     Insertspace = false;
     Exiled = false;
     Isvoyager = false;
     Versions = HtmlVersion.Everything;
     Doctype = HtmlVersion.Unknown;
     BadDoctype = false;
     Txtstart = 0;
     Txtend = 0;
     Token = null;
     Lexbuf = null;
     Lexlength = 0;
     Lexsize = 0;
     Inode = null;
     Insert = - 1;
     Istack = new Stack<InlineStack>();
     Istackbase = 0;
     Styles = null;
     Options = options;
     SeenBodyEndTag = 0;
     _nodeList = new List<Node>();
 }
Esempio n. 6
0
        public HtmlTidy()
        {
            _options = new TidyOptions();

            AttributeTable at = AttributeTable.DefaultAttributeTable;
            if (at == null)
                return;

            var tt = new TagCollection {Options = _options};
            _options.TagTable = tt;
        }