The indent.auto part of the SciTEDoc.html page states that "The properties file settings apply to newly opened files but remain constant once the file is open unless changed using the Change Indentation Settings dialog." Unfortunately, some settings may not remain constant if a language is applied to the buffer after the file is open.
When you use the Language menu to apply a language to a buffer containing an already opened file, the indent size will get changed to the tab size if the indent.auto property was set, and the use.tabs & indent.size properties were not set.
This can result in an indent size that is different than the originally determined indent size, if the tab size is different than the original indent size. This will occur even if no changes have been made to the buffer contents since the file was opened.
SciTE does not appear to check the indent.auto property or call DiscoverIndentSettings() when a language is applied to a buffer. Instead it calls SetIndentSettings(), which in this case causes the indent size to be changed to the tab size because the indent.size property is not set.
Log in to post a comment.