Skip to content

Commit

Permalink
Describe ordering requirement for prism script tag (#1935)
Browse files Browse the repository at this point in the history
I couldn't get a prism typescript language grammar to work until I realised that script order mattered.   

This might not be the best language or format for this, but I think it probably belongs in the documentation in some manner.

Thank you!
  • Loading branch information
ablakey authored Dec 12, 2022
1 parent 2601392 commit f4cae7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/language-highlight.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Support for [additional languages](https://prismjs.com/#supported-languages) is
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-php.min.js"></script>
```

!> This `<script>` tag must be placed after the docisfy `<script>` to work.

To enable syntax highlighting, wrap each code block in triple backticks with the [language](https://prismjs.com/#supported-languages) specified on the first line:

````
Expand Down

1 comment on commit f4cae7f

@vercel
Copy link

@vercel vercel bot commented on f4cae7f Dec 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.