start_sf5_project_reboot/app/assets/js/highlight.js

9 lines
254 B
JavaScript
Raw Permalink Normal View History

2021-04-17 20:11:27 +00:00
import hljs from 'highlight.js/lib/highlight';
import php from 'highlight.js/lib/languages/php';
import twig from 'highlight.js/lib/languages/twig';
hljs.registerLanguage('php', php);
hljs.registerLanguage('twig', twig);
hljs.initHighlightingOnLoad();