From 0bd723e82e9e617a3375f498b4361ab7346a8367 Mon Sep 17 00:00:00 2001 From: Shramee Srivastav Date: Thu, 5 Sep 2024 15:24:34 -0400 Subject: [PATCH] chore: readme code blocks 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`