Skip to content

Commit e45cc92

Browse files
committed
[Update] add highlight code block chapter
1 parent 70d7332 commit e45cc92

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,20 @@ https://github.com/mistricky/codesnap.nvim/assets/22574136/69b27e77-3dce-4bc3-85
186186

187187
### Highlight code block
188188

189+
CodeSnap allows you to take code snapshots with highlights code blocks, we provide two commands for this scenario:
190+
191+
```shell
192+
CodeSnapHighlight # Take code snapshot with highlights code blocks and copy it into the clipboard
193+
CodeSnapSaveHighlight # Take code snapshot with highlights code blocks and save it somewhere
194+
```
195+
196+
#### How to use
197+
For take a code snapshot with highlights code blocks and save it somewhere. First you need to select code which you want to snapshot, then enter the command `CodeSnapSaveHighlight` to open a window show you the selected code which from previous step, now you can select code which you want to highlight, finally press the Enter key, CodeSnap will generate a snapshot with highlight blocks and save it in save_path.
198+
199+
Here is an example video:
200+
201+
https://github.com/mistricky/codesnap.nvim/assets/22574136/bea0bf6c-8fc9-4d09-9cab-4e1e6f47899c
189202

190-
https://github.com/mistricky/codesnap.nvim/assets/22574136/6207d185-df4e-4e03-a9ac-3f66c6705cb4
191203

192204

193205

0 commit comments

Comments
 (0)