The Trans Directory
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: inline code syntax highlighting (closes #1162)

+10
+10
docs/features/syntax highlighting.md
··· 95 95 const [name, setName] = useState("Taylor") 96 96 ``` 97 97 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 + 98 108 ### Line numbers 99 109 100 110 Syntax highlighting has line numbers configured automatically. If you want to start line numbers at a specific number, use `showLineNumbers{number}`: