Title: Console Errors Prettify.css
Last modified: December 12, 2017

---

# Console Errors Prettify.css

 *  [Prodjex](https://wordpress.org/support/users/prodjex/)
 * (@prodjex)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/console-errors-prettify-css/)
 * Not sure why, but just recently the plugin gives console errors on all pages 
   of my website about a prettify.css file.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fconsole-errors-prettify-css%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [adaptistration](https://wordpress.org/support/users/adaptistration/)
 * (@adaptistration)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/console-errors-prettify-css/#post-9820412)
 * Experiencing the same issue here. Is there any way to either resolve this or 
   make sure that pretty.css only attempts to load on pages that actually use the
   highlighter?
 *  [Tecca](https://wordpress.org/support/users/tecca/)
 * (@tecca)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/console-errors-prettify-css/#post-9929338)
 * I just went into plugins/simple-code-highlighter/js/pretty.js and hardcoded the
   URL into it, tbh. Easy enough fix until the plugin dev updates it.
 *  [mathewemoore](https://wordpress.org/support/users/mathewemoore/)
 * (@mathewemoore)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/console-errors-prettify-css/#post-10026713)
 * [@tecca](https://wordpress.org/support/users/tecca/)
 * I agree, I just removed the following line from the pretty.js file:
 * `A.push("loader/prettify.css');`
 * Hopefully this gets fixed soon. Optionally, if you want to use it, you can just
   change that to a hard url for your site like:
 * `A.push("https://www.mysite.com/wp-content/plugins/simple-code-highlighter/js/
   loader/prettify.css");`
 * Although, it actually looked worse since there was no padding around the code.
 * [https://www.antigopc.com/resize-ubuntu-partitions/](https://www.antigopc.com/resize-ubuntu-partitions/)
 *  Thread Starter [Prodjex](https://wordpress.org/support/users/prodjex/)
 * (@prodjex)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/console-errors-prettify-css/#post-10028333)
 * I don’t think the author supports it any longer, it’s been a couple month already.
 * Thanks for the fix though, just applied an the error is gone now. Also a great
   suggestion on the padding.
 * I have some strings that run long in my code that extend out of the frame. Anyone
   else had this issue? If so curious as to how others dealt with it. Word break
   css is all I can think of.
 * Example here: [https://www.prodjex.com/2018/02/jquery-select-drop-change-event/](https://www.prodjex.com/2018/02/jquery-select-drop-change-event/)
 *  [billthecat](https://wordpress.org/support/users/billthecat/)
 * (@billthecat)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/console-errors-prettify-css/#post-10229011)
 * I had this issue too, and traced it back to another plugin – Autoptimize. I disabled
   javascript optimization, and the prettify.css file loaded.
 * So, if you’re using a service like Autoptimize, either disable javascript entirely,
   or exclude the specific file: “wp-content/plugins/simple-code-highlighter/js/
   pretty.js”

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

The topic ‘Console Errors Prettify.css’ is closed to new replies.

 * ![](https://ps.w.org/simple-code-highlighter/assets/icon-128x128.jpg?rev=1315917)
 * [Simple Code Highlighter](https://wordpress.org/plugins/simple-code-highlighter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-code-highlighter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-code-highlighter/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-code-highlighter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-code-highlighter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-code-highlighter/reviews/)

 * 5 replies
 * 5 participants
 * Last reply from: [billthecat](https://wordpress.org/support/users/billthecat/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/console-errors-prettify-css/#post-10229011)
 * Status: not resolved