Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(copilot): support highlight more code lang #1517

Merged
merged 1 commit into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading