Support » Plugin: Enlighter - Customizable Syntax Highlighter » Enlighter Plugin Not Working with LightSpeedCache

  • Hi Support,

    I want to raise an issue with the developers of the plugin. I have code which I display in various posts using Enlighter Plugin but I am also using LiteSpeed Cache Plugin as well to speed up my site. As soon as I disable LiteSpeed Cache Plugin Enlighter displays the code block with correct formatting but when lite speed cache is enabled the code formatting breaks.

    Any idea why this behaviour for the plugin and what I can do to fix this issue for my site. I am providing a link to one of my blog post having issues. Hope someone can help me here.

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

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

    (@andi-dittrich)

    you have to exclude the Enlighter resources from caching (wp-content/plugins/enlighter) – simple cache algorithms didn’t take care of the dynamically generate files.

    makhijajatin

    (@makhijajatin)

    Thanks its working fine now. Can you please advise on point:

    > How can i Apply Code Block Title [I can achieve this by using Code Group but then A unique identifier is required for each code block to display the Code Title which is not ideal]. Is there an easy way to show the code blocks with Title e.g the Language of the Code ?

    makhijajatin

    (@makhijajatin)

    Also How can i add the default language to Set to Powershell instead of Generic Highlighting. Everytime i copy the code i have to change the language to Powershell.

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    codeblock title: this feature is projected for the upcoming pro/enterprise editions. currently the workaround (or some kind of php based regex filtering) is the only way to go.

    a pre-selection has not been implemented yet. it can be added in the future – but i’m not sure if it should be done via the settings or just using the “last used language” within the localStorage on per-user base.

    as a workaround you can alter the language list via filters and just add your favorite language as first array item

    makhijajatin

    (@makhijajatin)

    Thanks for the quick response. Can you please share the PHP RegEx based code which i can just paste in My Code Snippet and test for Code Block.

    This is the example link where you can see i have code title + Code Identifier which enabled me to show the code block title, but this is really cumbersome to do this way.

    https://techpress.net/office365-exchange-online-messages-are-not-moving-to-archive-mailbox-after-applying-retention-policy-litigation-hold-retention-hold/

    When you can on the Site you will see that i am using enlighter theme which when you hover over the code shows the Icons for Copy, RAW and Open in New Window. Is it Possible to change the icons and replace it with the Names or buttons. Some custom CSS if you can provide ?

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    i’m sorry but i didn’t have the time to provide custom solutions right now (no ready-to-go code-snippet available)

    change toolbar styles: https://github.com/EnlighterJS/documentation/blob/master/Tweaks.md

    makhijajatin

    (@makhijajatin)

    Ok, Thanks.

    makhijajatin

    (@makhijajatin)

    When the Pro version will be available. Looking forward for the pro version.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.