Update README.md (#502)

configure the recognized names for highlighting
This commit is contained in:
Han BAO 2019-12-06 16:00:27 -06:00 committed by Max Brunsfeld
parent acc5f092c8
commit 47a926067d

View file

@ -74,6 +74,12 @@ let javascript_config = HighlightConfiguration::new(
).unwrap();
```
Configure the recognized names:
```rust
javascript_config.configure(&highlight_names);
```
Highlight some code:
```rust