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

  1. Matthew W
    Posted 3 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!


  2. lexn
    Plugin Author

    Posted 3 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
    Plugin Author

    Posted 3 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

  • Prettify GC Syntax Highlighter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic