|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.fife.ui.rsyntaxtextarea.folding.HtmlFoldParser
public class HtmlFoldParser
Fold parser for HTML 5, PHP and JSP. For HTML, we currently don't fold everything possible, just the "big" stuff. For PHP, we only fold the "big" HTML stuff and PHP regions, not code blocks in the actual PHP. For JSP we only fold the "big" HTML stuff and JSP blocks, not anything in the actual Java code.
Field Summary | |
---|---|
static int |
LANGUAGE_HTML
Constant denoting we're folding HTML. |
static int |
LANGUAGE_JSP
Constant denoting we're folding JSP. |
static int |
LANGUAGE_PHP
Constant denoting we're folding PHP. |
Constructor Summary | |
---|---|
HtmlFoldParser(int language)
Constructor. |
Method Summary | |
---|---|
java.util.List<Fold> |
getFolds(RSyntaxTextArea textArea)
Returns a list of all folds in the text area. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int LANGUAGE_HTML
public static final int LANGUAGE_PHP
public static final int LANGUAGE_JSP
Constructor Detail |
---|
public HtmlFoldParser(int language)
language
- The language to fold, such as LANGUAGE_PHP
.Method Detail |
---|
public java.util.List<Fold> getFolds(RSyntaxTextArea textArea)
getFolds
in interface FoldParser
textArea
- The text area whose contents should be analyzed.
null
,
it is treated as if no folds were found.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |