Skip to content

Commit 5d99237

Browse files
committed
✨ Add example code blocks for various languages to README and update demo GIF
1 parent 0a4fc8f commit 5d99237

3 files changed

Lines changed: 55 additions & 52 deletions

File tree

README.md

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -99,58 +99,6 @@ mx run Build
9999
mx run --file tasks.md Build
100100
```
101101

102-
## Example
103-
104-
---
105-
106-
## Bash
107-
108-
```bash
109-
echo "Hello, world!"
110-
```
111-
112-
## Python
113-
114-
```python
115-
print("Hello, world!")
116-
```
117-
118-
## Ruby
119-
120-
```ruby
121-
puts "Hello, world!"
122-
```
123-
124-
## JavaScript
125-
126-
```javascript
127-
console.log("Hello, world!");
128-
```
129-
130-
## Go
131-
132-
```go
133-
package main
134-
import "fmt"
135-
func main() {
136-
fmt.Println("Hello, world!")
137-
}
138-
```
139-
140-
## Rust
141-
142-
```rust
143-
fn main() {
144-
println!("Hello, world!");
145-
}
146-
```
147-
148-
## mq
149-
150-
```mq
151-
print("Hello, world!")
152-
```
153-
154102
## License
155103

156104
MIT

assets/README.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Example
2+
3+
## Bash
4+
5+
```bash
6+
echo "Hello, world!"
7+
```
8+
9+
## Python
10+
11+
```python
12+
print("Hello, world!")
13+
```
14+
15+
## Ruby
16+
17+
This code block runs with Ruby.
18+
19+
```ruby
20+
puts "Hello, world!"
21+
```
22+
23+
## JavaScript
24+
25+
This code block runs with Node.js.
26+
27+
```javascript
28+
console.log("Hello, world!");
29+
```
30+
31+
## Go
32+
33+
This code block runs with Go.
34+
35+
```go
36+
package main
37+
import "fmt"
38+
func main() {
39+
fmt.Println("Hello, world!")
40+
}
41+
```
42+
43+
## Rust
44+
45+
```rust
46+
fn main() {
47+
println!("Hello, world!");
48+
}
49+
```
50+
51+
## mq
52+
53+
```mq
54+
print("Hello, world!")
55+
```

assets/demo.gif

-76.4 KB
Loading

0 commit comments

Comments
 (0)