Skip to content

Latest commit

 

History

History
70 lines (36 loc) · 1.83 KB

File metadata and controls

70 lines (36 loc) · 1.83 KB

Code Prettify

Contributors: kasparsd , sorincoza
Tags: code, pre, highlighting, highlight, highlighter, syntax, syntax highlighting, prettify
Requires at least: 3.0
Tested up to: 4.3
Stable tag: trunk

100% automatic code highlighting using the Prettify library. No shortcodes, no classnames, pure awesome.

Description

Uses the Google Code Prettify library that is minified and properly enqueued. Plugin applies code highlighting automatically to all <pre> and <code> tags on the page.

Development

Plugin development on GitHub: github.com/kasparsd/code-prettify

Credits

Created and maintained by Kaspars Dambis. All of my open source work is available on GitHub.

Use Contact Form 7? Storage for Contact Form 7 is my commercial plugin (GPL license) for storing all form submissions in your WordPress database.

Cover photo by Yuri Samoilov

Installation

Simply upload the plugin and active it.

If you want to change the looks of the code, go to plugin's settings page in Dashboard, and select desired skin. Additionally, you can add your custom skins in the /prettify/skins folder - the plugin will automatically recognize new skins.

Frequently Asked Questions

None, yet.

Screenshots

  1. Syntax highlighting applied to a <pre> block and inline <code> segments.

Changelog

1.4

  • Added support for custom skins
  • Added settings page in Dashboard, where the user can select desired skin

1.3.3

  • Update the Prettify library.
  • Highlight <code> blocks too.

1.0

  • Initial release.

Upgrade Notice

1.0

Initial release.