diff --git a/site/content/docs/01-component-format.md b/site/content/docs/01-component-format.md
index 93af09b28363..ea206e5ffacb 100644
--- a/site/content/docs/01-component-format.md
+++ b/site/content/docs/01-component-format.md
@@ -30,7 +30,7 @@ A `
@@ -44,7 +44,7 @@ As in HTML, values may be unquoted.
Attribute values can contain JavaScript expressions.
-```html
+```sv
page {p}
```
@@ -52,7 +52,7 @@ Attribute values can contain JavaScript expressions.
Or they can *be* JavaScript expressions.
-```html
+```sv
```
@@ -60,7 +60,7 @@ Or they can *be* JavaScript expressions.
An expression might include characters that would cause syntax highlighting to fail in regular HTML, so quoting the value is permitted. The quotes do not affect how the value is parsed:
-```html
+```sv
```
@@ -68,7 +68,7 @@ An expression might include characters that would cause syntax highlighting to f
When the attribute name and value match (`name={name}`), they can be replaced with `{name}`.
-```html
+```sv
@@ -80,7 +80,7 @@ When the attribute name and value match (`name={name}`), they can be replaced wi
An element or component can have multiple spread attributes, interspersed with regular ones.
-```html
+```sv
{a} + {b} = {a + b}.
``` @@ -113,7 +113,7 @@ In a text expression, characters like `<` and `>` are escaped. With HTML express > Svelte does not sanitize expressions before injecting HTML. If the data comes from an untrusted source, you must sanitize it, or you are exposing your users to an XSS vulnerability. -```html +```svwhat was the question?
{/if} @@ -147,7 +147,7 @@ Content that is conditionally rendered can be wrapped in an if block. Additional conditions can be added with `{:else if expression}`, optionally ending in an `{:else}` clause. -```html +```sv {#if porridge.temperature > 100}too hot!
{:else if 80 > porridge.temperature} @@ -177,7 +177,7 @@ Additional conditions can be added with `{:else if expression}`, optionally endi Iterating over lists of values can be done with an each block. -```html +```sv{todo.text}
{:else} @@ -245,7 +265,7 @@ An each block can also have an `{:else}` clause, which is rendered if the list i Await blocks allow you to branch on the three possible states of a Promise — pending, fulfilled or rejected. -```html +```sv {#await promise}waiting for the promise to resolve...
@@ -262,7 +282,7 @@ Await blocks allow you to branch on the three possible states of a Promise — p The `catch` block can be omitted if you don't need to render anything when the promise rejects (or no error is possible). -```html +```sv {#await promise}waiting for the promise to resolve...
@@ -276,7 +296,7 @@ The `catch` block can be omitted if you don't need to render anything when the p If you don't care about the pending state, you can also omit the initial block. -```html +```sv {#await promise then value}The value is {value}
{/await} @@ -296,7 +316,7 @@ on:eventname|modifiers={handler} Use the `on:` directive to listen to DOM events. -```html +```sv @@ -1028,7 +1048,7 @@ The `