Ejemplo n.º 1
0
 /**
  * Enables or disables bracket highlighting. When bracket highlighting is enabled, the bracket
  * matching the one before the caret (if any) is highlighted.
  *
  * @param bracketHighlight True if bracket highlighting should be enabled, false otherwise
  */
 public final void setBracketHighlightEnabled(boolean bracketHighlight) {
   this.bracketHighlight = bracketHighlight;
   invalidateLine(textArea.getBracketLine());
 }
Ejemplo n.º 2
0
 /**
  * Sets the bracket highlight color.
  *
  * @param bracketHighlightColor The bracket highlight color
  */
 public final void setBracketHighlightColor(Color bracketHighlightColor) {
   this.bracketHighlightColor = bracketHighlightColor;
   invalidateLine(textArea.getBracketLine());
 }