{"repo":"westonruter/syntax-highlighting-code-block","free":true,"listed":false,"github":"https://github.com/westonruter/syntax-highlighting-code-block","clone":"git clone https://github.com/westonruter/syntax-highlighting-code-block.git","description":"Extending the WordPress Code block with syntax highlighting rendered on the server, thus having faster frontend performance and being AMP-compatible.","language":"PHP","stars":127,"topics":["wordpress","wordpress-plugin"],"license":"GPL-2.0","category":"self-hosted-apps","readme_excerpt":"Syntax-highlighting Code Block (with Server-side Rendering) Extending the Code block with syntax highlighting rendered on the server, thus being AMP-compatible and having faster frontend performance. Contributors: westonruter, allejo Tags: block, code, code syntax, syntax highlight, code highlighting Tested up to: 7.0 Stable tag: 1.5.2 License: GPLv2 or later Description This plugin extends the Code block in WordPress core to add syntax highlighting which is rendered on the server. Pre-existing Code blocks on a site are automatically extended to include syntax highlighting. Doing server-side syntax highlighting eliminates the need to enqueue any JavaScript on the frontend (e.g. Highlight.js or Prism.js) and this ensures there is no flash of unhighlighted code (FOUC?). Reducing script on the frontend improves frontend performance, and it also allows for the syntax highlighted code to appear properly in AMP pages as rendered by the official AMP plugin (see also ampproject/amp-wp#972) or when JavaScript is turned off in the browser. This extended Code block uses language auto-detection to add syntax highlighting, but you can override the language in the block's settings sidebar. (There is currently no syntax highlighting of the Code block in the editor, but see #8.) The plugin supports all programming languages that highlight.php supports (being a port of highlight.js). The Code block also is extended to support specifying lines to highlight which get marked up with mark element","default_branch":null,"files":null,"tree":[],"storefront":"/r/westonruter","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/westonruter/syntax-highlighting-code-block/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}