surmon-china / vue-codemirror

@codemirror code editor component for @vuejs
https://github.surmon.me/vue-codemirror
MIT License
3.28k stars 382 forks source link

shell脚本怎么配置 #52

Closed pfpGit closed 6 years ago

pfpGit commented 6 years ago

如题,语法高亮设置可以,但是怎么让插件可以想shell那样自动完成

editorOption: { tabSize: 4, styleActiveLine: true, line: true, mode: 'text/x-sh', lineWrapping: true, theme: 'base16-dark', scrollbarStyle: null, }

surmon-china commented 6 years ago

像 shell 一样是做不到的,可以像 codemirror 一样。 https://github.com/surmon-china/vue-codemirror/blob/master/examples/02-text-javascript.vue