Sunburst Code Prettify WordPress Plugin
Uses Highlight.js with the Sunburst syntax theme to elegantly highlight code.
This plugin uses the Sunburst theme, a colorful and high contrast dark theme to highlight your code syntax with Highlight.js. Highlight.js is accurate, fast, lightweight and easy to use.
Usage
Short-code method:
- From within a WordPress page or post, wrap the
[prettify][/prettify]shortcode around the code snippet you wish to highlight. - You can specify a language by specifying the language extension inside the shortcode. Example:
[prettify class="html"][/prettify]
- The shortcode will work from within either the Visual or HTML editor.
Non-short-code method:
- Wrap your code snippets in ``
code
highlight
programming
sunburst
syntax
Sites running Sunburst Code Prettify, click to open one
Plugins with a similar footprint
Ranked by how many sites run them — a quick way to compare alternatives.
Usage of Sunburst Code Prettify over time
June 2023 — July 2024Between June 2023 and July 2024 the number of sites running this plugin went from 15 to 9 — down 6 (-40%).
| Month | Sites | Change |
|---|---|---|
| July 2024 | 9 | +0 |
| June 2024 | 9 | -1 |
| May 2024 | 10 | +0 |
| April 2024 | 10 | +0 |
| March 2024 | 10 | -1 |
| February 2024 | 11 | -1 |
| January 2024 | 12 | -1 |
| December 2023 | 13 | +1 |
| November 2023 | 12 | +0 |
| October 2023 | 12 | -3 |
| September 2023 | 15 | +0 |
| August 2023 | 15 | +0 |
| July 2023 | 15 | +0 |
| June 2023 | 15 | — |
Sites running Sunburst Code Prettify
All sites in the collection9 examples from the collection. Open any site to see the theme and plugins we found on it.