コード例 #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());
 }
コード例 #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());
 }