|
|
@ -14,20 +14,16 @@ draft: true
|
|
|
|
|
|
|
|
|
|
|
|
## Atom
|
|
|
|
## Atom
|
|
|
|
|
|
|
|
|
|
|
|
To treat `.svelte` files as HTML, install the *file-types* package which enables such custom mappings:
|
|
|
|
To treat `*.svelte` files as HTML, open Edit → Config... and add the following lines to your `core` section:
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
|
|
apm install file-types
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
From the toolbar, open Edit → Config... and add the following two lines to your root (`"*"`) section:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```cson
|
|
|
|
```cson
|
|
|
|
"*":
|
|
|
|
"*":
|
|
|
|
core:
|
|
|
|
core:
|
|
|
|
…
|
|
|
|
…
|
|
|
|
"file-types":
|
|
|
|
customFileTypes:
|
|
|
|
"*.svelte": "text.html.basic"
|
|
|
|
"text.html.basic": [
|
|
|
|
|
|
|
|
"svelte"
|
|
|
|
|
|
|
|
]
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Vim/Neovim
|
|
|
|
## Vim/Neovim
|
|
|
|