• 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

    (@urvanov)

    @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

    (@briangladman)

    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.

    Plugin Author urvanov

    (@urvanov)

    @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, 3 months ago by urvanov.
    Plugin Author urvanov

    (@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.

    Plugin Author urvanov

    (@urvanov)

    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.