Skip to content

Commit 7cd9b37

Browse files
committed
docs: explain how to use sample-styles.css
1 parent 2bc0d61 commit 7cd9b37

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,17 @@ document.body.innerHTML += highlighted
7373
<span class="sql-hl-string">'[email protected]'</span>
7474
```
7575

76+
Sample styles to get you going can be found in
77+
[sample-style.css](./sample-style.css). To use them, append the output to a
78+
`code` tag with the class name `sql`, like this:
79+
```html
80+
<code class="sql">
81+
<span class="sql-hl-keyword">SELECT</span>
82+
<span class="sql-hl-identifier">`id`</span>
83+
<!-- etc... -->
84+
</code>
85+
```
86+
7687
## Options
7788
The following options may be passed to the `highlight` function.
7889

0 commit comments

Comments
 (0)