Add rust specific codeblock examples
This commit is contained in:
parent
c283211a37
commit
b8ef89db62
|
@ -26,6 +26,7 @@
|
|||
- [Languages](languages/README.md)
|
||||
- [Syntax Highlight](languages/highlight.md)
|
||||
- [Rust Specific](rust/README.md)
|
||||
- [Rust Codeblocks](rust/rust_codeblock.md)
|
||||
|
||||
---
|
||||
|
||||
|
|
|
@ -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!");
|
||||
}
|
||||
```
|
Loading…
Reference in New Issue