You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
442 B
JavaScript
16 lines
442 B
JavaScript
//=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 || {});
|