diff --git a/README.md b/README.md index aebe1ce..dff0f73 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,13 @@ -# Usage +# Usage 1 1. Place the cursor where you want to insert the code block. 2. Type `autocodeblock` or `acb` in the slash menu and press Enter. 3. Input or paste the code block. 4. Click OK. +# Usage 2 +1. Copy your from code somewhere +2. Paste into SiYuan, and it will automatically detect language and set highlight regarding to the specific language. + # TODO - Improve the elegance of the slash menu popup. - Automatically adjust the language in the context menu of the code block. @@ -11,8 +15,6 @@ - Automatically adjust the language for all code blocks. - Fix bugs. -# Known Issues -- After creating a code block with this plugin, syntax highlighting may not display for a while (it will display normally afterwards). # Thanks ♥️ - [@frostime](https://github.com/frostime): Provided the code for the slash menu. diff --git a/README_zh_CN.md b/README_zh_CN.md index 7a6c0a2..ed6ca7d 100644 --- a/README_zh_CN.md +++ b/README_zh_CN.md @@ -6,12 +6,16 @@ ## 您给我点的免费Star将很大程度帮助我解决温饱问题,再次感谢! ## -# 用法 +# 用法1 1. 光标放到你要插入代码块的地方 2. 斜杠菜单输入`autocodeblock`或者`acb`,回车 3. 输入或者粘贴代码块 4. 点击确定 +# 用法2 +1. 在别的地方复制代码 +2. 到思源粘贴,自动设置语言和高亮 + # TODO - 斜杠菜单弹窗不优雅 - 代码块上下文菜单自动调整语言 @@ -20,7 +24,7 @@ - fix bugs # 已知问题 -- 该插件创建代码块后一段时间,高亮不显示(之后都会正常显示) +(暂无) # 感谢 ♥️ - [@frostime](https://github.com/frostime):: 提供斜杠菜单的代码 ♥️