arche-highlight 0.5.2 → 0.5.4
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.
- package/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ ArcheHighlight.parseJavaScript(code)
|
|
|
44
44
|
|
|
45
45
|
## React Element or HTML
|
|
46
46
|
ArcheHighlight requires a special `Span` function to exist globally on the server `globalThis` object or on the client `window` object. The global `Span` function can be from `ReactElement`, which is created from `Arche` and `React`.
|
|
47
|
-
```
|
|
47
|
+
```javascript
|
|
48
48
|
const ReactElement = Arche(React)
|
|
49
49
|
window.Span = ReactElement.Span
|
|
50
50
|
```
|
|
@@ -68,7 +68,7 @@ The following JavaScript classes are added to the code as `span` elements of the
|
|
|
68
68
|
* `comment` - single line (`//`) or multi-line comments (`/* */`)
|
|
69
69
|
* `number` - numbers, for example `1`, `0`, `2.5`, `-1`, `100`
|
|
70
70
|
* `string` - strings, for example `"a"`, `'a'`, `"This is a string."`
|
|
71
|
-
* `template-literal` - template literals, for example
|
|
71
|
+
* `template-literal` - template literals, for example `` `This is a${x} ${y} literal` ``
|
|
72
72
|
* `template-variable` - variables in template literals, for example the `${x}` and `${y}` in the template literal above.
|
|
73
73
|
* `bigint` - JavaScript BigInts, for example `2n`.
|
|
74
74
|
* `variable-declaration-keyword` - `var`, `const`, `let`
|