Class AbstractMarkupTokenMaker
java.lang.Object
org.fife.ui.rsyntaxtextarea.TokenMakerBase
org.fife.ui.rsyntaxtextarea.AbstractJFlexTokenMaker
org.fife.ui.rsyntaxtextarea.modes.AbstractMarkupTokenMaker
- All Implemented Interfaces:
TokenMaker
- Direct Known Subclasses:
BBCodeTokenMaker, HandlebarsTokenMaker, HTMLTokenMaker, JSPTokenMaker, MarkdownTokenMaker, MxmlTokenMaker, PHPTokenMaker, XMLTokenMaker
Base class for token makers for markup languages.
- Version:
- 1.0
-
Field Summary
Fields inherited from class AbstractJFlexTokenMaker
offsetShift, s, startFields inherited from class TokenMakerBase
currentToken, firstToken, previousToken -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanReturns whether markup close tags should be completed.String[]getLineCommentStartAndEnd(int languageIndex) Returns the text to place at the beginning and end of a line to "comment" it in this programming language.final booleanOverridden to returntrue.Methods inherited from class AbstractJFlexTokenMaker
yybegin, yybegin, yyclose, yytextMethods inherited from class TokenMakerBase
addNullToken, addToken, addToken, addToken, createOccurrenceMarker, getClosestStandardTokenTypeForInternalType, getCurlyBracesDenoteCodeBlocks, getInsertBreakAction, getLanguageIndex, getLastTokenTypeOnLine, getMarkOccurrencesOfTokenType, getNoTokensIdentifiedYet, getOccurrenceMarker, getShouldIndentNextLineAfter, isIdentifierChar, resetTokenList, setLanguageIndexMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TokenMaker
getTokenList
-
Constructor Details
-
AbstractMarkupTokenMaker
public AbstractMarkupTokenMaker()
-
-
Method Details
-
getCompleteCloseTags
public abstract boolean getCompleteCloseTags()Returns whether markup close tags should be completed.- Returns:
- Whether closing markup tags are to be completed.
-
getLineCommentStartAndEnd
Description copied from interface:TokenMakerReturns the text to place at the beginning and end of a line to "comment" it in this programming language.- Specified by:
getLineCommentStartAndEndin interfaceTokenMaker- Overrides:
getLineCommentStartAndEndin classTokenMakerBase- Parameters:
languageIndex- The language index at the offset in question. Since someTokenMakers effectively have nested languages (such as JavaScript in HTML), this parameter tells theTokenMakerwhat sub-language to look at.- Returns:
- The start and end strings to add to a line to "comment"
it out. A
nullvalue for either means there is no string to add for that part. A value ofnullfor the array means this language does not support commenting/uncommenting lines.
-
isMarkupLanguage
public final boolean isMarkupLanguage()Overridden to returntrue.- Specified by:
isMarkupLanguagein interfaceTokenMaker- Overrides:
isMarkupLanguagein classTokenMakerBase- Returns:
truealways.
-