Skip to content

Commit f26380c

Browse files
committed
Make the hilighted command prompts not selectable
This avoids mistakes where the "$" is copied and pasted in a terminal. The "Copy to clipboard" button still copies it. I don't know how to prevent that.
1 parent e1f762a commit f26380c

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

web/docs/autotools.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ These wrappers are developed by [Gentoo Linux](https://devmanual.gentoo.org/gene
3131

3232
Some projects require their configure scripts to be updated to make them build successfully:
3333

34-
```bash
35-
> pacman -S "${MINGW_PACKAGE_PREFIX}-autotools"
36-
> autoreconf -fvi
37-
> ./configure
38-
> make
34+
```console
35+
$ pacman -S "${MINGW_PACKAGE_PREFIX}-autotools"
36+
$ autoreconf -fvi
37+
$ ./configure
38+
$ make
3939
...
4040
```
4141

web/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ MSYS2 and what for.
5858
6. You will probably want to install some tools like the mingw-w64 GCC to start compiling projects. Run the following command:
5959

6060
```console
61-
pacman -S mingw-w64-ucrt-x86_64-gcc
61+
$ pacman -S mingw-w64-ucrt-x86_64-gcc
6262
```
6363

6464
7. The terminal window will show the output as below. Press 'Enter' to continue:

web/stylesheets/extra.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,4 +189,12 @@ body {
189189
color: transparent;
190190
flex: 1;
191191
filter: var(--msys2-invert-filter);
192-
}
192+
}
193+
194+
195+
/* make the console prompt not selectable */
196+
.highlight .gp {
197+
opacity: 0.75;
198+
user-select: none;
199+
}
200+

0 commit comments

Comments
 (0)