Skip to content

Commit

Permalink
Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
izissise committed Aug 25, 2024
1 parent b90317e commit d73d4a2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/content/documentation/content/syntax-highlighting.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ highlight(code);

- `hide_lines` to hide lines. You must specify a list of inclusive ranges of lines to hide,
separated by ` ` (whitespace). Ranges are 1-indexed.

````
```rust,hide_lines=1-2
use highlighter::highlight;
Expand All @@ -311,6 +311,16 @@ highlight(code);
```
````

- `path` to specify a path the code block is associated with.

````
```rust,path=mod.rs
use highlighter::highlight;
let code = "...";
highlight(code);
```
````

## Styling codeblocks

Depending on the annotations used, some codeblocks will be hard to read without any CSS. We recommend using the following
Expand Down

0 comments on commit d73d4a2

Please sign in to comment.