Update README.md (#502)
configure the recognized names for highlighting
This commit is contained in:
parent
acc5f092c8
commit
47a926067d
1 changed files with 6 additions and 0 deletions
|
|
@ -74,6 +74,12 @@ let javascript_config = HighlightConfiguration::new(
|
|||
).unwrap();
|
||||
```
|
||||
|
||||
Configure the recognized names:
|
||||
|
||||
```rust
|
||||
javascript_config.configure(&highlight_names);
|
||||
```
|
||||
|
||||
Highlight some code:
|
||||
|
||||
```rust
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue