vscode-svell
v0.0.1
Published
Language support for Svell.
Downloads
3
Readme
Svell support for Visual Studio Code
🍃 Not sure what Svell is? Look it up at svell.dev!
Language support for Svell.
Features
- HTML/CSS Syntax Highlighting
- Code Snippets
Syntax Highlighting
The Svell VS Code extension comes bundled with snippets for auto-completion. It also adds auto-highlighting to class methods defined as arrow functions starting with html
and css
keyword. Additionally you can manually prefix any template literals with /*html*/
to highlight HTML code inside them, or /*css*/
to highlight CSS code.
Example
import { SvellElement } from Svell
class MyElement extends SvellElement {
// auto
html = () => `<div></div>`
css = () => `:host {}`
// auto
htmlTemplate = () => `<div></div>`
cssTemplate = () => `:host {}`
// manual
htmlCode = /*html*/ `<div></div>`
cssCode = /*css*/ `:host {}`
}