vscode-gle: A VS Code extension for the GLE language
A Visual Studio Code extension that provides language support for the GLE (Graphics Layout Engine) scripting language used to generate high-quality plots, figures and diagrams.
Features
Declarative language features for GLE
- Syntax highlighting
- based on TextMate grammar file for GLE
- 2 built-in themes (light and dark) based on standard vscode themes
- Folding and auto-indentation
- Snippets
for
loop, if
statement
set
commands
- subroutines
begin
... end
blocks

Programmatic language features for GLE
Document link
Open external files called in the GLE script
- include files (
include <filename>
)
- data files (
data <filename> ...
or colormap <filename> ...
)
Color decorator
- add a color decorator in front of color functions
color rgb(r,g,b)
color rgba(r,g,b,a)
color <colorname>
- the color can be changed from vscode color picker
(Q)GLE from the vscode editor
The GLE script can be built from directly from vscode, using Run GLE
button, or using right-click in the editor.
The following command will be executed: gle [options] <this_script.gle>
.
Build options can be set in the gle.argsGLE
setting.
It is also possible to preview the script with QGLE (GLE GUI), using QGLE previewer
button, or using right-click in the editor or explorer.
Extension Settings
This extension contributes the following settings:
- General settings
gle.includePath
: Set the absolute include path for GLE scripts (i.e., gleinc folder).
- GLE settings
gle.pathToGLE
: Set the path to the GLE application.
gle.argsGLE
: Set the command-line options for running GLE (e.g., ["-d jpg", "-r 200"]
)
- QGLE settings
gle.activateQGLE
: Enable/disable call to QGLE previewer (disable it if QGLE is not installed).
gle.pathToQGLE
: Set the path to the QGLE previewer.
Regarding the color decorators, you can use the following editor settings:
editor.colorDecorators
: Enable/disable color decorators
editor.colorDecoratorsActivatedOn
: Condition to make a color picker appear from a color decorator (click and/or hover)
Issues
Please report issues and feature requests on the GitHub page.
Release Notes
See the CHANGELOG for a complete list of changes.
0.3.0 [preview]
Initial release of vscode-gle extension