Skip to content

Commit 520acbb

Browse files
committed
docs: inline code syntax highlighting (closes #1162)
1 parent 0b9f79e commit 520acbb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/features/syntax highlighting.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,16 @@ const [age, setAge] = useState(50)
9595
const [name, setName] = useState("Taylor")
9696
```
9797

98+
### Inline Highlighting
99+
100+
Append {:lang} to the end of inline code to highlight it like a regular code block.
101+
102+
```
103+
This is an array `[1, 2, 3]{:js}` of numbers 1 through 3.
104+
```
105+
106+
This is an array `[1, 2, 3]{:js}` of numbers 1 through 3.
107+
98108
### Line numbers
99109

100110
Syntax highlighting has line numbers configured automatically. If you want to start line numbers at a specific number, use `showLineNumbers{number}`:

0 commit comments

Comments
 (0)