Skip to content

Commit f8696ab

Browse files
authored
docs: add syntax highlighting for typescript (#1345)
According to Docsify docs (https://docsify.js.org/#/language-highlight?id=language-highlighting) only few languages are supported by default by Prism (the underlying lib), and TypeScript is not. This commit aims to add such support on TypeScript snippets like the one at `web` page.
1 parent efcdc97 commit f8696ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.html

+2
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,7 @@
4747
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
4848
<script src="//unpkg.com/docsify/lib/plugins/search.min.js"></script>
4949
<script src="//unpkg.com/docsify/lib/plugins/ga.min.js"></script>
50+
<!-- To enable syntax highlighting on TypeScript codes: -->
51+
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-typescript.min.js"></script>
5052

5153
</html>

0 commit comments

Comments
 (0)