prismjs-language-srt
v1.0.4
Published
SRT subtitle syntax highlight for Prism.js
Downloads
21
Readme
prismjs-language-srt
SRT subtitle syntax highlight for Prism.js
Installation
npm install prismjs-language-srt
Usage
<link href="node_modules/prismjs/themes/prism.css" rel="stylesheet">
<script src="node_modules/prismjs/prism.js" type="text/javascript"></script>
<script src="node_modules/prismjs-language-srt/prism-language-srt.js" type="text/javascript"></script>
<pre>
<code class="language-srt">
1223
01:50:30,010 --> 01:50:32,660
Hello World!
</code>
</pre>