Skip to content

Commit 3503654

Browse files
authored
Merge pull request #5 from highlightjs/wrong-hljs
Import correct highlight.js
2 parents d8fcebd + c5e7dbc commit 3503654

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
For more about highlight.js, see https://highlightjs.org/
44

5-
CSHTML is a markup language created by Microsoft for ASP.NET MVC and ASP.NET Core applications. It allows to create markup containing both C# and HTML code.
5+
CSHTML is a markup language created by Microsoft for ASP.NET MVC and ASP.NET Core applications. It allows to create markup containing both C# and HTML code.
66

77
For more about the CSHTML Razor syntax here: https://docs.microsoft.com/en-us/aspnet/core/mvc/views/razor.
88

@@ -13,9 +13,9 @@ Simply include the `highlight.js` script package in your webpage or node app, lo
1313
If you're not using a build system and just want to embed this in your webpage:
1414

1515
```html
16-
<script type="text/javascript" src="/path/to/highlightjs/highlight.pack.js"></script>
17-
<script type="text/javascript" src="/path/to/highlightjs-cshtml-razor/cshtml-razor.js"></script>
18-
<script type="text/javascript">
16+
<script src="/path/to/highlight.js/highlight.pack.js"></script>
17+
<script src="/path/to/highlightjs-cshtml-razor/cshtml-razor.js"></script>
18+
<script>
1919
hljs.registerLanguage('cshtml-razor', window.hljsDefineCshtmlRazor);
2020
hljs.initHighlightingOnLoad();
2121
</script>
@@ -24,7 +24,7 @@ If you're not using a build system and just want to embed this in your webpage:
2424
If you're using webpack / rollup / browserify / node:
2525

2626
```javascript
27-
var hljs = require('highlightjs');
27+
var hljs = require('highlight.js');
2828
var hljsDefineCshtmlRazor = require('highlightjs-cshtml-razor');
2929

3030
hljsDefineCshtmlRazor(hljs);

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@
3333
},
3434
"homepage": "https://github.com/highlightjs/highlightjs-cshtml-razor#readme",
3535
"devDependencies": {
36-
"highlightjs": "^9.10.0",
36+
"highlight.js": "^9.15.10",
3737
"mocha": "^5.2.0",
3838
"should": "^13.2.3"
39-
}
39+
},
40+
"dependencies": {}
4041
}

test/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var should = require('should');
22
var promisify = require("util").promisify;
33
let path = require('path');
4-
let hljs = require("highlightjs");
4+
let hljs = require("highlight.js");
55
const fs = require("fs");
66
let hljsDefineCshtmlRazor = require("../cshtml-razor");
77

0 commit comments

Comments
 (0)