SetlX Helper
An extension for SublimeText, VisualStudio Code, TextMate and IntelliJ IDEA to make writing SetlX-code comfortable. Compatible with SetlX Version 2.5.0 - 2.6.1
Details
Installs
- Total 170
- Win 84
- Mac 69
- Linux 17
| Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | Oct 6 | Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
The SetlX-Helper for Sublime Text 3
“Wait, why should I use this?” Good question! Lets ask the official SetlX-Tutorialas I recall it:
- Programming [with the] SetlX[-Helper] is the only way to guarantee redemption from the eternal hell fire that awaits those […] programming in SetlX.
- Programming in SetlX [will then be] fun!
I'm fairly sure you are convinced now ;)
Additionally, this extension is available for SublimeText 2/3 (see here) and VisualStudio Code (see here).
Current Version: v1.2.0, compatible with SetlX v2.5.0-v2.6.1
Installing The Extension
Sublime Text 3 / 2 ![[ST]](/readmes/img/d64f6dff4e54cd2d65a634a227cf3be871f2f39b.png)
- Install PackageControl in Sublime Text as described here and restart Sublime Text
- Open the Command Palette (by pressing Ctrl/Super+Shift+P), select
Package Control: Install Package, wait for the list to load and selectSetlX Helperfrom the list (by typing insetlxand pressing Enter) - After the installation is done (the progress is shown in the lower left corner) you are all set. Just open a SetlX-program file and enjoy the new help!
- optional: I recommend using the Monokai Extended Color Scheme (available via PackageControl) for a nice and colorful syntax-highlighting.
Updates are applied automatically.
VisualStudio Code ![[VSC]](/readmes/img/01206fa8cb7e5858fc7c25d3fa8654fc9ad56dda.png)
- Open the Command Palette (by pressing Ctrl+P), type in
ext install setlxand press Enter - After the installation is done, restart VS Code when the prompt asking you to do so appears. Then you are all set. Just open a SetlX-program file and enjoy the new help!
- optional: I recommend using the Monokai Color Theme for a nice and colorful syntax-highlighting.
Updates are applied automatically.
TextMate ![[TM]](/readmes/img/4fc8e885a8fd7669df775ad28aa6959d1b91f823.png)
- Close TextMate if it is currently running.
- Open a console and go to TextMate's Bundles Directory:
cd /Library/Application\ Support/TextMate/Bundles- If it does not exist, create it:
mkdir -p /Library/Application\ Support/TextMate/Bundles
- If it does not exist, create it:
- Clone the
textmatebranch as a Bundle:git clone -b textmate -- https://github.com/LucaVazz/SetlXHelper.git SetlXHelper.tmbundle - After the command is finished, you are all set. Just start TextMate again and open a SetlX-program file and enjoy the new help!
Updates need to be done manually. To update:
1. Go inside the Bundle: cd /Library/Application\ Support/TextMate/Bundles/SetlXHelper.tmbundle
2. Update it with the new changes: git pull
IntelliJ IDEA ![[IntelliJ]](/readmes/img/27fd68c53b6c385185d53e2186910e88d44c4b5b.png)
- Verify that the
TextMate bundles supportPlugin is installed and enabled:- Open the settings (File ➜ Settings for Windows and Linux or IntelliJ IDEA ➜ Preferences for macOS) and then go to Plugins.
- Search for
textmate - If the plugin apears, make sure its checkbox has a tick in it.
- If not, click on the
Search in repositorieslink, select theTextMate bundles supportentry and click on theInstallbutton on the left, followed by a click on theRestart IntelliJ IDEAbutton.
- Add the TextMate Bundle:
- Open a console, change into a direcotry of your choice and clone the
textmatebranch as a Bundle:git clone -b textmate -- https://github.com/LucaVazz/SetlXHelper.git SetlXHelper.tmbundle - Open IntelliJ's settings (see above) and navigate to Editor ➜ TextMate Bundles on the right.
- Click on the + in the upper left corner and select the
SetlXHelper.tmbundledirectory you just cloned. - In the lower left corner, select the Color Scheme you want to use for
SetlXfiles. - Close the dialog by clicking Apply and then OK.
- Open a console, change into a direcotry of your choice and clone the
- Now you are all set. Just open a SetlX-program file and enjoy the new help!
Updates need to be done manually. To update:
1. Go inside the directory you chosed and change into the SetlXHelper.tmbundle directory.
2. Update it with the new changes: git pull
Using the Features
The icons in brackets indicate for which editor the feature is implemented.
Syntax Highligting (
)
![[Illustration of the Syntax Definitions]](/readmes/img/cb07893e51af332db687cf799c06be2d82ae4dd0.png)
Just type code ;)
Keep in mind: The colors don't come from the Helper-Plugin. You can choose them as you like by selecting a Theme which suits you:
*
: Preferences ➜ Color Scxheme…
*
: File ➜ Settings ➜ Color Theme
*
: Preferences ➜ Fonts & Colors
*
: See installations instructions above, step 2.4
Type Common Structures Faster With Snippets (
)
![[Demonstration of Developing with Snippets]](/readmes/img/d57060fae54b8d99b8f191b905c692d3890129da.gif)
To insert a snippet, just enter its keyword (which is its name, if not noted otherwise below) and press Enter to insert it. You can then jump through the placeholders by pressing Tab (
: and insert a “real” tab by pressing Shift+Tab).
Available snippets:
+ set - / list - / closure - / procedure - / cached procedure - definition
+ if - / else if - / else- / match - / swtich- / case - / default - statements
+ for - / while - loops
+ try-catch - (keyword: catch) / trace - blocks
Build System (
)
You need to install SetlX completely as described in its manual. This means that you should be able to type setlx into a console-window and get the live interpreter fired up.
After that, you can just press Ctrl/Cmd+B to start your SetlX-program and view its results inside Sublime Text's own console (at the bottom of your window).
You can switch between running your program inside Sublime Text's own Build-Console (at the bottom of the window) (which doesn't support input) or in an external Command-Line - window by pressing Ctrl/Cmd+Shift+B and selecting either SetlX - in internal Build-Console or SetlX - in external Command-Line.
If you just press Ctrl/Cmd+B or just select SetlX in the selection-menu mentioned above, the previously selected option will be used.
Contributing
Feel free to suggest additional features or to report bugs by using the GitHub-Issues.
I'm also always pleased to see pull-request, for example if you have ported the extension to other editors or added new functionality.
A Note on the Chosen License
This project is licensed under the terms of the GNU General Public License v3.0. For further information, please look here or here(DE).
A Note on Used Material
- The syntax highlighting is (obviously) based on the SetlX Grammar.
- The icons in this readme are taken from the TypeScript homepage, the TextMate Wiki AlternativeIcons page and the JetBrains Press & Logos page.