Skip to content

Commit

Permalink
feat(copilot): support highlight more code lang
Browse files Browse the repository at this point in the history
  • Loading branch information
ysfscream authored and Red-Asuka committed Dec 8, 2023
1 parent 00ac5d7 commit b1f0e3f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 22 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,28 @@ const plugins = [
[
'prismjs',
{
languages: ['javascript'],
languages: [
'javascript',
'json',
'python',
'java',
'bash',
'sql',
'c',
'csharp',
'cpp',
'go',
'kotlin',
'php',
'ruby',
'rust',
'scala',
'swift',
'typescript',
'yaml',
'erlang',
'dart',
],
// plugins: ['line-numbers'],
// theme: 'funky',
css: true,
Expand Down
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import VueLog4js from './plugins/logPlugin/index'
import { getOrCreateLogDir } from './utils/logger'
import logConfig from './plugins/logPlugin/logConfig.json'
import useConnection, { initOptionModel } from './database/useConnection'
import VueMarkdown from 'vue-markdown'

const { ConnectionInit } = useConnection()
// Init typeORM connection before Vue APP start, after this DI services are available.
Expand All @@ -36,6 +37,7 @@ ConnectionInit({ doMigrations: false, undoMigrations: false } as initOptionModel
Vue.use(VueClipboard)
Vue.use(VueLog4js, config)
Vue.use(VueRx)
Vue.use(VueMarkdown, { prism: require('prismjs/components/prism-core') })

const locale: Language = store.state.app.currentLang
const vueI18n: VueI18n = new VueI18n({
Expand Down

0 comments on commit b1f0e3f

Please sign in to comment.