File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,7 @@ Simply load the module after loading Highlight.js. You'll use the minified versi
18
18
<script type =" text/javascript" src =" /path/to/highlight.min.js" ></script >
19
19
<script type =" text/javascript" src =" /path/to/highlightjs-cshtml-razor/dist/cshtml-razor.min.js" ></script >
20
20
<script >
21
- hljs .registerLanguage (' cshtml-razor' , window .hljsDefineCshtmlRazor );
22
- hljs .initHighlightingOnLoad ();
21
+ hljs .highlightAll ();
23
22
</script >
24
23
```
25
24
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " highlightjs-cshtml-razor" ,
3
- "version" : " 2.1.0 " ,
3
+ "version" : " 2.1.1 " ,
4
4
"description" : " highlight.js syntax definition for ASP.NET Razor CSHTML language" ,
5
5
"main" : " src/languages/cshtml-razor.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change 16
16
< script src ="../../../build/languages/css.min.js "> </ script >
17
17
< script type ="text/javascript " src ="../dist/cshtml-razor.min.js "> </ script >
18
18
< script type ="text/javascript ">
19
- hljs . initHighlightingOnLoad ( ) ;
19
+ hljs . highlightAll ( ) ;
20
20
</ script >
21
21
</ head >
22
22
< body >
You can’t perform that action at this time.
0 commit comments