Title: Crayon Post Database Issues
Last modified: May 18, 2023

---

# Crayon Post Database Issues

 *  [briangladman](https://wordpress.org/support/users/briangladman/)
 * (@briangladman)
 * [3 years ago](https://wordpress.org/support/topic/crayon-post-database-issues/)
 * First of all, my thanks to you for being willing and able to take on support 
   for this syntax highlighter, which I very much appreciate.
 * But since moving to your version it seems that the internal database of Crayon
   posts has errors in it with some erroneous records and many comments that include
   Python that are not being included. In consequence, when I edit some comments
   the crayon highlighting is being stripped out (I am guessing those not in the
   database?).
 * Strangely I can edit my own new comments but not new comments made by other people(
   who often ask me to update their Python code).
 * I have used the ‘refresh’ button but the problem is still present. I am hence
   wondering whether this is an issue in building or maintaining the internal database?
   Is there a way of regenerating the database form scratch?
 * Any advice you can offer would be much appreciated. My site is at: brg.me.uk

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

 *  Plugin Author [urvanov](https://wordpress.org/support/users/urvanov/)
 * (@urvanov)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/crayon-post-database-issues/#post-16833569)
 * [@briangladman](https://wordpress.org/support/users/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?
 *  Thread Starter [briangladman](https://wordpress.org/support/users/briangladman/)
 * (@briangladman)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/crayon-post-database-issues/#post-16833946)
 * 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](https://brg.me.uk/?p=8277)
 * Thank you again for taking the time to consider this issue.
 *  Plugin Author [urvanov](https://wordpress.org/support/users/urvanov/)
 * (@urvanov)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/crayon-post-database-issues/#post-16934194)
 * [@briangladman](https://wordpress.org/support/users/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 2 years, 10 months ago by [urvanov](https://wordpress.org/support/users/urvanov/).
 *  Plugin Author [urvanov](https://wordpress.org/support/users/urvanov/)
 * (@urvanov)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/crayon-post-database-issues/#post-16934196)
 * 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.
 *  Plugin Author [urvanov](https://wordpress.org/support/users/urvanov/)
 * (@urvanov)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/crayon-post-database-issues/#post-16934286)
 * 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.

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

The topic ‘Crayon Post Database Issues’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/urvanov-syntax-highlighter.svg)
 * [Urvanov Syntax Highlighter](https://wordpress.org/plugins/urvanov-syntax-highlighter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/urvanov-syntax-highlighter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/urvanov-syntax-highlighter/)
 * [Active Topics](https://wordpress.org/support/plugin/urvanov-syntax-highlighter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/urvanov-syntax-highlighter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/urvanov-syntax-highlighter/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [urvanov](https://wordpress.org/support/users/urvanov/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/crayon-post-database-issues/#post-16934286)
 * Status: not resolved