Skip to content

Commit

Permalink
pkp#9840 Remove vue3-highlightjs and add Add "highlightjs/vue-plugin"…
Browse files Browse the repository at this point in the history
…. Use only XML language.
  • Loading branch information
defstat committed May 31, 2024
1 parent 23e3b5e commit ade9472
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions js/load.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,14 @@ import FieldUpload from '@/components/Form/fields/FieldUpload.vue';
import FieldUploadImage from '@/components/Form/fields/FieldUploadImage.vue';
import FieldSlider from '@/components/Form/fields/FieldSlider.vue';

import VueHighlightJS from 'vue3-highlightjs';
import 'highlight.js/styles/default.css';


import 'highlight.js/styles/stackoverflow-light.css'
import hljs from 'highlight.js/lib/core';
import xml from 'highlight.js/lib/languages/xml';
import hljsVuePlugin from "@highlightjs/vue-plugin";

hljs.registerLanguage('xml', xml);

// Panel components from UI Library
import ListPanel from '@/components/ListPanel/ListPanel.vue';
Expand Down Expand Up @@ -244,7 +250,7 @@ function pkpCreateVueApp(createAppArgs) {
vueApp.component(componentName, allGlobalComponents[componentName]);
});

vueApp.use(VueHighlightJS);
vueApp.use(hljsVuePlugin);

return vueApp;
}
Expand Down

0 comments on commit ade9472

Please sign in to comment.