Skip to content

Commit 7ff2f21

Browse files
authored
Add missing code block lang (#1795)
1 parent c3561b6 commit 7ff2f21

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+343
-343
lines changed

book/coming_from_bash.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
If you're coming from `Git Bash` on Windows, then the external commands you're used to (e.g, `ln`, `grep`, `vi`, etc) will not be available in Nushell by default unless you have already explicitly made them available in the Windows Path environment variable.
55
To make these commands available in Nushell as well, add the following line to your `config.nu` with either `append` or `prepend`.
66

7-
```
7+
```nu
88
$env.Path = ($env.Path | prepend 'C:\Program Files\Git\usr\bin')
99
```
1010
:::

book/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ In other words, **_variable arguments are not allowed for parser keywords_**.
450450

451451
However, Nushell creates some convenience _constants_ that can be used to help identify common file locations. For instance, you can source a file in the default configuration directory using:
452452

453-
```
453+
```nu
454454
source ($nu.default-config-dir | path join "myfile.nu")
455455
```
456456

book/environment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ $env.FOO? | default "BAR"
103103

104104
Alternatively, you can check for the presence of an environmental variable with `in`:
105105

106-
```
106+
```nu
107107
$env.FOO
108108
# => BAR
109109

book/how_nushell_code_gets_run.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Of course, this runs as expected using `nu hello.nu`. A similar program written
2424

2525
In _"interpreted languages"_ code usually gets handled something like this:
2626

27-
```
27+
```text
2828
Source Code → Interpreter → Result
2929
```
3030

book/operators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Presented in descending order of precedence, the article details the operations
5858
- Assignment operations
5959
- Logical not (`not`)
6060

61-
```
61+
```nu
6262
3 * (1 + 2)
6363
# => 9
6464
```

book/variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ Using [filter commands](/commands/categories/filters.html) with immutable variab
202202

203203
Variable names in Nushell come with a few restrictions as to what characters they can contain. In particular, they cannot contain these characters:
204204

205-
```
205+
```text
206206
. [ ( { + - * ^ / = ! < > & |
207207
```
208208

book/working_with_tables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ With no arguments, the output rendered from the `table` command will often _disp
574574

575575
This can be useful when you need to store the rendered view of structured data as a string. For example, to remove all ANSI formatting (colors) from a table:
576576

577-
```
577+
```nu
578578
ls | table | ansi strip
579579
```
580580

contributor-book/plugin_protocol_reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1311,7 +1311,7 @@ Most messages are encoded in the same way as their JSON analogue. For example, t
13111311

13121312
is encoded in the MessagePack format as:
13131313

1314-
```
1314+
```text
13151315
81 // map, one element
13161316
a5 "Hello" // 5-character string
13171317
83 // map, three elements

cookbook/files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Output
4848

4949
Suppose you have a file with the following format.
5050

51-
```
51+
```text
5252
band:album:year
5353
Fugazi:Steady Diet of Nothing:1991
5454
Fugazi:The Argument:2001

cookbook/setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Note: if you've never used `vim` before and you want to leave typing `:q!` will
5353

5454
Go to the end of the file and add
5555

56-
```
56+
```nu
5757
$env.EDITOR = vim
5858
```
5959

0 commit comments

Comments
 (0)