@briangladman I checked your site. It looks well for me. I don’t see any problem with crayon blocks. Can you provide a direct link to a comment and post with the problem?
Thank you for getting back to me about this, I really appreciate your efforts.
(1) When anyone first posts code the highlighter works fine. (2) When I edit my own posts that include code (I.e. posts by BRG) the editing works fine and the syntax highlighting is maintained. (3) But when I am asked to edit a post by someone else, all the syntax highlighting is stripped out and the code appears as plain text.
This appears to be related to the internal database of crayon posts that is maintained by the highlighter. In the settings menu under Posts, when I refresh and then use ‘Show Crayon Posts’, some posts that include Crayon highlighting do not appear in the resulting list while others that are listed are not present.
To show an example of a failed attempt to edit a post, the URL below shows what happens when I attempt to edit the last post on the page:
https://brg.me.uk/?p=8277
Thank you again for taking the time to consider this issue.
@briangladman Yes, the plugin has it internal database that contains information about posts that contain blocks of code. It looks like the plugin works only for posts mentioned in that internal database. The refresh button should work. I don’t know maybe there is some bug inside it. I will try to find out.
I did some research. The plugin refreshes the internal database during activation. I think you can try to deactivate the plugin and then activate it again immediately. It will start to hightlight all posts with crayons that were existed on the moment of activation.
I will try to find out what is the problem with ‘Refresh’ button with the next update.
-
This reply was modified 1 year, 11 months ago by
urvanov.
And of course I think there can be some bug with refreshing this internal database when you edit other users posts. I will try to fix it too.
By the way. Do you use any external editors for editing comments? Maybe it shrinks some tags. I think the code should be at least inside HTML pre tags in the output page. But in the comment I see only ordinary paragraphs.