Skip to content

Commit 323e2fa

Browse files
committed
site: fix setting-up-your-editor blog post crashing the server
1 parent df38a5d commit 323e2fa

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

site/content/blog/2019-04-15-setting-up-your-editor.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,18 @@ draft: true
1616

1717
To treat all `*.svelte` files as HTML, add the following line to your `init.vim`:
1818

19-
au! BufNewFile,BufRead *.svelte set ft=html
19+
```bash
20+
au! BufNewFile,BufRead *.svelte set ft=html
21+
```
2022

2123
To temporarily turn on HTML syntax highlighting for the current buffer, use:
2224

23-
:set ft=html
25+
```bash
26+
:set ft=html
27+
```
2428

2529
To set the filetype for a single file, use a [modeline](https://vim.fandom.com/wiki/Modeline_magic):
2630

27-
<!-- vim: set ft=html :-->
31+
```bash
32+
<!-- vim: set ft=html :-->
33+
```

0 commit comments

Comments
 (0)