You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
24
26
</script>
25
27
```
26
28
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
+
<codeclass="language-apex">
34
+
...
35
+
</code>
36
+
</pre>
37
+
```
38
+
27
39
For more details of the usage see [Highlight.js main page](https://github.com/highlightjs/highlight.js#highlightjs).
0 commit comments