//=require prismjs/prism.js //=require prismjs/plugins/autoloader/prism-autoloader.js (function(app) { 'use strict'; // Set autoloading path of the language definitions Prism.plugins.autoloader.languages_path = '/assets/js/prism/'; // Re-run Prism.js on page change app.on('ajax.after', function(target, data) { console.info('Highlighting code blocks on new page'); Prism.highlightAll(); }); })(window.app = window.app || {});