Title: function prettyPrint is not defined
Last modified: August 22, 2016

---

# function prettyPrint is not defined

 *  [fyrye](https://wordpress.org/support/users/fyrye/)
 * (@fyrye)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/function-prettyprint-is-not-defined/)
 * Simple fix in smart-syntax/includes/functions.php line 46
 *     ```
       <?php if (true === empty($smart_syntax['cdn_prettify'])) { ?>
       				<script>prettyPrint()</script>
       <?php } ?>
       ```
   
 * The error occurs when loading run_prettify.js from the google repository.
    [https://code.google.com/p/google-code-prettify/wiki/GettingStarted#Auto-Loader](https://code.google.com/p/google-code-prettify/wiki/GettingStarted#Auto-Loader)
 * [https://wordpress.org/plugins/smart-syntax/](https://wordpress.org/plugins/smart-syntax/)

The topic ‘function prettyPrint is not defined’ is closed to new replies.

 * ![](https://ps.w.org/smart-syntax/assets/icon.svg?rev=979555)
 * [Smart Syntax](https://wordpress.org/plugins/smart-syntax/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/smart-syntax/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/smart-syntax/)
 * [Active Topics](https://wordpress.org/support/plugin/smart-syntax/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smart-syntax/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smart-syntax/reviews/)

## Tags

 * [not defined](https://wordpress.org/support/topic-tag/not-defined/)

 * 0 replies
 * 1 participant
 * Last reply from: [fyrye](https://wordpress.org/support/users/fyrye/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/function-prettyprint-is-not-defined/)
 * Status: not resolved