Scilab Home Page | Wiki | Bug Tracker | Forge | Mailing List Archives | Scilab Online Help | ATOMS
File Exchange : Details
Please login or create an account

Notepad++ styles for Scilab 5.5 syntax colorization + functions completion & args reminder

(25/6332 downloads)
keywords colorization, functions completion & args reminder with Notepad++ for Scilab and ATOMS
Samuel Gougeon
Samuel Gougeon
Supported Scilab Versions
<= 5.5.0
Creation Date
18th of April 2014
Built with & Updated for Scilab 5.5.0 Works for any Scilab release. .sce .sci .tst .start files are considered as Scilab ones. Syntax colorization and completion for ~5000 functions and their parameters. In addition to Scilab 5.5.0, functions of the most used ATOMS external modules are supported: * Advanced Neural Network (ANN) * apifun * CelestLab (no colorization) * Image Processing Design (IPD) * Lycee (educational, pour les lves franais) * Matrix Market * Metanet * Plotting library (for former Matlabers) (plotlib) * PortAudio * SciFreeFEM * Scidoe : Design Of Experiment * Scilab Image & Video Processing (SIVP) * serial (RS-232 communications) * socket (IP communications) * Sound files management (sndfile) * Stixbox (statistics)(no colorization) * Time Frequency toolbox (stftb) * Wavelet Toolbox (swt) PLEASE NOTE: * Colorization and completions occur for these ATOMS modules even if the modules are not installed in Scilab. This will help you preventing any potential conflicts with your own variables and functions. * ANN toolbox: Only syntax colorization is supported. Completion is not provided for this module (its XML help files do not comply with Scilab 5.5 standard) * plotlib: has several functions with same names as native Scilab functions (plot, subplot...). => arguments completion is provided for both Scilab and plotlib syntaxes ; plotlib syntaxes are then displayed at the bottom of the list of possible syntaxes. ---------- The free high level Notepad++ external editor can propose an advanced feature (unavailable in the embedded Scilab editor): All calling sequences of a function -- also called synopses -- can be displayed when typing the opening "(". This feature is enabled by the scilab.xml file provided here-below. It greatly helps in reminding on-the-fly the expected lists of arguments. scilab.xml also enables completion of function names through the full list of functions for Scilab and some ATOMS modules. Other Notepad++ features such as syntax colorization, folding / unfolding of block of statements, parentheses or brackets or braces matching, etc.. are defined and proposed for Scilab through the UserDefineLang.xml file. The two main subsets of reserved Scilab keywords (built-in functions, and macros) are extensively given for syntax highlightment, including undocumented utility functions. REMARKS about syntax parsing rules ---------------------------------- * The single quote _'_ cannot be declared as an alternative string delimiter. Otherwise, Notepad++ would parse the ' transposition operator as the opening of a string, making a big part of the following code wrongly parsed. HOW TO SET Notepad++ to autocomplete Scilab functions and parameters: ====================------------------------------------------------ In Notepad++ : In the menu Settings => Preferences => Tab: Auto-completion: In the Auto-completion frame: check "enable auto-completion on each input" and "Function and word completion". Management of files provided through this module is described below.
Files (3)
[48.91 Ko] UserDefineLang.xml
UserDefineLang.xml : Syntax colorization for Scilab in Notepad++ (~5000

File defining extended sets of all reserved Scilab keywords (for Scilab 5.5.0),
rules and styles for Scilab syntax highlighting.
UserDefineLang.xml must be stored in the user profile (%appdata%\Notepad++\ ,
often = C:\Users\\AppData\Roaming\Notepad++\UserDefineLang.xml).

Your own UserDefineLang.xml file may contain rules for customized languages
other than Scilab. This is why it is preferable to properly import this release
for Scilab with the Import command (Menu Language => Define your language:
Import button), or to edit it and copy/paste the <="" userlang=""> block for
Scilab in it.
[794.92 Ko] scilab.xml
scilab.xml enables the completion of Scilab functions and the display of ~4900
calling sequences (when typing the opening parenthesis).

scilab.xml must be stored in the ~\plugins\APIs\scilab.xml Notepad++
installation directory (most often in C:\Program files\Notepad++\plugins\APIs)
scilab.xml is built with the synopses extracted from the Scilab official help

The extensive set of native Scilab calling sequences is proposed. In addition, 
calling sequences for included ATOMS modules are also provided (list in the
Description hereabove).

For each completed function, all allowed calling sequences are displayed.
[14.68 Ko] Notepadpp_for_Scilab_Samples_6.png
Samples of Notepad++'s screenshots illustrating the completion, display of
simple or multiple calling sequences, syntax colorization, and blocks folding
for Scilab.
News (0)
Comments (0)
    Leave a comment 
Leave a comment
You need to log in before you can leave a comment.