Started with PHP/HTML Formatter menu => doesn't work right now
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / html / IHTMLConstants.java
diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/html/IHTMLConstants.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/html/IHTMLConstants.java
new file mode 100644 (file)
index 0000000..96cc755
--- /dev/null
@@ -0,0 +1,163 @@
+package net.sourceforge.phpeclipse.phpeditor.html;
+
+
+/**
+ * @author chrisl
+ */
+public interface IHTMLConstants {
+
+       int NONE=0;
+       int TEXT=1;
+       int FOLDER=2;
+       int ANCHOR=3;
+       
+       /** 
+        * Tags that do not allow end tag.
+        * Required that tags that allow optional end tag should always have end tag.
+        */
+       String[] EMPTY_TAGS =
+               new String[] {
+                       "AREA",
+                       "BASE",
+                       "BASEFONT",
+                       "BR",
+                       "COL",
+                       "FRAME",
+                       "HR",
+                       "IMG",
+                       "INPUT",
+                       "ISINDEX",
+                       "LINK",
+                       "META",
+                       "PARAM",
+                       };
+
+       String[] START_TAGS =
+               new String[] {
+                       "A",
+                       "ADDRESS",
+                       "APPLET",
+                       "B",
+                       "BIG",
+                       "BLOCKQUOTE",
+                       "BODY",
+                       "CAPTION",
+                       "CENTER",
+                       "CITE",
+                       "CODE",
+                       "COL",
+                       "COLGROUP",
+                       "DD",
+                       "DFN",
+                       "DIR",
+                       "DIV",
+                       "DL",
+                       "DT",
+                       "EM",
+                       "FONT",
+                       "FORM",
+                       "FRAMESET",
+                       "H1",
+                       "H2",
+                       "H3",
+                       "H4",
+                       "H5",
+                       "H6",
+                       "HEAD",
+                       "HTML",
+                       "I",
+                       "KBD",
+                       "LI",
+                       "MAP",
+                       "MENU",
+                       "NOBR",
+                       "NOFRAMES",
+                       "OBJECT",
+                       "OL",
+                       "OPTION",
+                       "P",
+                       "PRE",
+                       "SAMP",
+                       "SCRIPT",
+                       "SELECT",
+                       "SMALL",
+                       "SPAN",
+                       "STRIKE",
+                       "S",
+                       "STRONG",
+                       "STYLE",
+                       "SUB",
+                       "SUP",
+                       "TABLE",
+                       "TD",
+                       "TEXTAREA",
+                       "TH",
+                       "TITLE",
+                       "TR",
+                       "TT",
+                       "U",
+                       "UL",
+                       "VAR",
+                       };
+
+       /** Line break before and after tag. */
+       String[] BLOCK_TAGS =
+               new String[] {
+                       "A",
+                       "APPLET",
+                       "AREA",
+                       "BASE",
+                       "BASEFONT",
+                       "BLOCKQUOTE",
+                       "BODY",
+                       "BR",
+                       "CAPTION",
+                       "CITE",
+                       "CODE",
+                       "DD",
+                       "DFN",
+                       "DIR",
+                       "DIV",
+                       "DL",
+                       "DT",
+                       "FORM",
+                       "FRAME",
+                       "FRAMESET",
+                       "H1",
+                       "H2",
+                       "H3",
+                       "H4",
+                       "H5",
+                       "H6",
+                       "HEAD",
+                       "HR",
+                       "HTML",
+                       "IMG",
+                       "INPUT",
+                       "ISINDEX",
+                       "LI",
+                       "LINK",
+                       "MAP",
+                       "MENU",
+                       "META",
+                       "NOBR",
+                       "NOFRAMES",
+                       "OBJECT",
+                       "OL",
+                       "OPTION",
+                       "P",
+                       "PARAM",
+                       "PRE",
+                       "SAMP",
+                       "SCRIPT",
+                       "SELECT",
+                       "STRIKE",
+                       "TABLE",
+                       "TD",
+                       "TEXTAREA",
+                       "TH",
+                       "TITLE",
+                       "TR",
+                       "UL",
+                       };
+}