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
As of this writing, [highlight.php is two major versions behind Highlight.js](https://github.com/scrivo/highlight.php/issues/73). As a result, syntax highlighting may differ between platforms.
66
-
67
-
Here is an example of JavaScript highlighted using highlight.php version 9.8.1.10.
The [Syntax-highlighting Code Block plugin for WordPress](https://wordpress.org/plugins/syntax-highlighting-code-block/) enhances the core code block with [highlight.php](https://github.com/scrivo/highlight.php). It also adds a few additional features, including a code language label for accessibility.
76
-
77
-
Currently, our theme only supports this code language label (though it hides it visually for simplicity). In the future we may also add support for highlighted lines and line numbers.
The [Syntax-Highlighting Code Block](https://wordpress.org/plugins/syntax-highlighting-code-block/) is a plugin for WordPress that enhances the native code block with some additional functions. It uses [highlight.php](https://github.com/scrivo/highlight.php) to apply syntax highlighting on the server instead of the client.
38
+
39
+
This leverages the same styles [as our Highlight.js theme](/?path=/docs/vendor-highlight--theme). But as of this writing, [Highlight.php is two major versions behind Highlight.js](https://github.com/scrivo/highlight.php/issues/73). As a result, syntax highlighting may differ between platforms.
40
+
41
+
## Basic Output
42
+
43
+
Without any options selected, the plugin applies highlighting and appends a description of the code language for assistive devices (hidden visually).
The plugin also supports line wrapping, highlighted lines and line numbering. Our theme requires [default plugin styles to be suppressed](https://github.com/westonruter/syntax-highlighting-code-block/wiki#suppress-all-plugin-styles) so it won't conflict with these styles.
0 commit comments