diff --git a/docs/plugin/plugin-codelock.md b/docs/plugin/plugin-codelock.md index ed79bcdd..c86ccb51 100644 --- a/docs/plugin/plugin-codelock.md +++ b/docs/plugin/plugin-codelock.md @@ -72,6 +72,31 @@ new Engine(...,{ }) ``` +### Alias + +Alias settings + +```ts +//Use configuration +new Engine(...,{ + config:{ + "alias":{ + text:'plain', + sh:'bash', + ts:'typescript', + js:'javascript', + py:'python', + puml:'plantuml', + uml:'plantuml', + vb:'basic', + md:'markdown', + 'c++':'cpp', + 'c#':'csharp', + } + } + }) +``` + ## Command ```ts diff --git a/docs/plugin/plugin-codelock.zh-CN.md b/docs/plugin/plugin-codelock.zh-CN.md index b839f827..aea18df2 100644 --- a/docs/plugin/plugin-codelock.zh-CN.md +++ b/docs/plugin/plugin-codelock.zh-CN.md @@ -72,6 +72,31 @@ new Engine(...,{ }) ``` +### 别名 + +别名设置 + +```ts +//使用配置 +new Engine(...,{ + config:{ + "alias":{ + text: 'plain', + sh: 'bash', + ts: 'typescript', + js: 'javascript', + py: 'python', + puml: 'plantuml', + uml: 'plantuml', + vb: 'basic', + md: 'markdown', + 'c++': 'cpp', + 'c#': 'csharp', + } + } + }) +``` + ## 命令 ```ts diff --git a/plugins/codeblock/README.md b/plugins/codeblock/README.md index 391bdb85..62d6cdce 100644 --- a/plugins/codeblock/README.md +++ b/plugins/codeblock/README.md @@ -66,6 +66,31 @@ new Engine(...,{ }) ``` +### 别名 + +别名设置 + +```ts +//使用配置 +new Engine(...,{ + config:{ + "alias":{ + text: 'plain', + sh: 'bash', + ts: 'typescript', + js: 'javascript', + py: 'python', + puml: 'plantuml', + uml: 'plantuml', + vb: 'basic', + md: 'markdown', + 'c++': 'cpp', + 'c#': 'csharp', + } + } + }) +``` + ## 命令 ```ts