setNamedAttribute

setNamedAttribute(attName: String;
                  value:   Any);

The setNamedAttribute method of the JadeTextEdit class sets the named attribute specified in the attName parameter to the value specified in the value parameter.

The JADE text editor supports the following named attributes.

The method in the following example shows the use of the setNamedAttribute method.

mnuEditSetAutoindent_click(menuItem: MenuItem input) updating;
begin
    menuItem.checked := not menuItem.checked;
    jteSource.setNamedAttribute("automatic.indenting", menuItem.checked);
end;