Skip to content

Commit

Permalink
bump 2 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zxkmm committed Sep 9, 2024
1 parent b2eadf0 commit 0cc6aa6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
# 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.
- Automatically adjust the language in the context menu of the document.
- 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.
Expand Down
8 changes: 6 additions & 2 deletions README_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@
## 您给我点的免费Star将很大程度帮助我解决温饱问题,再次感谢!
##

# 用法
# 用法1
1. 光标放到你要插入代码块的地方
2. 斜杠菜单输入`autocodeblock`或者`acb`,回车
3. 输入或者粘贴代码块
4. 点击确定

# 用法2
1. 在别的地方复制代码
2. 到思源粘贴,自动设置语言和高亮

# TODO
- 斜杠菜单弹窗不优雅
- 代码块上下文菜单自动调整语言
Expand All @@ -20,7 +24,7 @@
- fix bugs

# 已知问题
- 该插件创建代码块后一段时间,高亮不显示(之后都会正常显示
(暂无

# 感谢 ♥️
- [@frostime](https://github.com/frostime):: 提供斜杠菜单的代码 ♥️
Expand Down

0 comments on commit 0cc6aa6

Please sign in to comment.