• Resolved John M Beres

    (@johnberes1)


    Hello ^_^

    I am using the WordPress Monostack theme and am enjoying the pronoun/conjunction/preposition “syntax” highlighting! Very fun. However, I am wishing to post code snippets in blog posts within a CodeColorer code block to provide actual language/syntax highlighting. My question…

    -Is there a way I can disable the monostack-syntax-highlighting within a CodeColorer code block?

    <code lang="bash">
    #!/bin/bash
    echo "hello any and all worlds!"
    
    
    ^^Above the theme would highlight "any" and "all" as they are pre-built into the theme as pronouns un functions.php. How can I prevent this just for chunks of code?
Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Mark Uraine

    (@mapk)

    There is no way right now. I’ll take a look at this though. Thanks for bringing it to my attention!

    Theme Author Mark Uraine

    (@mapk)

    I took a look at this, and it appears the plugin, CodeColorer, has difficulties highlighting the text as intended on this theme. All preformatted and code blocks in Gutenberg work just fine without the plugin, but also don’t highlight any syntax.

    It looks like you got it running on your site correctly. If you have time to share your solution, please do so that others might learn from it. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Selectively avoiding “monostack-syntax-highlighting”’ is closed to new replies.