代码块默认选中的语言可以改吗?codeSelectLang里面设置defaultLanguage属性不生效 #6063
Unanswered
LK19931225
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
const editorConfig: Partial = {
placeholder: "请输入正文内容",
MENU_CONF: {
// 代码块语言选择
codeSelectLang: {
// 支持的代码语言,不写则为全语言
codeLangs:[
{ text: "C++", value: "cpp" },
{ text: "Python", value: "python" },
],
defaultLanguage: 'python', // 这里设置了没生效
},
},
};
我想插入代码块时,默认选中python语言进行高亮,设置了defaultLanguage属性,但是没有生效
Beta Was this translation helpful? Give feedback.
All reactions