applySettings

applySettings(): Integer;

The applySettings method of the JadeTextEdit class searches the application and global settings tables and applies entries that are associated with the current language.

This method returns zero (0) if the settings were successfully applied or it returns a JADE error code if the action was unsuccessful. (For details about the causes and actions of JADE error codes, see the appropriate error code in the JADEMsgs.pdf file.)

The code fragment in the following example shows the use of the applySettings method.

jte.language := JadeTextEdit.SCLEX_CPP;
jte.applySettings();
jte.restyleText();

This example changes the current language to the C/C++ family, applies the appropriate settings (for example, text style and keyword lists), and forces the current text to be restyled for the settings.

See also the Application class getJadeTextEditGlobalSettings, getJadeTextEditOneSetting, and updateJadeTextEditAppSettings methods and the JadeTextEdit class updateAppSettings method.