EnlighterJS / Plugin.WordPress

:package: Official WordPress Plugin of EnlighterJS
http://wordpress.org/plugins/enlighter/
GNU General Public License v2.0
117 stars 17 forks source link

Enlighter not working at all #346

Closed Ennowulff closed 2 years ago

Ennowulff commented 2 years ago

Hey! I searched for a syntax highlighter to work with ABAP. Unfortunately it does not work at all... :(

Example https://tricktresor.de/blog/programmatische-anlage-einer-klasse/

Any ideas what I might be doing wrong?

I do not use any caching plugins (afaik). Thanks Enno

AndiDittrich commented 2 years ago

Hi @Ennowulff ,

your theme applies some "optimization" to the scripts, therefore EnlighterJS cannot be initialized.

Try Enlighter -> Options -> Resources -> Initialization -> Add code to library (single file) - this may solve your specific "issue"

Ennowulff commented 2 years ago

Hey @AndiDittrich Thanks for your reply! I did activate single file option but it had no effect... 😢 DRI (Dynamic Ressource Invocation) is not activated.

AndiDittrich commented 2 years ago

now EnlighterJS can be initialized but you're not using the EnlighterJS Gutenberg blocks:

that's how your code looks like.. <pre class="[wp-block-preformatted]()">CLASS zcl_test_007 DEFINITION

Ennowulff commented 2 years ago

Thanks a lot @AndiDittrich ! Now it works!