configureFor_Text

configureFor_Text();

The configureFor_Text method of the JadeTextEdit class is an example method that performs basic configuration when preparing the text editor to display plain text. This method clears the text styles and then sets up the text style attributes and keywords for plain text.

The following is an example of the configureFor_Text method that you can call from your applications.

configureFor_Text() updating, clientExecution;
vars
    ii : Integer;
begin
    self.language := SCLEX_TEXT;
    self.clearAllStyles();
    self.setStyleAttributes(STYLE_DEFAULT, self.fontName, 
               self.fontSize.Integer, self.foreColor, self.backColor, 
               self.fontBold.Integer, self.fontItalic.Integer, 
               self.fontUnderline.Integer, ATTRIB_FALSE);
    self.copyDefaultToAllStyles();
    self.changeKeywords(KEYWORDS_TOLANGDEF, 0, "");
    self.restyleText();
end;