https://github.com/schweinepriester/wp-pygments
Plug the Python syntax highlighter Pygments into WordPress to turn every <pre><code> into highlighted code server-side, no JavaScript required!
https://github.com/schweinepriester/wp-pygments
pygments server-side syntax-highlighting wordpress wordpress-plugin
Last synced: 14 days ago
JSON representation
Plug the Python syntax highlighter Pygments into WordPress to turn every <pre><code> into highlighted code server-side, no JavaScript required!
- Host: GitHub
- URL: https://github.com/schweinepriester/wp-pygments
- Owner: Schweinepriester
- License: mit
- Created: 2018-02-17T20:07:07.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-04-12T03:22:35.000Z (about 5 years ago)
- Last Synced: 2026-03-29T14:32:48.027Z (2 months ago)
- Topics: pygments, server-side, syntax-highlighting, wordpress, wordpress-plugin
- Language: PHP
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WP-Pygments
Plug the Python syntax highlighter [Pygments](https://pygments.org/) into
WordPress to turn every `
` into highlighted code server-side,
no JavaScript required!
Originally created by [@wellingguzman](https://github.com/wellingguzman), this repo was a fork.
MIT license and continuation of the plugin with [permission](https://twitter.com/wellingguzman/status/1381198380584558594).
# THIS IS JUST A SIMPLE PLUGIN, NOT HIGHLY TESTED, USE IT AT YOUR OWN RISK
## Tutorial
You can read the tutorial here , not on how to use it, but how [@wellingguzman](https://github.com/wellingguzman) wrote it.
## How to use it
1. Copy `WP-Pygments` into your plugins directory in WordPress
2. Head to `wp-admin/plugins.php` and activate `WP Pygments`
3. Now every `
` you have in your post/page content would turn into pygments highlighted code
Ex:
```html
```