I use the Classic Editor plugin to restore the old UI for editing blog posts because I find it more intuitive. Do you know if Prettify works with the Classic Editor? I installed it but couldn’t figure out how to make it work. thanks!
]]>The plugin load JS for every page, even page has not pre tag. Can you update the plugin let it unload JS for the page that has not pre tag.
]]>Notice: WP_Scripts::localize was called incorrectly. The $l10n
parameter must be an array.
Origin of the error
File: code-prettify.php
Code:
wp_localize_script(
'code-prettify',
'codePrettifyLoaderBaseUrl',
plugins_url( 'prettify', __FILE__ )
);
Can you solve the problem and update the plugin? Thanks
]]>Could you guide me how to fix this powershell language syntax highlighter and please provide list of language supporting for syntax highlighter.
]]>Is it possible to use the preload function for the css file?
Preload key requests
1.05 s
Consider using <link rel=preload> to prioritize fetching resources that are currently requested later in page load. Learn more.
/wp-content/plugins/code-prettify/prettify/prettify.css
]]>How to append code prettify to custom wp editor form, working with new & edit comments form but not wp custom comments form.
]]>Hi there,
please have a look at the linked page: https://broken-butterfly-7931.site.hardypress.com/react-storybook-driven-development/
<button> are red while </button> are black colored.
Please advice,
Pietro
Hi,
I was looking for a way to highlight posted code in pages/posts. I have installed this and it works great in highlighting but it puts all the text between the pre tags into a single line.
instead of having it like this
a = a +1;
b = a + 4;
c = a + b;
if ((q1 == true) || (q2 == true)) {
// Do work here
}
it is displayed as
a = a +1; b = a + 4; c = a + b; if ((q1 == true) || (q2 == true)) { // Do work here }
Is the way to sort this? or should I use a different plugin in which case does anyone have a recommendation
Thanks
]]>Currently, this plugin is the best option I’ve found but it seems it does not have the inline highlighting feature. Any comments or news about that? Thanks!
]]>Hello, i put on my wordpress site this code
pre code my code /code /pre
but this show only default theme, i want to use Sons of Obsidian theme.
Wich code instead pre /pre i have to use?
just noticed it ads <span> to everything…are there plans to fix?
]]>Hi Kaspars and thank you for this great plugin.
– I was wondering if your plugin supports themes.
More specifically (available styles):
https://cdn.rawgit.com/google/code-prettify/master/styles/index.html
– If yes, are there any instructions (on how to use themes or implement your own theme)?
Thanks in advance.
Andrea.
]]>I just installed and activated the code prettify plugin on my forums, but the plugin doesn’t seem to catch either the
<pre>
or <code>
front end flags. Here is how I’m formatting my text – is this the proper way to exercise the plugin?
Test Post
<pre>
test 123
test 321
</pre>
And... <code>Inline code</code>
If that is correct, what can I do to troubleshoot as to why the plugin is not working?
https://www.ads-software.com/plugins/code-prettify/
When I paste code in the TEXT editor it gets parsed as actual HTML code, even with the
<pre><code> ... </code></pre>
If I paste with the VISUAL editor it shows the code correctly as code but it loses its formatting.
Thanks!
Charles
]]>I use this plugin since 3 months. Until now everything was working well.
I just figured my code isn’t displayed anymore. I tried to verify if the problem was from my side but I found nothing.
HELP ! If I can’t fix this trouble very quickly, I’ll have to find another plugin. If you can fix this plugin, I’ll make you very good comments !
Thx
]]>There are some code lines which are supposed to be purpole (my guess), but are dark now.
Please check https://twainscanning.com/build-web-page-to-scan-documents-to-pdf-in-5-minutes/ for the issue.
Thanks.
]]>