Esempio n. 1
0
        public Tidy()
        {
            _options = new TidyOptions();

            AttributeTable at = AttributeTable.DefaultAttributeTable;

            if (at == null)
            {
                return;
            }

            TagTable tt = new TagTable();

            if (tt == null)
            {
                return;
            }

            tt.Options  = _options;
            _options.tt = tt;

            EntityTable et = EntityTable.DefaultEntityTable;

            if (et == null)
            {
                return;
            }
        }
Esempio n. 2
0
 internal TidyMessage(string filename, int line, int column, string message, MessageLevel level, TidyOptions options)
 {
     _filename = filename;
     _line = line;
     _column = column;
     _message = message;
     _level = level;
 }
Esempio n. 3
0
 public PPrint(TidyOptions options)
 {
     _options = options;
 }
Esempio n. 4
0
        public Tidy()
        {
            _options = new TidyOptions();

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

            TagTable tt = new TagTable();
            if (tt == null)
            {
                return;
            }

            tt.Options = _options;
            _options.tt = tt;

            EntityTable et = EntityTable.DefaultEntityTable;
            if (et == null)
            {
                return;
            }
        }
		public Lexer(StreamIn input, TidyOptions options)
		{
			this.input = input;
			this.lines = 1;
			this.columns = 1;
			this.state = LEX_CONTENT;
			this.badAccess = 0;
			this.badLayout = 0;
			this.badChars = 0;
			this.badForm = 0;
			this.waswhite = false;
			this.pushed = false;
			this.insertspace = false;
			this.exiled = false;
			this.isvoyager = false;
			this.versions = HtmlVersion.Everything;
			this.doctype = HtmlVersion.Unknown;
			this.badDoctype = false;
			this.txtstart = 0;
			this.txtend = 0;
			this.token = null;
			this.lexbuf = null;
			this.lexlength = 0;
			this.lexsize = 0;
			this.inode = null;
			this.insert = - 1;
			this.istack = new Stack();
			this.istackbase = 0;
			this.styles = null;
			this.Options = options;
			this.seenBodyEndTag = 0;
			this.nodeList = new ArrayList();
		}
Esempio n. 6
0
 internal TidyMessage(string filename, int line, int column, string message, MessageLevel level, TidyOptions options)
 {
     _filename = filename;
     _line     = line;
     _column   = column;
     _message  = message;
     _level    = level;
 }