This extension provides syntax highlighting and basic language support for the Sigil programming language (.sl files) in Visual Studio Code.
- Syntax Highlighting: Colorizes keywords, comments, strings, numbers, and more to improve code readability.
- Bracket Matching: Highlights matching brackets
(),[],{}. - Comment Toggling: Use
Ctrl+/(orCmd+/) to toggle line comments (#). - Auto-Closing Pairs: Automatically adds closing brackets, quotes, and backticks.
- Open Visual Studio Code.
- Launch the Command Palette (
Ctrl+Shift+PorCmd+Shift+P). - Type
Extensions: Install Extensionsand press Enter. - Search for
Sigil Language Support. - Click Install to install it.
- Reload VS Code if prompted.
The extension will automatically be activated when you open a file with the .sl extension.
Here is a preview of the syntax highlighting provided by this extension.
# This is a single-line comment const PI = 3.14159 let message: string = 'Hello, World!' let interpolated: string = `Your value is {PI}` # Function definition fn greet(name: string) -> string: return `Hello, {name}!` class Calculator: static pub fn add(a, b): return a + b let result = Calculator.add(10, 20) if result > 25: # Loop ten times loop 10: print('Result is greater than 25') else: print('Result is not greater than 25') } Found a bug or have a suggestion? Please open an issue on the GitHub repository.
Sigil Programming Language GitHub repository.
This extension is licensed under the MIT License.
