Both sides previous revisionPrevious revisionNext revision | Previous revision |
module:slyedit [2024/02/12 09:43] – [UTF-8 support] nightfox | module:slyedit [2025/02/09 21:31] (current) – [SlyEdit configuration (and configuration file)] New strings settings, with areYouThere Nightfox |
---|
Alternately, you can specify the .js filename extension if you want to: | Alternately, you can specify the .js filename extension if you want to: |
jsexec slyedcfg.js | jsexec slyedcfg.js |
You can also edit the configuration file manually. The configuration file, SlyEdit.cfg (located in the ''[[dir:ctrl]]'' directory), is a regular text file. It is split up into 3 sections - Behavior, Ice colors, and DCT colors. These sections are designated by [BEHAVIOR], [ICE_COLORS], and [DCT_COLORS], respectively. Each setting has a name=value format. Comments can be added on their own line starting with a ; (semicolon) character. The settings for SlyEdit.cfg are described below:\\ | You can also edit the configuration file manually. The configuration file, SlyEdit.cfg (located in the ''[[dir:ctrl]]'' directory), is a regular text file. It has 4 sections - Behavior, Strings, Ice colors, and DCT colors. These sections are designated by [BEHAVIOR], [STRINGS], [ICE_COLORS], and [DCT_COLORS], respectively. Each setting has a name=value format. Comments can be added on their own line starting with a ; (semicolon) character. The settings for SlyEdit.cfg are described below:\\ |
\\ | \\ |
Behavior settings | Behavior settings |
^ Setting ^ Description^ | ^ Setting ^ Description^ |
| displayEndInfoScreen | Whether or not to display the info screen when SlyEdit exits. Valid values are true and false. If this option is not specified, this feature will be enabled by default. | | | displayEndInfoScreen | Whether or not to display the info screen when SlyEdit exits. Valid values are true and false. If this option is not specified, this feature will be enabled by default. | |
| userInputTimeout | Whether or not to use an input timeout for users. Valid values are true and false. Note: The input timeout is not used for sysops. If this option is not specified, this feature will be enabled by default. This option was added in version 1.08. | | |
| inputTimeoutMS | The amount of time (in milliseconds) to use for the input timeout. If this option is not specified, this option will default to 300000. This option was added in version 1.08. | | |
| reWrapQuoteLines | Whether or not to re-wrap quote lines. Valid values are true and false. This feature is enabled by default. With this feature enabled, SlyEdit will re-wrap quote lines to still be complete and readable after the quote prefix character is added to the front of the quote lines. SlyEdit is able to recognize quote lines beginning with > or 2 letters and a > (such as EO>). If this feature is disabled, quote lines will simply be trimmed to make room for the quote prefix character to be added to the front. This option was added in version 1.15, replacing the older option splitLongQuoteLines. | | | reWrapQuoteLines | Whether or not to re-wrap quote lines. Valid values are true and false. This feature is enabled by default. With this feature enabled, SlyEdit will re-wrap quote lines to still be complete and readable after the quote prefix character is added to the front of the quote lines. SlyEdit is able to recognize quote lines beginning with > or 2 letters and a > (such as EO>). If this feature is disabled, quote lines will simply be trimmed to make room for the quote prefix character to be added to the front. This option was added in version 1.15, replacing the older option splitLongQuoteLines. | |
| allowColorSelection | Whether or not to let the user change the text color. This option was added in version 1.80. | | | allowColorSelection | Whether or not to let the user change the text color. This option was added in version 1.80. | |
| allowSpellCheck | Whether or not the spell check feature is allowed. Valid values are true and false; it defaults to true if not specified. You might want to disable spell check if, for instance, the spell check feature causes an "out of memory" error on your system. This option was added in version 1.71. | | | allowSpellCheck | Whether or not the spell check feature is allowed. Valid values are true and false; it defaults to true if not specified. You might want to disable spell check if, for instance, the spell check feature causes an "out of memory" error on your system. This option was added in version 1.71. | |
| dictionaryFilenames | A comma-separated list of filenames for dictionaries, for the spell checker feature. The filenames are in the format dictionary_<language>.txt, where <language> is the language name. For dictionaryFilenames, you can also just specify the language names if you want. The dictionary filenames will be looked for in sbbs/mods, sbbs/ctrl, and then the directory where SlyEdit.js is located. Note that the dictionary files must be sorted for proper word matching, and the words in the dictionary must be all lower-case, since SlyEdit does case-insensitive matching via all lower-cased words. This was added in version 1.64. | | | dictionaryFilenames | A comma-separated list of filenames for dictionaries, for the spell checker feature. The filenames are in the format dictionary_<language>.txt, where <language> is the language name. For dictionaryFilenames, you can also just specify the language names if you want. The dictionary filenames will be looked for in sbbs/mods, sbbs/ctrl, and then the directory where SlyEdit.js is located. Note that the dictionary files must be sorted for proper word matching, and the words in the dictionary must be all lower-case, since SlyEdit does case-insensitive matching via all lower-cased words. This was added in version 1.64. | |
| |
| \\ |
| Strings settings |
| ---------------- |
| ^ Setting ^ Description^ |
| | stringsFilename | The name of the file containing text strings displayed in SlyEdit. The default is SlyEditStrings_En.cfg, which is located in sbbs/ctrl - You can copy this to sbbs/mods and keep a modified copy there if you want. The strings in this file can contain Synchronet attribute codes (prefixed with \x01). | |
| |
\\ | \\ |
^ Setting ^ Description^ | ^ Setting ^ Description^ |
| ThemeFilename | The name of the color theme file to use for DCT-style colors. If no theme file is specified, then default colors will be used. | | | ThemeFilename | The name of the color theme file to use for DCT-style colors. If no theme file is specified, then default colors will be used. | |
| |
| \\ |
| Strings configuration file |
| -------------------------- |
| ^ Setting ^ Description^ |
| | areYouThere | Specifies a string to display for the input timeout warning (like item 668, AreYouThere in text.dat). The reason SlyEdit has its own version of this string is in case you decide to change the one in text.dat; for SlyEdit, it should be a string that can fit on one line on the screen. | |
| |
\\ | \\ |