Add rust specific codeblock examples

This commit is contained in:
Yashodhan Joshi 2021-10-05 12:11:29 +05:30
parent c283211a37
commit b8ef89db62
2 changed files with 28 additions and 0 deletions

View File

@ -26,6 +26,7 @@
- [Languages](languages/README.md) - [Languages](languages/README.md)
- [Syntax Highlight](languages/highlight.md) - [Syntax Highlight](languages/highlight.md)
- [Rust Specific](rust/README.md) - [Rust Specific](rust/README.md)
- [Rust Codeblocks](rust/rust_codeblock.md)
--- ---

View File

@ -0,0 +1,27 @@
## Rust codeblocks
This contains various examples of codeblocks, specific to rust
## Simple
```rust
fn main(){
println!("Hello world!");
}
```
## With Hidden lines
```rust
# fn main(){
println!("Hello world!");
# }
```
## Editable
```rust,editable
fn main(){
println!("Hello world!");
}
```