Use prism as smaller nicer code highlighting library
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
document.addEventListener("turbolinks:load", function () {
|
||||
document.querySelectorAll('pre code').forEach(function (block) {
|
||||
if (window.hljs) {
|
||||
hljs.highlightBlock(block);
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -13,7 +13,7 @@ require('tinyforms');
|
||||
require('demo');
|
||||
require('backend_typed');
|
||||
require('tabs');
|
||||
require('highlight');
|
||||
require('prism');
|
||||
|
||||
// Uncomment to copy all static images under ../images to the output folder and reference
|
||||
// them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>)
|
||||
|
||||
17
app/javascript/prism.js
Normal file
17
app/javascript/prism.js
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user