Skip to content

Commit c23f0b9

Browse files
committed
Update README.md
1 parent 7630f8b commit c23f0b9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Diff for: README.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Apex - a language grammar for the [Salesforce Platform](https://developer.salesforce.com)
22

3+
[![NPM](https://nodei.co/npm/highlightjs-apex.png)](https://npmjs.org/package/highlightjs-apex)
4+
35
## Demo
46

57
The below screenshot was captured from a [demo webpage](demo/testcode.html) after dropping `highlight.min.js` to a `dist` folder.
@@ -24,6 +26,16 @@ Simply load this module after loading Highlight.js. You'll use the minified vers
2426
</script>
2527
```
2628

29+
This will find and highlight code inside of `<pre><code>` tags; it tries to detect the language automatically. If automatic detection doesn’t work for you, you can specify the language in the `class` attribute:
30+
31+
```html
32+
<pre>
33+
<code class="language-apex">
34+
...
35+
</code>
36+
</pre>
37+
```
38+
2739
For more details of the usage see [Highlight.js main page](https://github.com/highlightjs/highlight.js#highlightjs).
2840

2941
### With Node or another build system

0 commit comments

Comments
 (0)