Skip to main content

Prismatic Syntax Highlighter Compatibility with Autoptimize Plugin

Out of the box the excellent Prismatic plugin has some compatibility issues with Autoptimize. Specifically the highlight.js portion, as the Prism themes seem to work just fine. But if you’ve chosen to use the highlight.js library and your styles aren’t showing up in your code, try this.

Navigate to

**Autoptimize Settings > Javascript Options > Exclude scripts from Autoptimize ** and then add the following to the excluded scripts list

wp-content/plugins/prismatic/lib/highlight/js/highlight-core.js

autoptimize settings

edit 7/10/2020 excluding scripts from Autoptimize is one of the best ways in general to solve compatibility issues between Autoptimize and other plugins in general, not just this plugin.

Comments

Recent Work

Free desktop AI Chat client, designed for developers and businesses. Unlocks advanced model settings only available in the API. Includes quality of life features like custom syntax highlighting.

Learn More

BidBear

bidbear.io

Bidbear is a report automation tool. It downloads Amazon Seller and Advertising reports, daily, to a private database. It then merges and formats the data into beautiful, on demand, exportable performance reports.

Learn More