EnlighterJS / Plugin.WordPress

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

Code display style issues #187

Closed Ryan-Gao closed 5 years ago

Ryan-Gao commented 5 years ago

I use EnlighterJS plugin throughout the site, It works most of the time, I recently created a new page where the code appears to have some issues: After the page loads, the code must be refreshed again to display properly The picture below is a comparison QQ图片20190908171004 The left is the error display and the right is the refreshed normal style

here is a example url: https://www.powerbigeek.com/datetime-functions/

AndiDittrich commented 5 years ago

you're using another syntax highlighting plugin which conflict with EnlighterJS - the markup on the left is not created by Enlighter nor the editing plugins

Ryan-Gao commented 5 years ago

you're using another syntax highlighting plugin which conflict with EnlighterJS - the markup on the left is not created by Enlighter nor the editing plugins

Thanks for your quick reply, I checked all the plugins, Enlighter 3.10.0 is the only plugin installed for syntax highlighting. maybe there is another plugin which conflicts with it ? Can you tell me which one it is ? thanks!

On the left and right of the figure above is the same article, The edit page looks like this PowerBIGeek_20190908_235108

Ryan-Gao commented 5 years ago

Hi Andi , I consulted the theme developers, The theme I used has a built-in code highlighting function, which may conflict with the plugin. Now It was removed. So the problem is that Enlighter plugin js cannot load without refreshing the page, Are there any workarounds to load js without refreshing the page? thanks

Ryan-Gao commented 5 years ago

This problem is solved. Thanks for your help