highlightjs-opl 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +29 -1
  2. package/package.json +5 -2
package/README.md CHANGED
@@ -4,7 +4,7 @@ OPL syntax highlighting for [highlight.js](https://highlightjs.org).
4
4
 
5
5
  ## Usage
6
6
 
7
- ### Static website or simple usage
7
+ ### Static Website or Simple Usage
8
8
 
9
9
  Simply load this module after loading Highlight.js. You'll use the minified version found in the `dist` directory. This module is just a CDN build of the language, so it will register itself as the Javascript is loaded.
10
10
 
@@ -16,3 +16,31 @@ Simply load this module after loading Highlight.js. You'll use the minified vers
16
16
  </script>
17
17
  ```
18
18
 
19
+ ### Using UNPKG CDN
20
+
21
+ ```html
22
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/styles/default.min.css">
23
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/highlight.min.js"></script>
24
+ <script type="text/javascript" src="https://unpkg.com/highlightjs-opl/dist/opl.min.js"></script>
25
+ <script type="text/javascript">
26
+ hljs.highlightAll();
27
+ </script>
28
+ ```
29
+
30
+ ## Development
31
+
32
+ This package is published on [NPM](https://npmjs.com) using:
33
+
34
+ ```shell
35
+ npm publish
36
+ ```
37
+
38
+ Setting the version can be done as follows:
39
+
40
+ ```shell
41
+ npm version 1.0.1
42
+ ```
43
+
44
+ > [!NOTE]
45
+ >
46
+ > This will not automatically commit the updated `package.json` or tag the release as this functionality has been disabled in `.npmrc` to allow for external versioning.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "highlightjs-opl",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Psion OPL syntax highlighting plugin for highlight.js",
5
5
  "main": "src/languages/opl.js",
6
6
  "directories": {
@@ -25,5 +25,8 @@
25
25
  "url": "https://github.com/jbmorley/highlightjs-opl/issues"
26
26
  },
27
27
  "homepage": "https://github.com/jbmorley/highlightjs-opl",
28
- "type": "module"
28
+ "type": "module",
29
+ "dependencies": {
30
+ "highlight.js": "^11.x"
31
+ }
29
32
  }