Merge pull request #1768 from nwind/docs-editor-shell

doc:补充 editor shell 支持的说明
This commit is contained in:
RickCole 2021-04-08 21:16:48 +08:00 committed by GitHub
commit abe8c6af76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -30,7 +30,7 @@ order: 19
可以设置`language`配置高亮的语言,支持的语言有:
`bat``c``coffeescript``cpp``csharp``css``dockerfile``fsharp``go``handlebars``html``ini``java``javascript``json``less``lua``markdown``msdax``objective-c``php``plaintext``postiats``powershell``pug``python``r``razor``ruby``sb``scss``sol``sql``swift``typescript``vb``xml``yaml`
`bat``c``coffeescript``cpp``csharp``css``dockerfile``fsharp``go``handlebars``html``ini``java``javascript``json``less``lua``markdown``msdax``objective-c``php``plaintext``postiats``powershell``pug``python``r``razor``ruby``sb``scss``shell`、 `sol``sql``swift``typescript``vb``xml``yaml`
```schema: scope="body"
{
@ -47,6 +47,8 @@ order: 19
}
```
> 因为性能原因,上面的例子不支持实时修改 language 生效
当然你也可以使用`xxx-editor`这种形式,例如`"type": "json-editor"`
```schema: scope="body"

View File

@ -86,6 +86,7 @@ export interface EditorControlSchema extends Omit<FormBaseControl, 'size'> {
| 'ruby'
| 'sb'
| 'scss'
| 'shell'
| 'sol'
| 'sql'
| 'swift'
@ -266,6 +267,7 @@ export const availableLanguages = [
'sb',
'scss',
'sol',
'shell',
'sql',
'swift',
'typescript',