]> Untitled Git - bitcoindevkit.org/commitdiff
Fix code block escape codes
authorSteve Myers <steve@notmandatory.org>
Fri, 29 Oct 2021 17:11:15 +0000 (10:11 -0700)
committerSteve Myers <steve@notmandatory.org>
Fri, 29 Oct 2021 17:11:15 +0000 (10:11 -0700)
The ```text code block isn't valid, replaced with ```bash. Valid codes here:
https://github.com/PrismJS/prism/blob/master/components.json.

docs/_blog/hello-world.md
docs/bdk-cli/compiler.md
docs/bdk-cli/installation.md
docs/bdk-cli/interface.md
docs/tutorials/hello-world.md

index ad85dc3e831ae323bf6bfa4af26470d04fb78c50..78866f6e2769922659884b4067b4c79cd2e93749 100644 (file)
@@ -76,7 +76,7 @@ println!("Generated Address: {}", wallet.get_new_address()?);
 
 Building and running this code will print out:
 
-```text
+```bash
 Generated Address: tb1q7w0t936xp5p994qx506xj53gjdcmzjr2mkqghn
 ```
 
index 6c6c55698597361c4a5dc203017702e486dfd476..0a06a551586455805c12617e0077de1a4addfd33 100644 (file)
@@ -41,7 +41,7 @@ miniscriptc --parsed_policy "and(pk(cSQPHDBwXGjVzWRqAHm6zfvQhaTuj1f2bFH58h55ghbj
 
 The compiler should print something like:
 
-```text
+```bash
 [2020-04-29T10:42:05Z INFO  miniscriptc] Compiling policy: and(pk(cSQPHDBwXGjVzWRqAHm6zfvQhaTuj1f2bFH58h55ghbjtFwvmeXR),or(50@pk(02e96fe52ef0e22d2f131dd425ce1893073a3c6ad20e8cac36726393dfb4856a4c),older(1000)))
 [2020-04-29T10:42:05Z INFO  miniscriptc] ... Descriptor: sh(wsh(and_v(or_c(c:pk(02e96fe52ef0e22d2f131dd425ce1893073a3c6ad20e8cac36726393dfb4856a4c),v:older(1000)),c:pk(cSQPHDBwXGjVzWRqAHm6zfvQhaTuj1f2bFH58h55ghbjtFwvmeXR))))
 [2020-04-29T10:42:05Z INFO  miniscriptc] ... First address: 2MsqrJuZewY3o3ADAy1Uhi5vsBqTANjH3Cf
index a93ed53e492436a64ebc99fab80af874808f73b8..536cc70c0acea80a54a4424e6d8f5f99a992ee3f 100644 (file)
@@ -37,7 +37,7 @@ This command may take a while to finish, since it will fetch and compile all the
 
 Once it's done, you can check if everything went fine by running `bdk-cli --help` which should print something like this:
 
-```text
+```bash
 BDK CLI 0.2.1-dev
 Alekos Filini <alekos.filini@gmail.com>:Riccardo Casatta <riccardo@casatta.it>:Steve Myers <steve@notmandatory.org>
 Top level options and command modes
index 7d072c3d8d4b42dc2f7cfa4e3b58f2bf1d5db632..a6edffdd5d280bf1a313415526ca190b2b6aa314 100644 (file)
@@ -4,7 +4,7 @@ Remember the `bdk-cli --help` command you ran before? Let's analyze its output h
 
 ## Flags
 
-```text
+```bash
 FLAGS:
     -h, --help       Prints help information
     -V, --version    Prints version information
@@ -23,7 +23,7 @@ export RUST_LOG="bdk=debug"
 
 ## Options
 
-```text
+```bash
 OPTIONS:
     -c, --change_descriptor <CHANGE_DESCRIPTOR>        Sets the descriptor to use for internal addresses
     -d, --descriptor <DESCRIPTOR>                      Sets the descriptor to use for the external addresses
@@ -84,7 +84,7 @@ These are the main "functions" of the wallet. Most of them are pretty self expla
 
 ### broadcast
 
-```text
+```bash
 OPTIONS:
         --psbt <BASE64_PSBT>    Sets the PSBT to extract and broadcast
         --tx <RAWTX>            Sets the raw transaction to broadcast
@@ -94,7 +94,7 @@ Broadcasts a transaction. The transaction can be a raw hex transaction or a PSBT
 
 ### bump\_fee
 
-```text
+```bash
 FLAGS:
     -a, --send_all    Allows the wallet to reduce the amount of the only output in order to increase fees. This is
                       generally the expected behavior for transactions originally created with `send_all`
@@ -113,7 +113,7 @@ The `--send_all` flag should be enabled if the original transaction was also mad
 
 ### combine\_psbt
 
-```text
+```bash
 OPTIONS:
         --psbt <BASE64_PSBT>...    Add one PSBT to comine. This option can be repeated multiple times, one for each PSBT
 ```
@@ -122,7 +122,7 @@ Combines multiple PSBTs by merging metadata and partial signatures. It can be us
 
 ### create\_tx
 
-```text
+```bash
 FLAGS:
     -r, --enable_rbf        Enables Replace-By-Fee (BIP125)
         --offline_signer    Make a PSBT that can be signed by offline signers and hardware wallets. Forces the addition
@@ -196,7 +196,7 @@ we want to use. In this case we want to use children #0 and #1 of the root, so o
 
 ### extract\_psbt
 
-```text
+```bash
 OPTIONS:
         --psbt <BASE64_PSBT>    Sets the PSBT to extract
 ```
@@ -205,7 +205,7 @@ Extracts the global transaction from a PSBT. **Note that partial signatures are
 
 ### finalize\_psbt
 
-```text
+```bash
 OPTIONS:
         --psbt <BASE64_PSBT>        Sets the PSBT to finalize
         --assume_height <HEIGHT>    Assume the blockchain has reached a specific height
@@ -506,7 +506,7 @@ This subcommand has no extra flags and launches an interactive shell session.
 
 ### `sign`
 
-```text
+```bash
 OPTIONS:
           --psbt <BASE64_PSBT>        Sets the PSBT to sign
           --assume_height <HEIGHT>    Assume the blockchain has reached a specific height. This affects the transaction
index 0b9146c3710f5a899bb9077148c140beefcdf38d..e3da591bf195d94c23275116ff7f4a2507457636 100644 (file)
@@ -68,7 +68,7 @@ println!("Generated Address: {}", wallet.get_new_address()?);
 
 Building and running this code will print out:
 
-```text
+```bash
 Generated Address: tb1q7w0t936xp5p994qx506xj53gjdcmzjr2mkqghn
 ```