Browse Source

improve readme markdown

Enable readme Markdown code block syntax highlighting
mbehboodian 3 years ago
parent
commit
057e1a9cea
1 changed files with 6 additions and 6 deletions
  1. 6 6
      README.md

+ 6 - 6
README.md

@@ -28,13 +28,13 @@ fn main() {
 
 
 This outputs:
 This outputs:
 
 
-```
+```txt
 2022-01-19T17:27:07.013874956Z WARN [logging_example] This is an example message.
 2022-01-19T17:27:07.013874956Z WARN [logging_example] This is an example message.
 ```
 ```
 
 
 You can run the above example with:
 You can run the above example with:
 
 
-```bash
+```sh
 cargo run --example init
 cargo run --example init
 ```
 ```
 
 
@@ -42,14 +42,14 @@ Coloured output and timestamps will be enabled by default. You can remove these
 features and their respective dependencies by disabling all features in your
 features and their respective dependencies by disabling all features in your
 `Cargo.toml`.
 `Cargo.toml`.
 
 
-```
+```toml
 [dependencies.simple_logger]
 [dependencies.simple_logger]
 default-features = false
 default-features = false
 ```
 ```
 
 
 To include the `timestamps` feature, but not the `colors` feature:
 To include the `timestamps` feature, but not the `colors` feature:
 
 
-```
+```toml
 [dependencies.simple_logger]
 [dependencies.simple_logger]
 default-features = false
 default-features = false
 features = ["timestamps"]
 features = ["timestamps"]
@@ -57,7 +57,7 @@ features = ["timestamps"]
 
 
 To include the `colors` feature, but not the `timestamps` feature:
 To include the `colors` feature, but not the `timestamps` feature:
 
 
-```
+```toml
 [dependencies.simple_logger]
 [dependencies.simple_logger]
 default-features = false
 default-features = false
 features = ["colors"]
 features = ["colors"]
@@ -65,7 +65,7 @@ features = ["colors"]
 
 
 To direct logging output to `stderr` use the `stderr` feature:
 To direct logging output to `stderr` use the `stderr` feature:
 
 
-```
+```toml
 [dependencies.simple_logger]
 [dependencies.simple_logger]
 features = ["stderr"]
 features = ["stderr"]
 ```
 ```