Scinotes: Embedded Scilab text editor (original) (raw)

Please note that the recommended version of Scilab is 2026.0.1. This page might be outdated.
See the recommended documentation of this function

Scilab help >> Text editor (Scinotes) > Editor

Scinotes: Embedded Scilab text editor

Calling Sequence

editor() editor(file) editor([file1, file2]) editor(file, line_number) editor(file, line_number, macro_name) editor([file1, file2], [line_number1, line_number2]) editor(file, 'readonly') editor([file1, file2], 'readonly')

Arguments

file

a string, the file to be opened.

[file1, file2]

a matrix of string, files to be opened.

line_number

An integer, the number of the line to be highlighted at the opening of the file.

macro_name

a string, the line number would be relative to the definition of the function macro_name

[line_number1, line_number2]

a matrix of integer, each opened file will have its corresponding line highlighted.

Description

Scinotes is an embedded Scilab text editor.

It can be started with a fresh text buffer pressing the "Editor" button on top of the main Scilab window, or from Scilab command line with the instruction editor(), or it can open specific files if invoked with any of the calling sequences above (whithout any parameters, it opens editor with a blank file).

The same invocation adds further files to an already opened Editor.

With the option 'readonly', files are opened in read-only mode so they cannot be modified.

Keyboard shortcuts are defined for most possible editing actions and reported by the menu entries.

editor can be started in the following ways :

Remarks

Document :

The default text colorization is the Scilab's syntax colorization.

The auto-indent mode indent a line according to Scilab's syntax (after a return action).

Examples

editor();

editor('SCI/modules/time/macros/datenum.sci');

editor(['SCI/modules/time/macros/datenum.sci','SCI/modules/time/macros/datevec.sci']);

editor('SCI/modules/time/macros/datenum.sci', 5);

editor('SCI/modules/time/macros/datenum.sci', 8, 'datenum');

editor(['SCI/modules/time/macros/datenum.sci','SCI/modules/time/macros/datevec.sci'], [5,10]);

Author

Sylvestre KOUMAR

Calixte DENIZET