|
SciTE |
Text editing in SciTE works similarly to most Macintosh or Windows editors with the added feature of automatic syntax styling. SciTE can hold multiple files in memory at one time but only one file will be visible. SciTE's initial configuration only allows one file to be in memory at once but this can be modified by changing the value of the buffers property. Rectangular regions of text can be selected in SciTE by holding down the Alt key on Windows or the Ctrl key on GTK+ while dragging the mouse over the text.
There are two panes in SciTE, the editing pane and the output pane. The output pane is located either to the right of the editing pane or below it. Initially it is of zero size, but it can be made larger by dragging the divider between it and the editing pane. The Options | Vertical Split command can be used to move the output pane beneath the editing pane.
SciTE can perform commands to compile or run source files with the output from these commands directed into the output pane.
For example, if Python is installed on the machine, open a new document, type:
print "Hi"
as that document's text.
Save the document as printhi.py.
print
"hi"
Perform the Tools | Go command.
>python -u printhi.py
hi
>Exit code: 0
The first blue line is from SciTE showing the command it will use to run the program. The black
line is the output from running the Python program. The last blue line is from SciTE showing
that the program has finished and displaying its exit code. An exit code of zero indicates a
successful run. SciTE partially understands the error messages produced by Python, GCC, Visual C++, Borland C++, PHP and other tools which use the same format as one of these. To see this, add a mistake to the Python file by adding a second line to make the file:
print
"hi"
mistake
Perform the Tools | Go command. The results should look like:
>python -u printhi.py hi Traceback (innermost last): File "printhi.py", line 2, in ? mistake NameError: mistake >Exit code: 1
While it is easy to see where the problem is in this simple case, when a file is larger the Tools | Next Message command can be used to view each of the reported errors. Upon performing Tools | Next Message, the first error message in the output pane is highlighted with a yellow background, and an error indicator is displayed for the appropriate line in the editing pane. The caret is moved to this line and the pane is scrolled if needed to show the line. SciTE now looks like this:
SciTE understands both the file name and line number parts of error messages in most cases so can open another file (such as a header file) if errors were caused by that file. This feature may not work where the file name is complicated by containing spaces or ".."
If command execution has failed and is taking too long to complete then the Tools | Stop Executing command can be used.
On Windows, SciTE defaults to executing tools as command line programs. Executing a GUI program in this mode results in that program being run without displaying a window. The command.subsystem option can be used to define tools that run in GUI mode. The default subsystem, 0, is for command line programs, 1 is for programs which create their own windows, and 2 is for using the ShellExecute call. ShellExecute is a good way to open HTML files and similar as it handles this similarly to a user opening the file from the shell. 3 is for calling an internal extension or director extension, 4 is for calling the Windows specific HtmlHelp program and 5 is for calling the Windows specific WinHelp function. On GTK+, the default subsystem 0 executes the tool and waits for it to finish, redirecting output to the output pane and subsystem 2 executes the tool in the background.
Command line arguments to SciTE include file names, commands and properties. Commands and properties are preceded by "-" and are differentiated by the use in commands of ':' as the first character that is not '.' or alphabetic. Properties use the syntax used in property set files and override any properties set in property files. If there is no value given for a property, it is set to 1. Double quotes may be placed around arguments that contain spaces but they must be placed around the whole argument, not just around a file name, so "-open:x y.txt" works but -open:"x y.txt" doesn't. On Linux, the standard shell quoting is available. The "-p" argument causes SciTE to print the file and then exit.
For Windows:
The command line arguments "-" and "--" (without the quotes) are special in that they read the
stdin stream into the last buffer ("-"), or the output pane ("--"))
The command line argument "-@" (without the quotes) is special in that file names are read from stdin
and opened.
Note: when reading stdin into the output pane, when the property split.vertical is 0, the
output pane is increased to its maximum height. When the property split.vertical is 1, the output pane is
increased to approximately half of the screen width.
Note: If stdin is not redirected, these arguments are effectively ignored.
For example,
SciTE "-font.base=font:MS Gothic,size:11" -save.recent ScintillaGTK.cxx
starts SciTE, opens ScintillaGTK.cxx, loads the recent file list, and uses
11 point MS Gothic as the base font.
A group of properties can be saved as a property set file (with the extension
".properties") and the import command used on the command line:
SciTE "-import c:\os\web_work" SciTEDoc.html
| Command | Argument |
|---|---|
| close: | |
| cwd: | change working directory |
| find: | search text |
| goto: | line number[,column number] |
| open: | file name |
| quit: | |
| replaceall: | search text\000replacement text |
| saveas: | file name |
| Escape Sequence | Meaning |
|---|---|
| \\ | backslash |
| \a | bell |
| \b | backspace |
| \f | form feed |
| \n | new line |
| \r | carriage return |
| \t | tab |
| \v | vertical tab |
| \<ooo> | octal number specified by 1, 2, or 3 digits |
| \x<hh> | hexadecimal number specified by 2 digits |
SciTE -open:/big/icon.txt
SciTE "-open:C:\\Program Files\\SciTE\\SciTEDoc.html" -goto:123
Command line arguments are evaluated left to right in two phases because opening files requires the user interface to be available and there is also a need to set some user interface properties before the user interface is displayed. The first phase process arguments until just before the first file name would be opened. The second phase processes the remaining arguments.
So, if you need to perform e.g. a find: or a goto: command on a file, you must put the command after the filename, to allow SciTE to open the file before performing the command.
For Windows:
If any simple file name on the command line matches a directory name, the file open dialog appears - this is dependant upon the property
"open.dialog.in.file.directory"
If the property "buffers" is greater than one and the file name matches either a existing file or by means of a wildcard search, one or more files, the
matching files are loaded up to the property "buffers" count. Directories are not considered a match in this case
If the file name is an extension, optionally preceded by a path, and no such simple file name exists, the file open dialog appears, with the given extension as
the filter.
If the file name contains no extension, the property "source.default.extensions" is used to provide default extensions to attempt to match the file name to an
existing file.
SciTE may be configured to use between 1 and 100 buffers each containing a file. The default is 1 and this effectively turns off buffers. With more than one buffer, the Buffers menu can be used to switch between buffers, either by selecting the file name or using the Previous (F6) and Next (Shift+F6) commands. Setting more than 10 buffers may cause problems as some menus are fixed in length and thus files beyond that length may not be accessible.
When all the buffers contain files, then opening a new file causes a buffer to be reused which may require a file to be saved. In this case an alert is displayed to ensure the user wants the file saved.
A session is a list of file names. You can save a complete set of your currently opened buffers as a session for fast batch-loading in the future. Sessions are stored as plain text files with the extension ".ses".
Use File | Load Session and File | Save Session to load/save sessions. You can turn on/off "last session autoloading" using SciTE properties variable "save.session".
If "buffers" variable is set to "0" session management is turned off.
Loading previously saved session will close your currently opened buffers. However you will not loose your edits, because you will be asked to save unsaved buffers first.
Opening a specific file from command line overrides "save.session" variable state. When you start SciTE loading a specific file from command line last session will not restore even if "save.session" variable is set to "1". This makes "save.session" safe to use - you will never open a couple of files when you are trying to open just one, specific file.
SciTE currently is able to syntax style these languages (* denotes support for folding):
Running and building commands for some of these languages have been set up but should be checked as they will have to be modified to work for many people.
To keep menus to a reasonable length some languages are included but have been commented out in global options. These should be enabled by removing the comment character '#'.
Language settings are determined from the file extension but this can be changed by selecting another language from the Language menu. The language menu can be changed with the menu.language property.
SciTE has options to allow searching for words, regular expressions, matching case, in the reverse direction, wrapping around the end of the document. C style backslash escapes which are listed in the command line arguments section, may be used to search and replace control characters. Replacements can be made individually, over the current selection or over the whole file. When regular expressions are used tagged subexpressions can be used in the replacement text. Regular expressions will not match across a line end.
SciTE supports basic regular expressions with tagging.
SciTE uses the default key bindings defined in Scintilla, so keyboard commands in SciTE mostly follow common Windows and GTK+ conventions. All move keys (arrows, page up/down, home and end) allows to extend or reduce the stream selection when holding the Shift key, and the rectangular selection when holding the Shift and Alt keys. Some keys may not be available with some national keyboards or because they are taken by the system such as by a window manager on GTK+. The user.shortcuts setting may be used to assign a key to a function. Note that Home key behaviour is changed by the vc.home.key option. Keyboard equivalents of menu commands are listed in the menus. Some less common commands with no menu equivalent are:
| Magnify text size. | Ctrl+Keypad+ |
| Reduce text size. | Ctrl+Keypad- |
| Restore text size to normal. | Ctrl+Keypad/ |
| Cycle through recent files. | Ctrl+Tab |
| Indent block. | Tab |
| Dedent block. | Shift+Tab |
| Delete to start of word. | Ctrl+BackSpace |
| Delete to end of word. | Ctrl+Delete |
| Delete to start of line. | Ctrl+Shift+BackSpace |
| Delete to end of line. | Ctrl+Shift+Delete |
| Go to start of document. | Ctrl+Home |
| Extend selection to start of document. | Ctrl+Shift+Home |
| Go to start of display line. | Alt+Home |
| Extend selection to start of display line. | Alt+Shift+Home |
| Go to end of document. | Ctrl+End |
| Extend selection to end of document. | Ctrl+Shift+End |
| Go to end of display line. | Alt+End |
| Extend selection to end of display line. | Alt+Shift+End |
| Expand or contract a fold point. | Ctrl+Keypad* |
| Create or delete a bookmark. | Ctrl+F2 |
| Go to next bookmark. | F2 |
| Select to next bookmark. | Alt+F2 |
| Find selection. | Ctrl+F3 |
| Find selection backwards. | Ctrl+Shift+F3 |
| Scroll up. | Ctrl+Up |
| Scroll down. | Ctrl+Down |
| Line cut. | Ctrl+L |
| Line copy. | Ctrl+Shift+T |
| Line delete. | Ctrl+Shift+L |
| Line transpose with previous. | Ctrl+T |
| Selection duplicate. | Ctrl+D |
| Find matching preprocessor conditional, skipping nested ones. | Ctrl+K |
| Select to matching preprocessor conditional. | Ctrl+Shift+K |
| Find matching preprocessor conditional backwards, skipping nested ones. | Ctrl+J |
| Select to matching preprocessor conditional backwards. | Ctrl+Shift+J |
| Previous paragraph. Shift extends selection. | Ctrl+[ |
| Next paragraph. Shift extends selection. | Ctrl+] |
| Previous word. Shift extends selection. | Ctrl+Left |
| Next word. Shift extends selection. | Ctrl+Right |
| Previous word part. Shift extends selection | Ctrl+/ |
| Next word part. Shift extends selection. | Ctrl+\ |
To use an abbreviation, type it and use the Expand Abbreviation command or the Ctrl+B key. The abbreviation is replaced by an expansion defined in the Abbreviations file. You can open the Abbreviations file with a command in the Options menu and add abbreviations. There is a default abbreviations file but a different abbreviations file can be set for particular file extensions.
Each line in the files looks like "abbreviation=expansion".
The abbreviations names can have any character (except perhaps control chars,
surely for CR and LF), including high Ascii chars (accented chars).
Names have properties files limits: they cannot start with sharp (#) or space or tab
(but can have spaces inside); and they cannot have '=' character inside.
Abbreviations names are limited to 32 characters. It is probably enough for
abbreviations...
An expansion may contain new line characters indicated by '\n' and
a caret position indicated by the '|' character. To include a literal '|'
character, use '||'.
Some simple examples are included in the distributed Abbreviations file.
When expanding, the names don't need to be separated from the previous text.
Ie. if you define 'é' as 'é', you can expand it inside a word.
If a name is the ending of another one, only the shorter will ever be expanded.
Ie. if you define 'ring' and 'gathering', the later will see only the 'ring' part expanded.
SciTE supports folding for many languages (see the list of languages understood by SciTE for more information.) Fold points are based upon indentation for Python and on counting braces for the other languages. The fold point markers can be clicked to expand and contract folds. Ctrl+Shift+Click in the fold margin will expand or contract all the top level folds. Ctrl+Click on a fold point to toggle it and perform the same operation on all children. Shift+Click on a fold point to show all children.
Much of SciTE's behaviour can be changed by editing the properties files.
There are three properties files used:
Settings in the local properties file override those in the user properties file which override those in the global properties files. Environment variables are also available as properties and these are overridden by an explicit setting in one of the properties files.
The user properties file is intended for customisation by the user, leaving the global properties file to contain the default options distributed with SciTE. The main use of the local properties files is to change the effects of the Compile, Build and Go commands for the files in a directory. For example, I use the javac compiler from the Java Development Kit for most work, so SciTEGlobal.properties sets the command for compiling .java files to "javac". If I want to use the jvc compiler for the files in one directory, then the SciTE.properties file in that directory contains an entry setting the command to "jvc".
On Windows, the global properties file is located in the directory of the executable. The user properties file is looked for in the user profile directory as set in the USERPROFILE environment variable, or in the directory of the executable if USERPROFILE is not set. For GTK+ the user properties file is found in the user's home directory and the global properties in a directory set at build time - normally /usr/share/scite. If the "SciTE_HOME" environment variable is set on either Windows or GTK+ then it is where both the global and user properties files are found.
There are commands in the Options menu for opening each of the properties files.
The files are in approximately the same format as Java properties files which have a simple text format. Lines that start with '#' or that are completely blank are comments. Other lines are of the form
variable=value
For long values, a '\' character at the end of the line continues that value on the next
line. Space characters are significant so x =1 defines a variable called
"x ".
Values may include the values of other variables by using $(variablename). There are
some variables set by the environment to access the name of the current file as well:
| Name | Meaning |
|---|---|
| FilePath | full path of the current file |
| FileDir | directory of the current file without a trailing slash |
| FileName | base name of the current file |
| FileExt | extension of the current file |
| FileNameExt | $(FileName).$(FileExt) |
| SessionPath | full path of the current session |
| CurrentSelection | value of the currently selected text |
| CurrentWord | value of word which the caret is within or near |
| Replacements | number of replacements made by last Replace command |
| SelectionStartColumn | column where selection starts |
| SelectionStartLine | line where selection starts |
| SelectionEndColumn | column where selection ends |
| SelectionEndLine | line where selection ends |
| CurrentMessage | most recently selected output pane message |
| SciteDefaultHome | directory in which the Global Options file is found |
| SciteUserHome | directory in which the User Options file is found |
Some features use file name patterns to see which variable to use. For example, the lexer
variable can be specialised for a particular file, or a group of files based upon wildcard
matching so:
lexer.makefile=makefile indicates that the lexer called "makefile" should be used on
files called "makefile".
lexer.*.cxx=cpp indicates that the lexer called "cpp" should be used on files with a
"cxx" extension.
Variable substitution is available on the left hand side of file pattern assignments and
look like this:
file.patterns.html=*.html;*.htm;*.asp;*.shtml
command.go.$(file.patterns.html)=file://$(FilePath)
The 'import' statement includes a properties file as if the text were inline at that point. The imported properties file must be in the same directory as the current file and a properties extension is assumed. Therefore a "import Lua" statement in c:\os\scite\bin\SciTEGlobal.properties will import c:\os\scite\bin\Lua.properties.
The 'if' statement takes one argument which is a symbol that may be defined earlier in this property set file or in a base property set. If the symbol evaluates to '0' then the test fails. An empty string or not present symbol evaluates to 0. Into the very top property set is inserted one of 'PLAT_GTK' with value '1' or 'PLAT_WIN' with value '1'. If the test succeeds then following indented statements are executed. When a non-indented statement is found the if clause is finished. Only simple set statements are allowed in if clauses. The evaluation of if statements occurs at read time, not at evaluation time.
SciTE has 4 properties $(1) .. $(4) which can be used to run commands with changeable parameters. To set the parameter values, use the View | Parameters command to view the modeless Parameters dialog which shows the current values of these parameters and allows setting new values. The accelerator keys for the main window remain active while this dialog is displayed, so it can be used to rapidly run a command several times with different parameters. Alternatively, a command can be made to display the modal Parameters dialog when executed by starting the command with a '*' which is otherwise ignored. If the modeless Parameters dialog is already visible, then the '*' is ignored.
SciTE will automatically detect the encoding scheme used for Unicode files that start with a Byte Order Mark (BOM). The UTF-8 and UCS-2 encodings are recognized including both Little Endian and Big Endian variants of UCS-2.
UTF-8 files will also be recognised when they contain a coding cookie on one of the
first two lines. A coding cookie looks similar to "coding: utf-8" ("coding" followed by ':'
or '=', optional whitespace, optional quote, "utf-8") and is normally contained in
a comment:
# -*- coding: utf-8 -*-
For XML there is a declaration:
<?xml version='1.0' encoding='utf-8'?>
For other encodings set the code.page and character.set properties.
Some properties are only available on Windows or GTK+.
|
position.left position.top position.width position.height |
Set the initial window size and position. If these are omitted then the environment's defaults are used. If the width or height are -1 then the window is maximised. |
| position.tile | If there is another copy of SciTE open, set the initial window position to be with the left side at position.left + position.width so that most of the time you can see both copies at once without overlap. Works nicely if position.left set to 0 and position.width set to half of the screen width. |
| buffers |
Set to a number between 1 and 100 to configure that many buffers.
Values outside this range are clamped to be within the range.
The default is 1 which turns off UI features concerned with buffers. This value is read only once, early in the startup process and only from the global properties files. So after changing it, restart SciTE to see the effect. |
| buffers.zorder.switching | This setting chooses the ordering of buffer switching when Ctrl+Tab pressed. Set to 1, the buffers are selected in the order of their previous selection otherwise they are chosen based on the buffer number. |
|
are.you.sure are.you.sure.for.build |
The classic GUI question. Normally, when SciTE is about to close a file which has unsaved
edits it asks this annoying question. To turn off the question, set are.you.sure to 0 and
files will be automatically saved without bothering the user. To abandon edits to a file
use the New command. New always asks "Are you sure?" giving an opportunity to not save
the file. When running or building a file, its most likely that you want the file to be saved first. To enable a confirmation dialog for performing Compile, Build or Go commands, set are.you.sure.for.build=1. |
| save.all.for.build | SciTE normally saves the current buffer when performing a Compile, Build, or Go command. To save all buffers set save.all.for.build=1 |
|
view.whitespace view.indentation.whitespace |
Setting view.whitespace to 1 makes SciTE start up with whitespace visible. Setting view.indentation.whitespace to 0 hides visible whitespace inside indentation. |
|
whitespace.fore whitespace.back |
Sets the colours used for displaying all visible whitespace, overriding any styling applied by the lexer. |
| view.indentation.guides highlight.indentation.guides |
Setting view.indentation.guides to 1 displays dotted vertical lines within indentation white
space every indent.size columns. Setting highlight.indentation.guides to 1 highlights the indentation guide associated with a brace when that brace is highlighted. |
| view.eol | Setting this to 1 makes SciTE display the characters that make up line ends. This looks similar to (CR), (LF), or (CR)(LF). This is useful when using files created on another operating system with software that is picky about line ends. |
| eol.mode |
The default EOL mode (characters that make up line ends)
depends on your platform.
You can overwrite this behaviour by setting the property to
LF for UNIX format CR for Macintosh format CRLF for DOS/Windows formatAs you see, Windows combines the best of the other worlds ;-) |
| eol.auto | This setting overrides the eol.mode value and chooses the end of line character sequence based on the current contents of the file when it is opened. The line ending used the most in the file is chosen. |
|
blank.margin.left blank.margin.right |
There is a blank margin on both sides of the text. It is drawn in the background colour of default text. This defaults to one pixel for both left and right sides but may be altered with these settings. |
| margin.width | Setting this to a number makes SciTE display a selection margin to the left of the text. The value is the number of pixels wide the selection margin should be. Line markers are displayed in the selection margin area. |
|
fold.margin.colour fold.margin.highlight.colour |
These two properties defined the fold margin colour and fold
margin highlight colour. If they are not defined (left commented out) the colours for the
fold margin will default to a reasonable pair of colours.
On Windows, the system colours are used to make the fold margin appear like the background
of scroll bars. As an example, with fold.margin.colour=#FF0000 and
fold.margin.highlight.colour=#0000FF, the fold margin is a mixture of red
and blue.
|
| full.screen.hides.menu | Setting this to 1 hides the menu bar when the Full Screen command is used on Windows. On GTK+ the menu is always visible. |
| minimize.to.tray | Setting this to 1 minimizes SciTE to the system tray rather than to the task bar. |
|
line.margin.visible line.margin.width |
SciTE is able to display a column of line numbers to the left of the selection
margin. Setting line.margin.visible to 1 makes this column visible at startup.
The line.margin.width property controls how much space is reserved for the line
numbers, in terms of the number of digits that can be displayed. To specify that
the margin should expand if needed to accomodate larger line numbers, add a '+'
after the number of digits, e.g. line.margin.width=3+.These properties replace the old line.numbers property, which
was overloaded to perform both of the actions described above. The
line.numbers property is no longer available.
|
|
tabbar.visible tabbar.hide.one |
Setting tabbar.visible to 1 makes the tab bar visible at start up on Windows. The buffers property must be set to a value greater than 1 for this option to work. Setting tabbar.hide.one to 1 hides the tab bar until there is more than one tab. Works on Windows and GTK+ 2.x but not GTK+ 1.x. |
| tabbar.multiline | Setting tabbar.multiline uses multiple lines for the tab bar |
| toolbar.visible | Setting this to 1 makes the tool bar visible at start up. |
| toolbar.detachable | Setting this to 1 makes the tool bar detachable from the main window. |
| toolbar.usestockicons | SciTE has a built-in icon set for the toolbar, setting this to 1 makes SciTE more integrated in the GNOME desktop by using the icons provided by the current theme used in GNOME. |
| menubar.detachable | Setting this to 1 makes the menu bar detachable from the main window. |
| undo.redo.lazy | Setting this to 1 changes the technique used to determine when to enable or disable tool bar buttons to be less accurate. This may improve performance on slow machines. |
| statusbar.visible | Setting this to 1 makes the status bar visible at start up. |
|
statusbar.number statusbar.text.number |
The statusbar.text.1 option defines the information displayed in the status bar
by default on all platforms.
Property values may be used in this text using the $() syntax.
Commonly used properties are: ReadOnly, EOLMode, BufferLength,
NbOfLines (in buffer), SelLength (chars), SelHeight (lines).
Extra properties defined for the status bar are LineNumber, ColumnNumber, and
OverType which is either "OVR" or "INS" depending on the overtype status.
You can also use file properties, which, unlike those above, are not updated
on each keystroke: FileName or FileNameExt, FileDate and FileTime and
FileAttr. Plus CurrentDate and CurrentTime. On Windows only, further texts may be set as statusbar.text.2 .. and these may be cycled between by clicking the status bar. The statusbar.number option defines how many texts are to be cycled through. |
| use.palette | Setting this to 1 makes SciTE use a palette to enable it to display more colours on 8 bit displays. Without this option SciTE will only display with colours already available which is normally the 20 colour Windows system palette. The downside of turning on this option is that there will be some flashing as windows are activated. This option has no effect on GTK+ where a palette is always used. |
| buffered.draw | Setting this to 0 rather than the default 1 makes SciTE draw output directly to the screen rather than into a buffer bitmap first and then to the screen. Buffered drawing flickers less but is slower. |
| two.phase.draw | Two phase drawing is a better but slower way of drawing text. In single phase drawing each run of characters in one style is drawn along with its background. If a character overhangs the end of a run, such as in "V_" where the "V" is in a different style from the "_", then this can cause the right hand side of the "V" to be overdrawn by the background of the "_" which cuts it off. Two phase drawing fixes this by drawing all the backgrounds first and then drawing the text in transparent mode. Two phase drawing may flicker more than single phase unless buffered drawing is on. The default is for drawing to be two phase. |
|
load.on.activate save.on.deactivate |
The load.on.activate property causes SciTE to check whether the current file has been
updated by another process whenever it is activated. This is useful when another editor
such as a WYSIWYG HTML editor, is being used in conjunction with SciTE. The save.on.deactivate property causes SciTE to save the file whenever the SciTE application loses focus. This is useful when developing web pages and you want to often check the appearance of the page in a browser. |
| are.you.sure.on.reload | When both this and load.on.activate are set to 1, SciTE will ask if you really want to reload the modified file, giving you the chance to keep the file as it is. By default this property is disabled, causing SciTE to reload the file without bothering you. |
| reload.preserves.undo | When set to 1, reloading a file does not delete all the undo history. This is useful when load.on.activate is used in conjunction with filter commands. |
| check.if.already.open | This option allows opening files in an existing instance of SciTE rather than always opening a new instance. When this option is set and SciTE is started, it checks to see if there are any other instances of SciTE open. If there is, another instance is asked to open the file and become active and the new instance exits. On Windows, the instance with the Options | Open Files Here menu item checked opens the file. On GTK+, an arbitrary instance opens the file. |
| read.only | When this option is set then opened documents are initially read only. New files are not affected by this setting. |
| quit.on.close.last | If this option is set, SciTE will close when its last buffer has been closed, e.g. with File/Close. (By default, if this option is not set, SciTE will remain open and will create a new blank document when its last buffer is closed.) |
|
selection.fore selection.back selection.alpha |
Sets the colours used for displaying selected text. If one of these is not set then that attribute is not changed for the selection. The default is to show the selection by changing the background to light grey and leaving the foreground the same as when it was not selected. The translucency of the selection is set with selection.alpha. |
| caret.fore | Sets the colour used for the caret. |
|
caret.line.back caret.line.back.alpha |
Sets the background colour and translucency used for line containing the caret. Translucency ranges from 0 for completely transparent to 255 for opaque with 256 being opaque and not using translucent drawing code which may be slower. |
| caret.period | Sets the rate at which the caret blinks. The value is the time in milliseconds that the caret is visible before it is switched to invisible. It then stays invisible for the same period before appearing again. A value of 0 stops the caret from blinking. |
| caret.width | Sets the width of the caret in pixels. Only values of 1, 2, or 3 work. |
|
caret.policy.xslop caret.policy.width caret.policy.xstrict caret.policy.xeven caret.policy.xjumps caret.policy.yslop caret.policy.lines caret.policy.ystrict caret.policy.yeven caret.policy.yjumps |
If slop is set, we can define a slop value: width for xslop, lines for yslop. If strict is set, the policy is enforced... strictly. If jumps is set, the display is moved more energetically
so the caret can move in the same direction longer before the policy is applied again. If even is not set, instead of having symmetrical UZs,
the left and bottom UZs are extended up to right and top UZs respectively. See the table below to see how these settings interact. |
|
visible.policy.strict visible.policy.slop visible.policy.lines |
Determines how the display area is determined after a Go to command or equivalent such as a Find or Next Message. Options are similar to caret.policy.*. |
|
edge.mode edge.column edge.colour |
Indicates long lines. The default edge.mode, 0, does not indicate long lines. An edge.mode of 1 uses a vertical line to indicate the specified column and an edge.mode of 2 changes the background colour of characters beyond that column. For proportional fonts, an edge.mode of 2 is more useful than 1. |
| control.char.symbol | Sets the character to use to indicate control characters. If not set, control characters are shown as mnemonics. |
|
error.marker.fore error.marker.back |
The colours used to indicate error and warning lines in both the edit and output panes are set with these two values. If there is a margin on a pane then a symbol is displayed in the margin to indicate the error message for the output pane or the line causing the error message for the edit pane. The error.marker.back is used as the fill colour of the symbol and the error.marker.fore as the outline colour. If there is no margin then the background to the line is set to the error.marker.back colour. |
|
bookmark.fore bookmark.back bookmark.alpha |
The colours used to display bookmarks in the margin. If bookmark.fore is not set then a blue sphere is used. When the margin is turned off, bookmarks are shown by a change in the background colour of the line with the translucency set with bookmark.alpha. |
| find.mark | If set, then the Mark All command in the Find dialog will draw translucent boxes over each string found. |
| error.select.line | When a command execution produces error messages, and you step with F4 key through the matching source lines, this option selects the line where the error occurs. Most useful if the error message contains the column of error too as the selection will start at the column of the error. The error message must contain the column and must be understood by SciTE (currently only supported for HTML Tidy). The tab size assumed by the external tool must match the tab size of your source file for correct column reporting. |
| openpath.filepattern | Defines a path for the Open Selected Filename command in the File
menu. The path is searched if the selected filename doesn't contain an
absolute path or the file is not found in the document directory. The
directories in openpath are separated by ';' on Windows and ':' on GTK+. An openpath setting may look like: openpath.*.txt=c:\dos\;f:\;
|
| open.suffix.filepattern | Defines a suffix to add to the selected file name for the
Open Selected Filename command in the File menu.
This is used in languages where the suffix is not given when accessing a file.
An example is python where "import xlib" will most often mean to import from
a file called "xlib.py". An open.suffix setting may look like: open.suffix.*.py=.py
|
| strip.trailing.spaces | Strips trailing white spaces from the file while saving. |
| ensure.final.line.end | Ensures file ends with a line end when saved. |
| ensure.consistent.line.ends | Ensures all lines end with the current Line End Characters setting when saved. |
| abbreviations.filepattern |
Loads an abbreviations file for a particular language overriding the default abbreviations file.
For example,
abbreviations.*.c=$(SciteUserHome)/c_abbrev.properties |
| api.filepattern |
Loads a set of API files for a particular language.
If there is more than one API file then the file names are separated by ';'.
API files contain a sorted list of
identifiers and function prototypes, one per line. The "Complete Symbol" command
looks at the characters before the caret and displayed the subset of the API file
starting with that string. When an opening brace is typed, the file is searched for the
text preceding the caret and if a function prototype is found then it is displayed as a
calltip.
For example, the setting
api.*.c=w.apicould be used with a w.api file containing
fclose(FILE* fileClose)to provide autocompletion and calltips for some of the C file functions. It is best to use the full path to the API file as otherwise the current directory is used. See the Creating API files section for ways to create API files. |
| autocomplete.choose.single | When set to 1 and an autocompletion list is invoked and there is only one element in that list then that element is automatically chosen. This means that the matched element is inserted and the list is not displayed. |
|
autocomplete.lexer.ignorecase autocomplete.*.ignorecase |
When set to 1 the API file is searched in a case insensitive way to find elements for autocompletion lists. Otherwise matches only occur if case also matches. The * form is used if there is no lexer specific setting. |
|
autocomplete.lexer.start.characters autocomplete.*.start.characters |
If this setting is not empty, typing any of the characters will cause autocompletion to start. For example, if autocomplete.python.start.characters=. and the API file for Python contains "string.rjust" and "string.replace" then typing "string." will cause the autocompletion to display both identifiers. The * form is used if there is no lexer specific setting. |
|
autocomplete.lexer.fillups autocomplete.*.fillups |
If this setting is not empty, typing any of the characters will cause autocompletion to complete. For example, if autocomplete.python.fillups=( and the API file for Python contains "string.replace" then typing "string.r(" will cause "string.replace(" to be inserted. The * form is used if there is no lexer specific setting. |
| autocompleteword.automatic | If this setting is 1 then when typing a word, if only one word in the document starts with that string then an autocompletion list is displayed with that word so it can be chosen by pressing Tab. |
|
calltip.lexer.ignorecase calltip.*.ignorecase |
When set to 1 the API file is searched in a case insensitive way to find the function which will have its signature displayed as a calltip. The * form is use if there is no lexer specific setting. |
|
calltip.lexer.word.characters calltip.*.word.characters |
To determine the identifier to look up for calltips, a search is performed allowing the characters in this set to be included in the identifier. While the same setting can be used as for word.characters, sometimes additional characters may be allowed. For example, in Python, '.' is not normally considered part of a word when selecting text, but it is good to allow "string.replace" to show a calltip so calltip.python.word.characters=._$(chars.alpha) would be a reasonable setting. The * form is used if there is no lexer specific setting. |
|
calltip.lexer.parameters.start calltip.lexer.parameters.end calltip.lexer.parameters.separators calltip.*.parameters.start calltip.*.parameters.end calltip.*.parameters.separators |
Allows you to specify characters which start, end and separate parameters. For most common languages, it's usually left brace for start, right brace for end and comma or semicolon for separator. E.g. CSS has colon for start, space for separator and nothing for end. You can specify more characters for each property. The * form is used if there is no lexer specific setting. |
|
calltip.lexer.end.definition calltip.*.end.definition |
API files may contain explanatory text after each function definition. To display the explanation on a second line, set this property to the character used at the end of the definition part. For most languages, this is ')'. The * form is used if there is no lexer specific setting. |
| xml.auto.close.tags | For XML and HTML, setting this property to 1 will automatically insert the corresponding end tag when '>' is typed to end a start tag. Type "<td>" and the result will be "<td></td>" with the caret placed between the tags. |
| html.tags.case.sensitive | For XML and HTML, setting this property to 1 will make tags match in a case sensitive way which is the expected behaviour for XML and XHTML. |
| asp.default.language | Script in ASP code is initially assumed to be in JavaScript. To change this to VBScript set asp.default.language to 2. Python is 3. |
| lexer.cpp.allow.dollars | Set to 0 to disallow the '$' character in identifiers with the cpp lexer. |
| sql.backslash.escapes | Enables backslash as an escape character in SQL. |
| styling.within.preprocessor | For C++ code, determines whether all preprocessor code is styled in the preprocessor style (0, the default) or only from the initial # to the end of the command word(1). |
| tab.timmy.whinge.level |
For Python code, checks whether indenting is consistent. The default, 0 turns off
indentation checking, 1 checks whether each line is potentially inconsistent with the
previous line, 2 checks whether any space characters occur before a tab character
in the indentation, 3 checks whether any spaces are in the indentation, and 4 checks
for any tab characters in the indentation. 1 is a good level to use. |
| user.shortcuts | Define keys that perform commands. This is a '|' delimited list of keys and the commands they produce. The commands are either string or numeric IDs. Numeric IDs above 2000 are Scintilla commands and are sent to the focussed pane. Named IDs and numeric IDs below 2000 are SciTE menu commands which can be found in from scite/src/SciTE.h. The modifiers are Ctrl, Shift, and Alt and the named keys are Ldefble for the same period before appearing again. A value of 0 stops the caret from blinking. |
| caret.width | Sets the width of the caret in pixels. Only values of 1, 2, or 3 work. |
|
caret.policy.xslop caret.policy.width caret.policy.xstrict caret.policy.xeven caret.policy.xjumps caret.policy.yslop caret.policy.lines caret.policy.ystrict caret.policy.yeven caret.policy.yjumps |
If slop is set, we can define a slop value: width for xslop, lines for yslop. If strict is set, the policy is enforced... strictly. If jumps is set, the display is moved more energetically
so the caret can move in the same direction longer before the policy is applied again. If even is not set, instead of having symmetrical UZs,
the left and bottom UZs are extended up to right and top UZs respectively. See the table below to see how these settings interact. |
|
visible.policy.strict visible.policy.slop visible.policy.lines |
Determines how the display area is determined after a Go to command or equivalent such as a Find or Next Message. Options are similar to caret.policy.*. |
|
edge.mode edge.column edge.colour |
Indicates long lines. The default edge.mode, 0, does not indicate long lines. An edge.mode of 1 uses a vertical line to indicate the specified column and an edge.mode of 2 changes the background colour of characters beyond that column. For proportional fonts, an edge.mode of 2 is more useful than 1. |
| control.char.symbol | Sets the character to use to indicate control characters. If not set, control characters are shown as mnemonics. |
|
error.marker.fore error.marker.back |
The colours used to indicate error and warning lines in both the edit and output panes are set with these two values. If there is a margin on a pane then a symbol is displayed in the margin to indicate the error message for the output pane or the line causing the error message for the edit pane. The error.marker.back is used as the fill colour of the symbol and the error.marker.fore as the outline colour. If there is no margin then the background to the line is set to the error.marker.back colour. |
|
bookmark.fore bookmark.back bookmark.alpha |
The colours used to display bookmarks in the margin. If bookmark.fore is not set then a blue sphere is used. When the margin is turned off, bookmarks are shown by a change in the background colour of the line with the translucency set with bookmark.alpha. |
| find.mark | If set, then the Mark All command in the Find dialog will draw translucent boxes over each string found. |
| error.select.line | When a command execution produces error messages, and you step with F4 key through the matching source lines, this option selects the line where the error occurs. Most useful if the error message contains the column of error too as the selection will start at the column of the error. The error message must contain the column and must be understood by SciTE (currently only supported for HTML Tidy). The tab size assumed by the external tool must match the tab size of your source file for correct column reporting. |
| openpath.filepattern | Defines a path for the Open Selected Filename command in the File
menu. The path is searched if the selected filename doesn't contain an
absolute path or the file is not found in the document directory. The
directories in openpath are separated by ';' on Windows and ':' on GTK+. An openpath setting may look like: openpath.*.txt=c:\dos\;f:\;
|
| open.suffix.filepattern | Defines a suffix to add to the selected file name for the
Open Selected Filename command in the File menu.
This is used in languages where the suffix is not given when accessing a file.
An example is python where "import xlib" will most often mean to import from
a file called "xlib.py". An open.suffix setting may look like: open.suffix.*.py=.py
|
| strip.trailing.spaces | Strips trailing white spaces from the file while saving. |
| ensure.final.line.end | Ensures file ends with a line end when saved. |
| ensure.consistent.line.ends | Ensures all lines end with the current Line End Characters setting when saved. |
| abbreviations.filepattern |
Loads an abbreviations file for a particular language overriding the default abbreviations file.
For example,
abbreviations.*.c=$(SciteUserHome)/c_abbrev.properties |
| api.filepattern |
Loads a set of API files for a particular language.
If there is more than one API file then the file names are separated by ';'.
API files contain a sorted list of
identifiers and function prototypes, one per line. The "Complete Symbol" command
looks at the characters before the caret and displayed the subset of the API file
starting with that string. When an opening brace is typed, the file is searched for the
text preceding the caret and if a function prototype is found then it is displayed as a
calltip.
For example, the setting
api.*.c=w.apicould be used with a w.api file containing
fclose(FILE* fileClose)to provide autocompletion and calltips for some of the C file functions. It is best to use the full path to the API file as otherwise the current directory is used. See the Creating API files section for ways to create API files. |
| autocomplete.choose.single | When set to 1 and an autocompletion list is invoked and there is only one element in that list then that element is automatically chosen. This means that the matched element is inserted and the list is not displayed. |
|
autocomplete.lexer.ignorecase autocomplete.*.ignorecase |
When set to 1 the API file is searched in a case insensitive way to find elements for autocompletion lists. Otherwise matches only occur if case also matches. The * form is used if there is no lexer specific setting. |
|
autocomplete.lexer.start.characters autocomplete.*.start.characters |
If this setting is not empty, typing any of the characters will cause autocompletion to start. For example, if autocomplete.python.start.characters=. and the API file for Python contains "string.rjust" and "string.replace" then typing "string." will cause the autocompletion to display both identifiers. The * form is used if there is no lexer specific setting. |
|
autocomplete.lexer.fillups autocomplete.*.fillups |
If this setting is not empty, typing any of the characters will cause autocompletion to complete. For example, if autocomplete.python.fillups=( and the API file for Python contains "string.replace" then typing "string.r(" will cause "string.replace(" to be inserted. The * form is used if there is no lexer specific setting. |
| autocompleteword.automatic | If this setting is 1 then when typing a word, if only one word in the document starts with that string then an autocompletion list is displayed with that word so it can be chosen by pressing Tab. |
|
calltip.lexer.ignorecase calltip.*.ignorecase |
When set to 1 the API file is searched in a case insensitive way to find the function which will have its signature displayed as a calltip. The * form is use if there is no lexer specific setting. |
|
calltip.lexer.word.characters calltip.*.word.characters |
To determine the identifier to look up for calltips, a search is performed allowing the characters in this set to be included in the identifier. While the same setting can be used as for word.characters, sometimes additional characters may be allowed. For example, in Python, '.' is not normally considered part of a word when selecting text, but it is good to allow "string.replace" to show a calltip so calltip.python.word.characters=._$(chars.alpha) would be a reasonable setting. The * form is used if there is no lexer specific setting. |
|
calltip.lexer.parameters.start calltip.lexer.parameters.end calltip.lexer.parameters.separators calltip.*.parameters.start calltip.*.parameters.end calltip.*.parameters.separators |
Allows you to specify characters which start, end and separate parameters. For most common languages, it's usually left brace for start, right brace for end and comma or semicolon for separator. E.g. CSS has colon for start, space for separator and nothing for end. You can specify more characters for each property. The * form is used if there is no lexer specific setting. |
|
calltip.lexer.end.definition calltip.*.end.definition |
API files may contain explanatory text after each function definition. To display the explanation on a second line, set this property to the character used at the end of the definition part. For most languages, this is ')'. The * form is used if there is no lexer specific setting. |
| xml.auto.close.tags | For XML and HTML, setting this property to 1 will automatically insert the corresponding end tag when '>' is typed to end a start tag. Type "<td>" and the result will be "<td></td>" with the caret placed between the tags. |
| html.tags.case.sensitive | For XML and HTML, setting this property to 1 will make tags match in a case sensitive way which is the expected behaviour for XML and XHTML. |
| asp.default.language | Script in ASP code is initially assumed to be in JavaScript. To change this to VBScript set asp.default.language to 2. Python is 3. |
| lexer.cpp.allow.dollars | Set to 0 to disallow the '$' character in identifiers with the cpp lexer. |
| sql.backslash.escapes | Enables backslash as an escape character in SQL. |
| styling.within.preprocessor | For C++ code, determines whether all preprocessor code is styled in the preprocessor style (0, the default) or only from the initial # to the end of the command word(1). |
| tab.timmy.whinge.level |
For Python code, checks whether indenting is consistent. The default, 0 turns off
indentation checking, 1 checks whether each line is potentially inconsistent with the
previous line, 2 checks whether any space characters occur before a tab character
in the indentation, 3 checks whether any spaces are in the indentation, and 4 checks
for any tab characters in the indentation. 1 is a good level to use. |
| user.shortcuts | Define keys that perform commands. This is a '|' delimited list of keys and the commands they produce. The commands are either string or numeric IDs. Numeric IDs above 2000 are Scintilla commands and are sent to the focussed pane. Named IDs and numeric IDs below 2000 are SciTE menu commands which can be found in from scite/src/SciTE.h. The modifiers are Ctrl, Shift, and Alt and the named keys are Ldefble for the same period before appearing again. A value of 0 stops the caret from blinking. |
| caret.width | Sets the width of the caret in pixels. Only values of 1, 2, or 3 work. |
|
caret.policy.xslop caret.policy.width caret.policy.xstrict caret.policy.xeven caret.policy.xjumps caret.policy.yslop caret.policy.lines caret.policy.ystrict caret.policy.yeven caret.policy.yjumps |
If slop is set, we can define a slop value: width for xslop, lines for yslop. If strict is set, the policy is enforced... strictly. If jumps is set, the display is moved more energetically
so the caret can move in the same direction longer before the policy is applied again. If even is not set, instead of having symmetrical UZs,
the left and bottom UZs are extended up to right and top UZs respectively. See the table below to see how these settings interact. |
|
visible.policy.strict visible.policy.slop visible.policy.lines |
Determines how the display area is determined after a Go to command or equivalent such as a Find or Next Message. Options are similar to caret.policy.*. |
|
edge.mode edge.column edge.colour |
Indicates long lines. The default edge.mode, 0, does not indicate long lines. An edge.mode of 1 uses a vertical line to indicate the specified column and an edge.mode of 2 changes the background colour of characters beyond that column. For proportional fonts, an edge.mode of 2 is more useful than 1. |
| control.char.symbol | Sets the character to use to indicate control characters. If not set, control characters are shown as mnemonics. |
|
error.marker.fore error.marker.back |
The colours used to indicate error and warning lines in both the edit and output panes are set with these two values. If there is a margin on a pane then a symbol is displayed in the margin to indicate the error message for the output pane or the line causing the error message for the edit pane. The error.marker.back is used as the fill colour of the symbol and the error.marker.fore as the outline colour. If there is no margin then the background to the line is set to the error.marker.back colour. |
|
bookmark.fore bookmark.back bookmark.alpha |
The colours used to display bookmarks in the margin. If bookmark.fore is not set then a blue sphere is used. When the margin is turned off, bookmarks are shown by a change in the background colour of the line with the translucency set with bookmark.alpha. |
| find.mark | If set, then the Mark All command in the Find dialog will draw translucent boxes over each string found. |
| error.select.line | When a command execution produces error messages, and you step with F4 key through the matching source lines, this option selects the line where the error occurs. Most useful if the error message contains the column of error too as the selection will start at the column of the error. The error message must contain the column and must be understood by SciTE (currently only supported for HTML Tidy). The tab size assumed by the external tool must match the tab size of your source file for correct column reporting. |
| openpath.filepattern | Defines a path for the Open Selected Filename command in the File
menu. The path is searched if the selected filename doesn't contain an
absolute path or the file is not found in the document directory. The
directories in openpath are separated by ';' on Windows and ':' on GTK+. An openpath setting may look like: openpath.*.txt=c:\dos\;f:\;
|
| open.suffix.filepattern | Defines a suffix to add to the selected file name for the
Open Selected Filename command in the File menu.
This is used in languages where the suffix is not given when accessing a file.
An example is python where "import xlib" will most often mean to import from
a file called "xlib.py". An open.suffix setting may look like: open.suffix.*.py=.py
|
| strip.trailing.spaces | Strips trailing white spaces from the file while saving. |
| ensure.final.line.end | Ensures file ends with a line end when saved. |
| ensure.consistent.line.ends | Ensures all lines end with the current Line End Characters setting when saved. |
| abbreviations.filepattern |
Loads an abbreviations file for a particular language overriding the default abbreviations file.
For example,
abbreviations.*.c=$(SciteUserHome)/c_abbrev.properties |
| api.filepattern |
Loads a set of API files for a particular language.
If there is more than one API file then the file names are separated by ';'.
API files contain a sorted list of
identifiers and function prototypes, one per line. The "Complete Symbol" command
looks at the characters before the caret and displayed the subset of the API file
starting with that string. When an opening brace is typed, the file is searched for the
text preceding the caret and if a function prototype is found then it is displayed as a
calltip.
For example, the setting
api.*.c=w.apicould be used with a w.api file containing
fclose(FILE* fileClose)to provide autocompletion and calltips for some of the C file functions. It is best to use the full path to the API file as otherwise the current directory is used. See the Creating API files section for ways to create API files. |
| autocomplete.choose.single | When set to 1 and an autocompletion list is invoked and there is only one element in that list then that element is automatically chosen. This means that the matched element is inserted and the list is not displayed. |
|
autocomplete.lexer.ignorecase autocomplete.*.ignorecase |
When set to 1 the API file is searched in a case insensitive way to find elements for autocompletion lists. Otherwise matches only occur if case also matches. The * form is used if there is no lexer specific setting. |
|
autocomplete.lexer.start.characters autocomplete.*.start.characters |
If this setting is not empty, typing any of the characters will cause autocompletion to start. For example, if autocomplete.python.start.characters=. and the API file for Python contains "string.rjust" and "string.replace" then typing "string." will cause the autocompletion to display both identifiers. The * form is used if there is no lexer specific setting. |
|
autocomplete.lexer.fillups autocomplete.*.fillups |
If this setting is not empty, typing any of the characters will cause autocompletion to complete. For example, if autocomplete.python.fillups=( and the API file for Python contains "string.replace" then typing "string.r(" will cause "string.replace(" to be inserted. The * form is used if there is no lexer specific setting. |
| autocompleteword.automatic | If this setting is 1 then when typing a word, if only one word in the document starts with that string then an autocompletion list is displayed with that word so it can be chosen by pressing Tab. |
|
calltip.lexer.ignorecase calltip.*.ignorecase |
When set to 1 the API file is searched in a case insensitive way to find the function which will have its signature displayed as a calltip. The * form is use if there is no lexer specific setting. |
|
calltip.lexer.word.characters calltip.*.word.characters |
To determine the identifier to look up for calltips, a search is performed allowing the characters in this set to be included in the identifier. While the same setting can be used as for word.characters, sometimes additional characters may be allowed. For example, in Python, '.' is not normally considered part of a word when selecting text, but it is good to allow "string.replace" to show a calltip so calltip.python.word.characters=._$(chars.alpha) would be a reasonable setting. The * form is used if there is no lexer specific setting. |
|
calltip.lexer.parameters.start calltip.lexer.parameters.end calltip.lexer.parameters.separators calltip.*.parameters.start calltip.*.parameters.end calltip.*.parameters.separators |
Allows you to specify characters which start, end and separate parameters. For most common languages, it's usually left brace for start, right brace for end and comma or semicolon for separator. E.g. CSS has colon for start, space for separator and nothing for end. You can specify more characters for each property. The * form is used if there is no lexer specific setting. |
|
calltip.lexer.end.definition calltip.*.end.definition |
API files may contain explanatory text after each function definition. To display the explanation on a second line, set this property to the character used at the end of the definition part. For most languages, this is ')'. The * form is used if there is no lexer specific setting. |
| xml.auto.close.tags | For XML and HTML, setting this property to 1 will automatically insert the corresponding end tag when '>' is typed to end a start tag. Type "<td>" and the result will be "<td></td>" with the caret placed between the tags. |
| html.tags.case.sensitive | For XML and HTML, setting this property to 1 will make tags match in a case sensitive way which is the expected behaviour for XML and XHTML. |
| asp.default.language | Script in ASP code is initially assumed to be in JavaScript. To change this to VBScript set asp.default.language to 2. Python is 3. |
| lexer.cpp.allow.dollars | Set to 0 to disallow the '$' character in identifiers with the cpp lexer. |
| sql.backslash.escapes | Enables backslash as an escape character in SQL. |
| styling.within.preprocessor | For C++ code, determines whether all preprocessor code is styled in the preprocessor style (0, the default) or only from the initial # to the end of the command word(1). |
| tab.timmy.whinge.level |
For Python code, checks whether indenting is consistent. The default, 0 turns off
indentation checking, 1 checks whether each line is potentially inconsistent with the
previous line, 2 checks whether any space characters occur before a tab character
in the indentation, 3 checks whether any spaces are in the indentation, and 4 checks
for any tab characters in the indentation. 1 is a good level to use. |
| user.shortcuts | Define keys that perform commands. This is a '|' delimited list of keys and the commands they produce. The commands are either string or numeric IDs. Numeric IDs above 2000 are Scintilla commands and are sent to the focussed pane. Named IDs and numeric IDs below 2000 are SciTE menu commands which can be found in from scite/src/SciTE.h. The modifiers are Ctrl, Shift, and Alt and the named keys are Ldefble for the same period before appearing again. A value of 0 stops the caret from blinking. |
| caret.width | Sets the width of the caret in pixels. Only values of 1, 2, or 3 work. |
|
caret.policy.xslop caret.policy.width caret.policy.xstrict caret.policy.xeven caret.policy.xjumps caret.policy.yslop caret.policy.lines caret.policy.ystrict caret.policy.yeven caret.policy.yjumps |
If slop is set, we can define a slop value: width for xslop, lines for yslop. If strict is set, the policy is enforced... strictly. If jumps is set, the display is moved more energetically
so the caret can move in the same direction longer before the policy is applied again. If even is not set, instead of having symmetrical UZs,
the left and bottom UZs are extended up to right and top UZs respectively. See the table below to see how these settings interact. |
|
visible.policy.strict visible.policy.slop visible.policy.lines |
Determines how the display area is determined after a Go to command or equivalent such as a Find or Next Message. Options are similar to caret.policy.*. |
|
edge.mode edge.column edge.colour |
Indicates long lines. The default edge.mode, 0, does not indicate long lines. An edge.mode of 1 uses a vertical line to indicate the specified column and an edge.mode of 2 changes the background colour of characters beyond that column. For proportional fonts, an edge.mode of 2 is more useful than 1. |
| control.char.symbol | Sets the character to use to indicate control characters. If not set, control characters are shown as mnemonics. |
|
error.marker.fore error.marker.back |
The colours used to indicate error and warning lines in both the edit and output panes are set with these two values. If there is a margin on a pane then a symbol is displayed in the margin to indicate the error message for the output pane or the line causing the error message for the edit pane. The error.marker.back is used as the fill colour of the symbol and the error.marker.fore as the outline colour. If there is no margin then the background to the line is set to the error.marker.back colour. |
|
bookmark.fore bookmark.back bookmark.alpha |
The colours used to display bookmarks in the margin. If bookmark.fore is not set then a blue sphere is used. When the margin is turned off, bookmarks are shown by a change in the background colour of the line with the translucency set with bookmark.alpha. |
| find.mark | If set, then the Mark All command in the Find dialog will draw translucent boxes over each string found. |
| error.select.line | When a command execution produces error messages, and you step with F4 key through the matching source lines, this option selects the line where the error occurs. Most useful if the error message contains the column of error too as the selection will start at the column of the error. The error message must contain the column and must be understood by SciTE (currently only supported for HTML Tidy). The tab size assumed by the external tool must match the tab size of your source file for correct column reporting. |
| openpath.filepattern | Defines a path for the Open Selected Filename command in the File
menu. The path is searched if the selected filename doesn't contain an
absolute path or the file is not found in the document directory. The
directories in openpath are separated by ';' on Windows and ':' on GTK+. An openpath setting may look like: openpath.*.txt=c:\dos\;f:\;
|
| open.suffix.filepattern | Defines a suffix to add to the selected file name for the
Open Selected Filename command in the File menu.
This is used in languages where the suffix is not given when accessing a file.
An example is python where "import xlib" will most often mean to import from
a file called "xlib.py". An open.suffix setting may look like: open.suffix.*.py=.py
|
| strip.trailing.spaces | Strips trailing white spaces from the file while saving. |
| ensure.final.line.end | Ensures file ends with a line end when saved. |
| ensure.consistent.line.ends | Ensures all lines end with the current Line End Characters setting when saved. |
| abbreviations.filepattern |
Loads an abbreviations file for a particular language overriding the default abbreviations file.
For example,
abbreviations.*.c=$(SciteUserHome)/c_abbrev.properties |
| api.filepattern |
Loads a set of API files for a particular language.
If there is more than one API file then the file names are separated by ';'.
API files contain a sorted list of
identifiers and function prototypes, one per line. The "Complete Symbol" command
looks at the characters before the caret and displayed the subset of the API file
starting with that string. When an opening brace is typed, the file is searched for the
text preceding the caret and if a function prototype is found then it is displayed as a
calltip.
For example, the setting
api.*.c=w.apicould be used with a w.api file containing
fclose(FILE* fileClose)to provide autocompletion and calltips for some of the C file functions. It is best to use the full path to the API file as otherwise the current directory is used. See the Creating API files section for ways to create API files. |
| autocomplete.choose.single | When set to 1 and an autocompletion list is invoked and there is only one element in that list then that element is automatically chosen. This means that the matched element is inserted and the list is not displayed. |
|
autocomplete.lexer.ignorecase autocomplete.*.ignorecase |
When set to 1 the API file is searched in a case insensitive way to find elements for autocompletion lists. Otherwise matches only occur if case also matches. The * form is used if there is no lexer specific setting. |
|
autocomplete.lexer.start.characters autocomplete.*.start.characters |
If this setting is not empty, typing any of the characters will cause autocompletion to start. For example, if autocomplete.python.start.characters=. and the API file for Python contains "string.rjust" and "string.replace" then typing "string." will cause the autocompletion to display both identifiers. The * form is used if there is no lexer specific setting. |
|
autocomplete.lexer.fillups autocomplete.*.fillups |
If this setting is not empty, typing any of the characters will cause autocompletion to complete. For example, if autocomplete.python.fillups=( and the API file for Python contains "string.replace" then typing "string.r(" will cause "string.replace(" to be inserted. The * form is used if there is no lexer specific setting. |
| autocompleteword.automatic | If this setting is 1 then when typing a word, if only one word in the document starts with that string then an autocompletion list is displayed with that word so it can be chosen by pressing Tab. |
|
calltip.lexer.ignorecase calltip.*.ignorecase |
When set to 1 the API file is searched in a case insensitive way to find the function which will have its signature displayed as a calltip. The * form is use if there is no lexer specific setting. |
|
calltip.lexer.word.characters calltip.*.word.characters |
To determine the identifier to look up for calltips, a search is performed allowing the characters in this set to be included in the identifier. While the same setting can be used as for word.characters, sometimes additional characters may be allowed. For example, in Python, '.' is not normally considered part of a word when selecting text, but it is good to allow "string.replace" to show a calltip so calltip.python.word.characters=._$(chars.alpha) would be a reasonable setting. The * form is used if there is no lexer specific setting. |
|
calltip.lexer.parameters.start calltip.lexer.parameters.end calltip.lexer.parameters.separators calltip.*.parameters.start calltip.*.parameters.end calltip.*.parameters.separators |
Allows you to specify characters which start, end and separate parameters. For most common languages, it's usually left brace for start, right brace for end and comma or semicolon for separator. E.g. CSS has colon for start, space for separator and nothing for end. You can specify more characters for each property. The * form is used if there is no lexer specific setting. |
|
calltip.lexer.end.definition calltip.*.end.definition |
API files may contain explanatory text after each function definition. To display the explanation on a second line, set this property to the character used at the end of the definition part. For most languages, this is ')'. The * form is used if there is no lexer specific setting. |
| xml.auto.close.tags | For XML and HTML, setting this property to 1 will automatically insert the corresponding end tag when '>' is typed to end a start tag. Type "<td>" and the result will be "<td></td>" with the caret placed between the tags. |
| html.tags.case.sensitive | For XML and HTML, setting this property to 1 will make tags match in a case sensitive way which is the expected behaviour for XML and XHTML. |
| asp.default.language | Script in ASP code is initially assumed to be in JavaScript. To change this to VBScript set asp.default.language to 2. Python is 3. |
| lexer.cpp.allow.dollars | Set to 0 to disallow the '$' character in identifiers with the cpp lexer. |
| sql.backslash.escapes | Enables backslash as an escape character in SQL. |
| styling.within.preprocessor | For C++ code, determines whether all preprocessor code is styled in the preprocessor style (0, the default) or only from the initial # to the end of the command word(1). |
| tab.timmy.whinge.level |
For Python code, checks whether indenting is consistent. The default, 0 turns off
indentation checking, 1 checks whether each line is potentially inconsistent with the
previous line, 2 checks whether any space characters occur before a tab character
in the indentation, 3 checks whether any spaces are in the indentation, and 4 checks
for any tab characters in the indentation. 1 is a good level to use. |
| user.shortcuts | Define keys that perform commands. This is a '|' delimited list of keys and the commands they produce. The commands are either string or numeric IDs. Numeric IDs above 2000 are Scintilla commands and are sent to the focussed pane. Named IDs and numeric IDs below 2000 are SciTE menu commands which can be found in from scite/src/SciTE.h. The modifiers are Ctrl, Shift, and Alt and the named keys are Ldefble for the same period before appearing again. A value of 0 stops the caret from blinking. |
| caret.width | Sets the width of the caret in pixels. Only values of 1, 2, or 3 work. |
|
caret.policy.xslop caret.policy.width caret.policy.xstrict caret.policy.xeven caret.policy.xjumps caret.policy.yslop caret.policy.lines caret.policy.ystrict caret.policy.yeven caret.policy.yjumps |
If slop is set, we can define a slop value: width for xslop, lines for yslop. If strict is set, the policy is enforced... strictly. If jumps is set, the display is moved more energetically
so the caret can move in the same direction longer before the policy is applied again. If even is not set, instead of having symmetrical UZs,
the left and bottom UZs are extended up to right and top UZs respectively. See the table below to see how these settings interact. |
|
visible.policy.strict visible.policy.slop visible.policy.lines |
Determines how the display area is determined after a Go to command or equivalent such as a Find or Next Message. Options are similar to caret.policy.*. |
|
edge.mode edge.column edge.colour |
Indicates long lines. The default edge.mode, 0, does not indicate long lines. An edge.mode of 1 uses a vertical line to indicate the specified column and an edge.mode of 2 changes the background colour of characters beyond that column. For proportional fonts, an edge.mode of 2 is more useful than 1. |
| control.char.symbol | Sets the character to use to indicate control characters. If not set, control characters are shown as mnemonics. |
|
error.marker.fore error.marker.back |
The colours used to indicate error and warning lines in both the edit and output panes are set with these two values. If there is a margin on a pane then a symbol is displayed in the margin to indicate the error message for the output pane or the line causing the error message for the edit pane. The error.marker.back is used as the fill colour of the symbol and the error.marker.fore as the outline colour. If there is no margin then the background to the line is set to the error.marker.back colour. |
|
bookmark.fore bookmark.back bookmark.alpha |
The colours used to display bookmarks in the margin. If bookmark.fore is not set then a blue sphere is used. When the margin is turned off, bookmarks are shown by a change in the background colour of the line with the translucency set with bookmark.alpha. |
| find.mark | If set, then the Mark All command in the Find dialog will draw translucent boxes over each string found. |
| error.select.line | When a command execution produces error messages, and you step with F4 key through the matching source lines, this option selects the line where the error occurs. Most useful if the error message contains the column of error too as the selection will start at the column of the error. The error message must contain the column and must be understood by SciTE (currently only supported for HTML Tidy). The tab size assumed by the external tool must match the tab size of your source file for correct column reporting. |
| openpath.filepattern | Defines a path for the Open Selected Filename command in the File
menu. The path is searched if the selected filename doesn't contain an
absolute path or the file is not found in the document directory. The
directories in openpath are separated by ';' on Windows and ':' on GTK+. An openpath setting may look like: openpath.*.txt=c:\dos\;f:\;
|
| open.suffix.filepattern | Defines a suffix to add to the selected file name for the
Open Selected Filename command in the File menu.
This is used in languages where the suffix is not given when accessing a file.
An example is python where "import xlib" will most often mean to import from
a file called "xlib.py". An open.suffix setting may look like: open.suffix.*.py=.py
|
| strip.trailing.spaces | Strips trailing white spaces from the file while saving. |
| ensure.final.line.end | Ensures file ends with a line end when saved. |
| ensure.consistent.line.ends | Ensures all lines end with the current Line End Characters setting when saved. |
| abbreviations.filepattern |
Loads an abbreviations file for a particular language overriding the default abbreviations file.
For example,
abbreviations.*.c=$(SciteUserHome)/c_abbrev.properties |
| api.filepattern |
Loads a set of API files for a particular language.
If there is more than one API file then the file names are separated by ';'.
API files contain a sorted list of
identifiers and function prototypes, one per line. The "Complete Symbol" command
looks at the characters before the caret and displayed the subset of the API file
starting with that string. When an opening brace is typed, the file is searched for the
text preceding the caret and if a function prototype is found then it is displayed as a
calltip.
For example, the setting
api.*.c=w.apicould be used with a w.api file containing
fclose(FILE* fileClose)to provide autocompletion and calltips for some of the C file functions. It is best to use the full path to the API file as otherwise the current directory is used. See the Creating API files section for ways to create API files. |
| autocomplete.choose.single | When set to 1 and an autocompletion list is invoked and there is only one element in that list then that element is automatically chosen. This means that the matched element is inserted and the list is not displayed. |
|
autocomplete.lexer.ignorecase autocomplete.*.ignorecase |
When set to 1 the API file is searched in a case insensitive way to find elements for autocompletion lists. Otherwise matches only occur if case also matches. The * form is used if there is no lexer specific setting. |
|
autocomplete.lexer.start.characters autocomplete.*.start.characters |
If this setting is not empty, typing any of the characters will cause autocompletion to start. For example, if autocomplete.python.start.characters=. and the API file for Python contains "string.rjust" and "string.replace" then typing "string." will cause the autocompletion to display both identifiers. The * form is used if there is no lexer specific setting. |
|
autocomplete.lexer.fillups autocomplete.*.fillups |
If this setting is not empty, typing any of the characters will cause autocompletion to complete. For example, if autocomplete.python.fillups=( and the API file for Python contains "string.replace" then typing "string.r(" will cause "string.replace(" to be inserted. The * form is used if there is no lexer specific setting. |
| autocompleteword.automatic | If this setting is 1 then when typing a word, if only one word in the document starts with that string then an autocompletion list is displayed with that word so it can be chosen by pressing Tab. |
|
calltip.lexer.ignorecase calltip.*.ignorecase |
When set to 1 the API file is searched in a case insensitive way to find the function which will have its signature displayed as a calltip. The * form is use if there is no lexer specific setting. |
|
calltip.lexer.word.characters calltip.*.word.characters |
To determine the identifier to look up for calltips, a search is performed allowing the characters in this set to be included in the identifier. While the same setting can be used as for word.characters, sometimes additional characters may be allowed. For example, in Python, '.' is not normally considered part of a word when selecting text, but it is good to allow "string.replace" to show a calltip so calltip.python.word.characters=._$(chars.alpha) would be a reasonable setting. The * form is used if there is no lexer specific setting. |
|
calltip.lexer.parameters.start calltip.lexer.parameters.end calltip.lexer.parameters.separators calltip.*.parameters.start calltip.*.parameters.end calltip.*.parameters.separators |
Allows you to specify characters which start, end and separate parameters. For most common languages, it's usually left brace for start, right brace for end and comma or semicolon for separator. E.g. CSS has colon for start, space for separator and nothing for end. You can specify more characters for each property. The * form is used if there is no lexer specific setting. |
|
calltip.lexer.end.definition calltip.*.end.definition |
API files may contain explanatory text after each function definition. To display the explanation on a second line, set this property to the character used at the end of the definition part. For most languages, this is ')'. The * form is used if there is no lexer specific setting. |
| xml.auto.close.tags | For XML and HTML, setting this property to 1 will automatically insert the corresponding end tag when '>' is typed to end a start tag. Type "<td>" and the result will be "<td></td>" with the caret placed between the tags. |
| html.tags.case.sensitive | For XML and HTML, setting this property to 1 will make tags match in a case sensitive way which is the expected behaviour for XML and XHTML. |
| asp.default.language | Script in ASP code is initially assumed to be in JavaScript. To change this to VBScript set asp.default.language to 2. Python is 3. |
| lexer.cpp.allow.dollars | Set to 0 to disallow the '$' character in identifiers with the cpp lexer. |
| sql.backslash.escapes | Enables backslash as an escape character in SQL. |
| styling.within.preprocessor | For C++ code, determines whether all preprocessor code is styled in the preprocessor style (0, the default) or only from the initial # to the end of the command word(1). |
| tab.timmy.whinge.level |
For Python code, checks whether indenting is consistent. The default, 0 turns off
indentation checking, 1 checks whether each line is potentially inconsistent with the
previous line, 2 checks whether any space characters occur before a tab character
in the indentation, 3 checks whether any spaces are in the indentation, and 4 checks
for any tab characters in the indentation. 1 is a good level to use. |
| user.shortcuts | Define keys that perform commands. This is a '|' delimited list of keys and the commands they produce. The commands are either string or numeric IDs. Numeric IDs above 2000 are Scintilla commands and are sent to the focussed pane. Named IDs and numeric IDs below 2000 are SciTE menu commands which can be found in from scite/src/SciTE.h. The modifiers are Ctrl, Shift, and Alt and the named keys are Ldefble for the same period before appearing again. A value of 0 stops the caret from blinking. |
| caret.width | Sets the width of the caret in pixels. Only values of 1, 2, or 3 work. |
|
caret.policy.xslop caret.policy.width caret.policy.xstrict caret.policy.xeven caret.policy.xjumps caret.policy.yslop caret.policy.lines caret.policy.ystrict caret.policy.yeven caret.policy.yjumps |
If slop is set, we can define a slop value: width for xslop, lines for yslop. If strict is set, the policy is enforced... strictly. If jumps is set, the display is moved more energetically
so the caret can move in the same direction longer before the policy is applied again. If even is not set, instead of having symmetrical UZs,
the left and bottom UZs are extended up to right and top UZs respectively. See the table below to see how these settings interact. |