Support » Plugin: Enlighter - Customizable Syntax Highlighter » Text in back-ticks not rendered as “Enlighter inline code”

  • Hi!
    Love your plugin! But I have a little problem:
    When I write code in back-ticks, it’s automatically converted to an Inline Code rich text component, but not to an Enlighter Inline Code component.

    This way, I have to go through all inline code snippets in my articles and manually replace them with Enlighter Inline Code. Is there any way to have inline code in back-ticks directly convert into an Enlighter Inline Code?


Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Andi Dittrich


    Gutenberg or ClassicEditor ?

    Generally old posts created with the default “code” tags cannot be converted to EnlighterJS because of the missing language attributes – it has to be done manually.

    As a workaround you can add additional css selectors which are matching these elements – in this case the global default(fallback) language will be used.

    • This reply was modified 10 months, 2 weeks ago by Andi Dittrich.
    Thread Starter quickmischa


    Thanks for the quick reply!

    It’s the Gutenberg editor, but I’m actually talking about new posts, not old ones.

    We usually write programming-related posts in Markdown and then copy-paste them to the Gutenberg editor. Multiline-code snippets (3 back-ticks) are rendered correctly as Enlighter code block, but inline code (1 back-tick) is not. It’s always rendered as the default WordPress inline code element.

    Plugin Author Andi Dittrich


    as i know there is no possibility to remove this “build-in” Gutenberg feature – maybe you can start a support request to the Gutenberg devs on GitHub

    Thread Starter quickmischa


    Okay, I see. I might do that. Thanks again for the quick feedback!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Text in back-ticks not rendered as “Enlighter inline code”’ is closed to new replies.