From 8ffb8cb810d963529a75105a46a9d1041d501c5c Mon Sep 17 00:00:00 2001 From: Shramee Srivastav Date: Thu, 5 Sep 2024 15:31:54 -0400 Subject: [PATCH] chore: readme code blocks (#222) fixes #212 for easy code copying --- README.md | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e1ee39b0a..595d25edd 100755 --- a/README.md +++ b/README.md @@ -23,12 +23,23 @@ ## Setup and run Make sure you have Rust and Cargo installed with the `default` toolchain. -With rustup `curl https://sh.rustup.rs -sSf | sh -s` +With rustup +```sh +curl https://sh.rustup.rs -sSf | sh -s +``` -1. Clone the repo and go in the directory, - `git clone https://github.com/shramee/starklings-cairo1.git && cd starklings-cairo1`. -2. Run `cargo run -r --bin starklings`, this might take a while the first time. -3. You should see this intro message, run `cargo run -r --bin starklings watch` when you are ready! +1. Clone the repo and go in the directory, + ``` + git clone https://github.com/shramee/starklings-cairo1.git && cd starklings-cairo1 + ``` +2. Run starklings (this might take a while the first time), + ```sh + cargo run -r --bin starklings + ``` +3. You should see an intro message, when you are ready run starklings in watch mode, + ```sh + cargo run -r --bin starklings watch + ``` ## Start at a specific exercise `NEW`