[Update] add demo for take code snapshot with highlighted code block

pull/100/head
The Mist 2024-04-27 19:15:31 +08:00
parent 9836ad1163
commit 4c3b56c82e
1 changed files with 7 additions and 0 deletions

View File

@ -184,6 +184,13 @@ require("codesnap").setup({
https://github.com/mistricky/codesnap.nvim/assets/22574136/69b27e77-3dce-4bc3-8516-89ce636fe02d https://github.com/mistricky/codesnap.nvim/assets/22574136/69b27e77-3dce-4bc3-8516-89ce636fe02d
### Highlight code block
https://github.com/mistricky/codesnap.nvim/assets/22574136/6207d185-df4e-4e03-a9ac-3f66c6705cb4
### Specify language extension ### Specify language extension
In some scenarios, CodeSnap.nvim cannot auto-detect what language syntax should used to highlight code, for example, shell script can have no extension, they specify interpreters using shebang. In some scenarios, CodeSnap.nvim cannot auto-detect what language syntax should used to highlight code, for example, shell script can have no extension, they specify interpreters using shebang.