clearAllStyles

clearAllStyles();

The clearAllStyles method of the JadeTextEdit class clears all text style information (for example, font, color, and so on) previously defined for the text editor (for example, when changing the programming language from text to JADE) and resets the text style values to the default values defined by the control properties.

The following actions are performed.

  1. Initializes the default text style (STYLE_DEFAULT).

  2. Sets the default text style attributes to the values of the fontName, fontSize, fontItalic, fontBold, fontUnderline, foreColor, and backColor properties for the control.

  3. Copies the default style to all other styles.

  4. Sets the line number margin style (STYLE_LINENUMBER) foreground color to the light gray RGB value (that is, to #C0C0C0).

  5. Sets brace highlighting style (STYLE_BRACELIGHT) foreground color to the bright blue RGB value (that is, to #0000FF).

  6. Sets the unmatched braces style (STYLE_BRACEBAD) foreground color to the red RGB value (that is, to #FF0000).

  7. Sets the indent guides style(STYLE_INDENTGUIDE) foreground color to the light gray RGB value (that is, to #C0C0C0) and background color to the white RGB value (that is, to #FFFFFF).

For details about setting the individual attributes of a text style, see the setStyleAttributes method.