Skip to content

Commit f1af875

Browse files
authored
Use bash for syntax highlighting of windows commands (#6282)
This allows the commands to be copied correctly. The leading `>` has been removed so that it isn't included in the copied output. This fixes #6281
1 parent 3a3648b commit f1af875

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

guides/data_modelling/contexts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ $ curl https://new.phoenixframework.org/hello | sh
2222

2323
For Windows PowerShell:
2424

25-
```cmd
26-
> curl.exe -fsSO https://new.phoenixframework.org/hello.bat; .\hello.bat
25+
```bash
26+
curl.exe -fsSO https://new.phoenixframework.org/hello.bat; .\hello.bat
2727
```
2828

2929
If those commands do not work, see the [Installation Guide](installation.html) and then run `mix phx.new`:

guides/introduction/up_and_running.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ $ curl https://new.phoenixframework.org/myapp | sh
1414

1515
For Windows PowerShell:
1616

17-
```cmd
18-
> curl.exe -fsSO https://new.phoenixframework.org/myapp.bat; .\myapp.bat
17+
```bash
18+
curl.exe -fsSO https://new.phoenixframework.org/myapp.bat; .\myapp.bat
1919
```
2020

2121
The above will install Erlang, Elixir, and Phoenix, and generate a fresh Phoenix application. It will also automatically pick one of PostgreSQL or MySQL as the database, and fallback to SQLite if none of them are available. Once the command above completes, it will open up a Phoenix application, with the steps necessary to complete your installation. Note your Phoenix application name is taken from the path.

0 commit comments

Comments
 (0)