This extension provides syntax highlighting, snippets, and basic language support for the Clarity language - a Python-like alternative to HTML that focuses on readability and elegance.
Features
Syntax highlighting for Clarity files (.clar, .clarity)
Auto-completion for common patterns
Snippets for common structures
Smart indentation and bracket matching
Code folding support
Snippets
This extension includes several snippets to speed up your Clarity development:
document: Creates a basic document structure
style: Creates a CSS style block
script: Creates a JavaScript script block
for: Creates a for loop
if: Creates an if statement
ifelse: Creates an if-else statement
var: Creates a variable declaration
component: Creates a component definition
@: Creates component usage
elem: Creates an HTML element with attributes
Installation
Manual Installation
Download or clone this repository
Copy the contents to ~/.vscode/extensions/clarity-language
Restart VS Code
From VSIX (Coming Soon)
Download the .vsix file
Open VS Code
Go to Extensions view (Ctrl+Shift+X)
Click on the "..." in the top-right corner
Select "Install from VSIX..."
Choose the downloaded file
Extension Development
If you want to contribute to this extension:
Clone the repository
Make your changes
Test locally by copying to your extensions folder
Submit a pull request
Release Notes
0.1.0
Initial release with basic syntax highlighting and snippets