WordPress.org

Ready to get started?Download WordPress

Forums

Prettify GC Syntax Highlighter
[resolved] great plugin, a few small quirks & requests (3 posts)

  1. thecoup
    Member
    Posted 2 years ago #

    hello. thanks for the great plugin.

    3 things would make this even better:

    1. most importantly: only load .css and .js on pages with class="prettyprint"
    2. add a shortcode so people can add this in html and visual editor. [prettyprint]code code[/prettyprint]
    3. add a background for people with a site that has light text on a dark background.

    thanks for all of your work!

    http://wordpress.org/extend/plugins/prettify-gc-syntax-highlighter/

  2. lexn
    Member
    Plugin Author

    Posted 2 years ago #

    1. css and js files should be cached by the browser, so this should not be a problem. Currently the plugin uses WP filter and does not have direct access to the page content, so this feature will require a complete rewrite.

    2. Adding shortcode is a good idea, will be in the next release.

    3. You can already do background using styles, I will add it to the shortcode.

    Thanx for the feedback.

  3. lexn
    Member
    Plugin Author

    Posted 2 years ago #

    Added shortcode, though it's somewhat finicky due to WP auto-formatting.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic