Skip to content

Commit 29774dc

Browse files
shivammathurderickr
authored andcommitted
Add syntax highlighting and copy button
1 parent 7f868a7 commit 29774dc

16 files changed

+111
-24
lines changed

downloads.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@
3535
],
3636
],
3737
"current" => "downloads",
38+
"css" => [
39+
"prism.css",
40+
"code-syntax.css",
41+
],
42+
"js_files" => [
43+
"js/ext/prism.js",
44+
],
3845
],
3946
);
4047

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<p>
22
On the command line, run the following commands:
33
</p>
4-
<pre class="shellCommands">
4+
<pre><code class="language-bash line-numbers">
55
sudo apt-get update
66
sudo apt-get install -y lsb-release ca-certificates apt-transport-https curl
77
sudo curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
88
sudo dpkg -i /tmp/debsuryorg-archive-keyring.deb
99
sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/debsuryorg-archive-keyring.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" &gt; /etc/apt/sources.list.d/php.list'
1010
sudo apt-get update
1111
sudo apt-get install -y php<?= $version; ?>
12-
</pre>
12+
</code></pre>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<p>
22
On the command line, run the following commands:
33
</p>
4-
<pre class="shellCommands">
4+
<pre><code class="language-bash line-numbers">
55
sudo apt update
66
sudo apt install -y php
7-
</pre>
7+
</code></pre>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<p>
22
On the command line, run the following commands:
33
</p>
4-
<pre class="shellCommands">
4+
<pre><code class="language-bash line-numbers">
55
sudo dnf install -y dnf-plugins-core
66
sudo dnf install -y https://rpms.remirepo.net/fedora/remi-release-$(rpm -E %fedora).rpm
77
sudo dnf module reset php -y
88
sudo dnf module enable php:remi-<?= $version; ?> -y
99
sudo dnf install -y php
10-
</pre>
10+
</code></pre>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<p>
22
On the command line, run the following commands:
33
</p>
4-
<pre class="shellCommands">
4+
<pre><code class="language-bash line-numbers">
55
sudo dnf install -y php
6-
</pre>
6+
</code></pre>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<p>
22
On the command line, run the following commands:
33
</p>
4-
<pre class="shellCommands">
4+
<pre><code class="language-bash line-numbers">
55
sudo apt update
66
sudo apt install -y software-properties-common
77
sudo add-apt-repository ppa:ondrej/php -y
88
sudo apt update
99
sudo apt install -y php<?= $version; ?>
10-
</pre>
10+
</code></pre>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<p>
22
On the command line, run the following commands:
33
</p>
4-
<pre class="shellCommands">
4+
<pre><code class="language-bash line-numbers">
55
sudo apt update
66
sudo apt install -y php
7-
</pre>
7+
</code></pre>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<p>
22
On the command line, run the following commands:
33
</p>
4-
<pre class="shellCommands">
4+
<pre><code class="language-bash line-numbers">
55
brew tap shivammathur/php
66
brew install php@<?= $version; ?>
77

88
brew link --force --overwrite php@<?= $version; ?>
9-
</pre>
9+
</code></pre>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<p>
22
On the command line, run the following commands:
33
</p>
4-
<pre class="shellCommands">
4+
<pre><code class="language-bash line-numbers">
55
brew install php@<?= $version; ?>
66

77
brew link --force --overwrite php@<?= $version; ?>
8-
</pre>
8+
</code></pre>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<p>
22
On the command line, run the following commands:
33
</p>
4-
<pre class="shellCommands">
4+
<pre><code class="language-bash line-numbers">
55
sudo port install php<?= $versionNoDot; ?>
6-
</pre>
6+
</code></pre>

0 commit comments

Comments
 (0)