Skip to content

Commit 91dc362

Browse files
authored
Update README.md
1 parent 6ef50ae commit 91dc362

1 file changed

Lines changed: 16 additions & 12 deletions

File tree

README.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ The plugin lets you customize the code blocks in the following way:
5353

5454
## Parameters
5555

56-
Parameters can be defined in the opening line of a code block (after the three opening backticks).
57-
All parameters can be defined using `:` or `=`.
56+
Parameters can be defined in the opening line of a code block (after the three opening backticks).
57+
All parameters can be defined using `:` or `=`.
5858
Available parameters:
5959

6060
| Name | Value | Description |
@@ -145,8 +145,10 @@ An example code block with text highlight, using three different colors is shown
145145

146146
![[Pasted_image_20240227234145.png]](attachments/Pasted_image_20240227234145.png)
147147

148-
An example code block with text highlight, using from and to markers:
149-
![[Pasted_image_20240613130412.png]]
148+
An example code block with text highlight, using from and to markers:
149+
150+
![[Pasted_image_20240613130412.png]](attachments/Pasted_image_20240613130412.png)
151+
150152
## Language specific coloring
151153

152154
In the settings, on the `Language specific colors` settings page it is now possible to define colors for languages. These colors will only apply to code blocks with the defined language. If you defined colors for "Python", then those colors will only apply to every Python code block. **If you want to specify colors for code blocks which do not have a language defined, specify `nolang` as a language.**
@@ -167,14 +169,16 @@ First, you have to add a language. Then you can select which color you want to s
167169
- Header language background color
168170
- Gutter text color
169171
- Gutter background color
170-
- Gutter active line number color
171-
   
172+
- Gutter active line number color
173+
172174
An example is shown below, where the background color has been defined for "Python", "JavaScript" and "C++" languages.
173175

174176
![[Pasted_image_20240228002357.png]](attachments/Pasted_image_20240228002357.png)
175177

176-
Example code blocks with border colors set:
177-
![Pasted_image_20230811134737.png](attachments/Pasted_image_20230811134737.png)
178+
Example code blocks with border colors set:
179+
180+
![Pasted_image_20230811134737.png](attachments/Pasted_image_20230811134737.png)
181+
178182
**Don't forget to set `Codeblock border styling position`, otherwise border colors will not be displayed!**
179183

180184
## Display filename/title
@@ -356,23 +360,23 @@ Explanation:
356360
357361
An example using the above shown JSON file, where `tcl` syntax highlighting is applied to `language1` code blocks, using the custom SVG file, and the custom display name:
358362

359-
![[Pasted_image_20240613160326.png]]
363+
![[Pasted_image_20240613160326.png]](attachments/Pasted_image_20240613160326.png)
360364

361365
## Bracket highlight
362366

363367
You can enable bracket highlighting for matching and also for non-matching brackets. If you click next to a bracket (`(,),{,},[,]`), then the bracket itself, and the corresponding opening/closing bracket will be highlighted. You can set individual background, and highlight colors for matching and non-matching brackets:
364368

365-
![[Pasted_image_20240613130848.png]]
369+
![[Pasted_image_20240613130848.png]](attachments/Pasted_image_20240613130848.png)
366370

367371
Below is a simple example. Notice that that the matching and non-matching bracket are highlighted with different colors:
368372

369-
![[BracketHighlight.gif]]
373+
![[BracketHighlight.gif]](attachments/BracketHighlight.gif)
370374

371375
## Selection matching
372376

373377
If you enable selection matching, you can set the background color for the matches to be highlighted with. Simply select a string, or double click on a word, and the same text will be highlighted if found:
374378

375-
![[selectionmatching.gif]]
379+
![[SelectionMatching.gif]](attachments/SelectionMatching.gif)
376380

377381
>[!note]
378382
>Selection matching (currently) has a limit of 750 matches. If there are more matches than this, then selection matching will not highlight anything. Should you encounter a case where this number is not enough, contact me, and I'll increase it.

0 commit comments

Comments
 (0)