public abstract class AbstractMarkupLanguageSupport extends AbstractLanguageSupport
</foo>") when the user types an opening tag
(e.g. "<foo attr='val'>").| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
INSERT_CLOSING_TAG_ACTION |
PROPERTY_LANGUAGE_PARSER| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMarkupLanguageSupport() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAutoAddClosingTags()
Returns whether closing tags should be automatically added when the user
types a (non-self-closing) start tag.
|
protected void |
installKeyboardShortcuts(RSyntaxTextArea textArea)
Installs extra keyboard shortcuts supported by this language support.
|
void |
setAutoAddClosingTags(boolean autoAdd)
Sets whether closing tags should be automatically added when the user
types a (non-self-closing) start tag.
|
protected abstract boolean |
shouldAutoCloseTag(java.lang.String tag)
Subclasses should override this method to return whether a specified
tag should have its closing tag auto-inserted.
|
protected void |
uninstallKeyboardShortcuts(RSyntaxTextArea textArea)
Uninstalls any keyboard shortcuts specific to this language support.
|
createAutoCompletion, createDefaultCompletionCellRenderer, getAutoActivationDelay, getAutoCompletionFor, getDefaultCompletionCellRenderer, getShowDescWindow, getTextAreas, installImpl, isAutoActivationEnabled, isAutoCompleteEnabled, isParameterAssistanceEnabled, setAutoActivationDelay, setAutoActivationEnabled, setAutoCompleteEnabled, setDefaultCompletionCellRenderer, setParameterAssistanceEnabled, setShowDescWindow, uninstallImplclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinstall, uninstallprotected static final java.lang.String INSERT_CLOSING_TAG_ACTION
public boolean getAutoAddClosingTags()
setAutoAddClosingTags(boolean)protected void installKeyboardShortcuts(RSyntaxTextArea textArea)
Subclasses should call this method in their
LanguageSupport.install(RSyntaxTextArea) methods.
textArea - The text area to install the shortcuts into.uninstallKeyboardShortcuts(RSyntaxTextArea)protected abstract boolean shouldAutoCloseTag(java.lang.String tag)
tag - The name of the tag to check.public void setAutoAddClosingTags(boolean autoAdd)
autoAdd - Whether to automatically add closing tags.getAutoAddClosingTags()protected void uninstallKeyboardShortcuts(RSyntaxTextArea textArea)
Subclasses should call this method in their
LanguageSupport.uninstall(RSyntaxTextArea) methods.
textArea - The text area to uninstall the actions from.installKeyboardShortcuts(RSyntaxTextArea)