On the settings page, the title has a typo:
Smart Synax Plugin Settings
It should be:
Smart Syntax Plugin Settings
]]>When I access the settings page, I get these errors:
Notice: Use of undefined constant cdn_prettify – assumed ‘cdn_prettify’ in /wp-content/plugins/smart-syntax/includes/admin-menu.php on line 47
Notice: Use of undefined constant custom_skin – assumed ‘custom_skin’ in /wp-content/plugins/smart-syntax/includes/admin-menu.php on line 50
]]>I recently started receiving this error message at the top of my website:
Cannot access property of non object in wp-content/plugins/smart-syntax/includes/functions.php at line 17
I modified the functions.php file like this to avoid getting the error:
$content = "";
if(is_object($post) && is_object($comment) && property_exists($post,"post_content") && property_exists($comment,"comment_content") ){
$content = $post->post_content . $comment->comment_content;
}
]]>
Has anyone had success with enabling this plugin on a custom post type? I like using it with Jetpack Markdown, but it’s not working in a custom post type within my theme.
]]>I didn’t work with my homepage (only on single post pages), so I removed the is_singular() check in functions.php and now it works!
Is there a specific reason for that check? Thanks!
]]>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
I put the following code into a post and it came out not as code but as interpreted HTML
<?prettify?>
<pre class="prettyprint">
<h1>fred</h1>
</pre>
What else do I have to do to me it work?
]]>I installed your plugin. When I view a page I get an error in the console:
Uncaught ReferenceError: prettyPrint is not defined
Also, the page can’t find a reference to the css prettify.css
]]>Hi,
when I view my Home Page the <pre>
tags are modified like this:
<pre class="prettyprint lang-css">
or
<pre class="prettyprint lang-csharp">
But when I select to view a single post the tags are slightly different:
<pre style="" class="prettyprint lang-css prettyprinted">
or
<pre style="" class="prettyprint lang-csharp prettyprinted">
Is this a bug?
]]>