Save/Save As/Save All
The Save action saves the file currently opened in the editor. Depending on the type of the file, it will perform a different action. For example, a different number of files may be saved if a form is built by two files (.php, .xml.php) compared to a templated form is made up of three files (.php, .xml.php, .html).
If the file has no name, Save will perform a Save As action, which always prompts for a new file name.
Save All saves all pending changes for all the files/projects in the IDE.
For forms/templated forms, depending on the encoding for the unit code, a special action is taken when saving:
If not in UTF-8:
- When saving a form, properties of components inside the form can contain non-valid XML chars, so properties are filtered to replace these chars by their corresponding entities
- Also, if chars are >=128 and <=159, their &# entity is generated
- Chars < are replaced by <
Also, after value modification, is enclosed in a CDATA section, so the parsing is performed correctly.
If a file that is going to be saved, contain Unicode chars and it's not in UTF-8 mode, a dialog will prompt before save, allowing the user to select UTF-8 format to prevent losing characters.