• Resolved deringo

    (@deringo)


    Hello!
    I have just installed a new WordPress Blog, with CodeMirror Blocks as Plugin for Syntax Highlighting.
    Works fine while editing and in preview mode. But when I release the post and view it in “normal” mode, the highlighting is gone.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Vicky Agravat

    (@vickyagravat)

    Hello @deringo

    The link you have send is your home page. and the code block is not highlight on home page by default.

    it is only highlight on single post.
    Here is the link: https://ingo.kaulbach.de/index.php/2020/07/

    if you want to enable it on home page just go to CodeMirror Blocks Setting and ‘Enable Code Block on Home Page?’ Radio button to Yes and Save it.
    It will work on your home page.

    Thread Starter deringo

    (@deringo)

    Hello @vickyagravat

    Thank you for your quick reply!
    I enabled Code Block on Home Page as suggested from you and it worked fine: My first Post had highlighted code on the Home Page. YAY!
    So I wrote a second post about this “Bug” and how I solved it.

    Now I have two post on my Home Page. And unfortunately the code highlighting of the first post was gone again :'(

    I disabled the second post: The syntax highlighting of the fist post was there again.
    I enabled the second post again: The syntax highlighting of the fist post was gone :'(

    Next test:
    I added block of code in my second post.
    The code of the second post was highlighted on the Home Page. And also the code of the first post on the Home Page!

    (Workaround:
    I add some code to every post, so the highlight will work.)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Highlighting only working in Preview View’ is closed to new replies.