edits a given Scilab function or file
edit functionname edit(functionname, linenumber) edit functionname linenumber
character string
positive integer (of type 1 or 10)
If functionname
is the name of a defined scilab function,
edit(functionname)
tries to open the associated source file
functionname.sci
.
If functionname
is not found as a defined Scilab function but
matches naming rules of Scilab functions, edit(functionname)
creates the file functionname.sci
file in the
TMPDIR
directory.
If functionname
is a file path or an expression not matching
Scilab functions naming rules, edit(functionname)
opens the file
with file name equal to functionname
.
If linenumber
is given, the file is opened at this line inside the
function/endfunction block defining the macro named as the file itself.
If the definition of the function functionname
is not found in the
file, the file is opened at the absolute line number linenumber
.
Version | Description |
5.3.1 | New linenumber input option. |
6.1.0 | linenumber can now be of type text as "23". |