Title: Enqueueing Prettify
Last modified: August 20, 2016

---

# Enqueueing Prettify

 *  [Dustin Lammiman](https://wordpress.org/support/users/nosecreek/)
 * (@nosecreek)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/enqueueing-prettify/)
 * First off, thank you for making this fantastic plugin.
 * Could I just make one small request for the next version of this plugin? When
   you enqueue prettify could you use ‘prettify’ as the handle rather than ‘markdown_pretty’
   which you are using now? The reason is that I am using a theme that has prettify
   support built in, so enabling prettify support in your plugin causes the prettify
   script to get loaded twice. I think this could be an issue for other people who
   use similar themes or plugins which also reference this library. If we all used
   a common handle (my suggestion is ‘prettify’), WordPress would only include it
   once.
 * [http://wordpress.org/extend/plugins/wp-markdown/](http://wordpress.org/extend/plugins/wp-markdown/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Stephen Harris](https://wordpress.org/support/users/stephenh1988/)
 * (@stephenh1988)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/enqueueing-prettify/#post-3209562)
 * Hi Dustin,
 * Actually, I named it `markdown_pretty` *because* of potential clashes (i.e. another
   plug-in enqueuing a (not necessarily the same) script with handle ‘prettify’).
 * But this definitely needs sorting. Perhaps filtering the handle to allow it to
   be changed.
 * That said, prettify seems a pretty stable script – and its not very likely that
   another plug-in will use that handle for something that isn’t prettify or is 
   a really old version. So maybe I’m being over cautious.
 * I’ll have a think…
 *  Thread Starter [Dustin Lammiman](https://wordpress.org/support/users/nosecreek/)
 * (@nosecreek)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/enqueueing-prettify/#post-3209573)
 * Yeah, I realized that after I started this topic. Nifty little script to make
   WordPress play nice with prettify. Perhaps the little custom piece should move
   to a separate script, but then you’d have an extra request for just that tiny
   piece of code… I see your dilemma.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Enqueueing Prettify’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-markdown_d5ecec.svg)
 * [WP-Markdown](https://wordpress.org/plugins/wp-markdown/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-markdown/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-markdown/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-markdown/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-markdown/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-markdown/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Dustin Lammiman](https://wordpress.org/support/users/nosecreek/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/enqueueing-prettify/#post-3209573)
 * Status: not a support question