EnlighterJS / Plugin.WordPress

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

How to add a keyword for language? #334

Closed GyverLibs closed 2 years ago

GyverLibs commented 2 years ago

Hello! I need to add a couple of keywords to cpp language (byte, boolean, etc.). I added them to

Also this issue says that "it is possible to re-order the language list using the build-in filters". Where are these filters? Thanks

AndiDittrich commented 2 years ago

i wouldn't recommend to edit these files because they will be removed on each plugin update. instead enqueue your custom enlighterjs version directly.

technically you have to modify /resources/enlighterjs/enlighterjs.min.js and click on "save changes" on the Enlighter settings page to purge the cached files.

the mentioned filters are not related to the internal keywords - see https://github.com/EnlighterJS/documentation/blob/master/wordpress/FilterHooks.md

GyverLibs commented 2 years ago

thanks! It worked after "save changes"