Skip to content

Commit 313d768

Browse files
committed
Sample code update
1 parent 6541736 commit 313d768

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ Simply load this module after loading Highlight.js. You'll use the minified vers
1717
```html
1818
<script type="text/javascript" src="/path/to/highlight.min.js"></script>
1919
<script type="text/javascript" src="/path/to/highlightjs-apex/dist/apex.min.js"></script>
20+
<!-- Use any stylesheet you'd like - though it's best to choose from those in highlightjs core repo -->
2021
<link rel="stylesheet" href="/path/to/highlightjs-apex/demo/highlight.css" />
2122
<script type="text/javascript">
22-
hljs.highlightAll();
23+
hljs.highlightAll();
2324
</script>
2425
```
2526

@@ -33,7 +34,7 @@ If you're using Node / Webpack / Rollup / Browserify, etc, simply require the la
3334
var hljs = require('highlight.js');
3435
var hljsApexTxt = require('highlightjs-apex');
3536

36-
hljs.registerLanguage("apex", hljsApexTxt);
37+
hljs.registerLanguage('apex', hljsApexTxt);
3738
hljs.highlightAll();
3839
```
3940

@@ -48,8 +49,9 @@ Highlight.js is released under the BSD 3-Clause License. See [LICENSE](/LICENSE)
4849
## Contribution
4950

5051
Feel free to create issues or (even better) pull requests.
52+
5153
## Links
5254

5355
- The official site for the Highlight.js library is <https://highlightjs.org/>.
5456
- The Highlight.js GitHub project: <https://github.com/highlightjs/highlight.js>
55-
- Learn more about Apex: <https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_intro_what_is_apex.htm>
57+
- Learn more about Apex: <https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_intro_what_is_apex.htm>

0 commit comments

Comments
 (0)