Skip to content

WordPress plugin for automatic code highlighting using the Prettify library. No shortcodes, no classnames, pure awesome.

Notifications You must be signed in to change notification settings

sorincoza/code-prettify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

WordPress plugin for automatic code highlighting using the Prettify library. No shortcodes, no classnames, pure awesome.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 78.2%
  • PHP 12.8%
  • CSS 8.8%
  • Shell 0.2%