Control page Control:dialog:Settings:File
The Default encoding specifies default Encoding to be used for new documents, or in cases where detection of encoding of a file being loaded is indecisive (e.g. if loading pure ASCII file, encoding can be both ANSI and UTF-8).
Supported default encodings are:
- Default encoding: ANSI, which depends on the System default code page.
- Default encoding: UTF-8, which can include or exclude
- Default encoding: Unicode, which should always include
- Default encoding: Big Endian, which should always include
The Default encoding: Add BOM (UTF-8 / Unicode) extends some encodings with
Important note: If Open File for further details about encoding auto-detection and available workarounds.
The Default newlines specifies default type of Newlines to be used for new documents, or in cases where detection of newlines of a file being loaded is indecisive (e.g. if loading file with no newlines).
Supported types of default newlines are:
The Default file type specifies, what file extension is to be used by default in the Save As dialog, if no file extension is specified explicitly. This default file extension may not exceed 4 characters.
Tip: The default file extension for plain-text documents is txt, but users may choose to override this with another value. For example, use html, if creating HTML documents more often than plain-text files.
- If no path is specified as Default path, the current working directory is used if it contains files which satisfy Filter strings patterns described below. Otherwise, personal files directory of the current user is used as starting point.
- If absolute path is specified, it is used unmodified in all cases.
- If relative path is specified (e.g. . or \docs), it refers to current working directory. Note: The current working directory is usually the directory which TED Notepad was started from; although shortcuts allow to specify another starting directory for example. Also note that the current working directory no longer changes with every Open and Save As dialog operations as it did in previous versions of TED Notepad. The current working directory stays the same throughout the entire instance session.
Tip: A useful example for portable usage is simple back-slash (\) as Default path, which makes the Open and Save As dialogs start in the root directory of the drive, from which you originally launched the application. This can be used to twist the USB drive around, while moving TED Notepad on the USB drive from one computer to another.
Note: One of the requirements for this to work, is to use correct working directory upon launching TED Notepad from the USB drive. In most typical cases, the system uses the USB drive as the working directory (as expected). However, some file managers and portable launchers may need to be told what working directory to use explicitly. Set them to use the USB drive.
The Filter strings define filters, which are to be used in the Open and Save As dialogs as file filters. These filters appear in a combo-box, usually bellow the file name box. A filter consists of two
To specify multiple filtering patterns for single filter, use semicolon to separate the patterns (e.g. *.txt;*.doc;*.bak). Filtering pattern can be a combination of valid filename characters and an asterisk wildcard character. Do not include spaces in the pattern
Several filters are to be delimited by a Pipe character (|). Therefore Filter strings value should eventually consist of pairs of
Example: Default filters are Text Files (*.txt)|*.txt|All Files|*.*
The Suggest first line as new file name specifies, whether text from the first non-empty line of the document is to be suggested in the Save As dialog as a new file name instead of the default Untitled.
Note: Characters unallowed in file names are automatically converted into dashes.