|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cburch.editor.SyntaxHighlighter
public class SyntaxHighlighter
Handles coloring tokens according to their corresponding styles. For this to work, a scanner must be associated with the editor.
| Constructor Summary | |
|---|---|
SyntaxHighlighter(Editor editor)
Constructs a SyntaxHighlighter for the given editor. |
|
| Method Summary | |
|---|---|
boolean |
isEnabled()
Returns true if syntax highlighting is enabled. |
void |
setEnabled(boolean value)
Changes the enable/disable status of this syntax highlighter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SyntaxHighlighter(Editor editor)
editor - the editor whose contents we are to highlight.| Method Detail |
|---|
public boolean isEnabled()
true if syntax highlighting is enabled.
true if this highlighter is enabled,
false otherwise.public void setEnabled(boolean value)
value - true to enable the highlighter,
false to disable.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||