Skip to content

Commit 3fef9ca

Browse files
committed
readme: added syntax-highlighting to code blocks
1 parent 4d326b5 commit 3fef9ca

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

readme.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
~~~
2929

3030
3. Create php.ini files in the `configurations` directory. In all php.ini files you can use `%phpDir%` variable. This is especially useful for `zend_extension`, e.g.
31-
~~~
31+
~~~ini
3232
zend_extension = "%phpDir%\ext\php_opcache.dll"
3333
zend_extension = "%phpDir%\ext\php_xdebug.dll"
3434
~~~
@@ -39,7 +39,7 @@
3939
### Apache + PHP module
4040

4141
1. Add Apache service definition under `services` key:
42-
~~~
42+
~~~json
4343
{
4444
"services": [
4545
{
@@ -51,22 +51,22 @@
5151
~~~
5252

5353
2. Update Apache configuration to contain something like this:
54-
~~~
54+
~~~apache
5555
LoadModule php5_module "C:/web/php/active/php5apache2_4.dll"
56-
PHPIniDir "C:/web/php/active"
5756
AddHandler application/x-httpd-php .php
57+
PHPIniDir "C:/web/php/active"
5858
~~~
5959

6060
3. You can use `PHP_VERSION_MAJOR` variable in Apache configuration file. This is useful when you switch between PHP 5 and PHP 7 versions:
61-
~~~
61+
~~~apache
6262
LoadModule php${PHP_VERSION_MAJOR}_module "C:/web/php/active/php${PHP_VERSION_MAJOR}apache2_4.dll"
6363
~~~
6464

6565

6666
### Nginx + PHP FastCGI
6767

6868
1. Add Nginx and PHP FastCGI definitions under `executables` key:
69-
~~~
69+
~~~json
7070
{
7171
"executables": [
7272
{
@@ -88,13 +88,13 @@
8888
{"args": "-b 127.0.0.1:9308", "label": "PHP FastCGI (9308)"},
8989
{"args": "-b 127.0.0.1:9309", "label": "PHP FastCGI (9309)"}
9090
]
91-
},
91+
}
9292
]
9393
}
9494
~~~
9595

9696
2. Update Nginx configuration to contain something like this:
97-
~~~
97+
~~~nginx
9898
upstream php_farm {
9999
server 127.0.0.1:9300 weight=1;
100100
server 127.0.0.1:9301 weight=1;
@@ -120,7 +120,7 @@
120120
### Caddy + PHP FastCGI
121121

122122
1. Add Caddy and PHP FastCGI definitions under `executables` key:
123-
~~~
123+
~~~json
124124
{
125125
"executables": [
126126
{
@@ -137,7 +137,7 @@
137137
~~~
138138

139139
2. Update Caddy configuration to contain something like this:
140-
~~~
140+
~~~nginx
141141
# https://caddyserver.com/docs/fastcgi
142142
fastcgi / 127.0.0.1:9300 php
143143
~~~
@@ -147,7 +147,7 @@
147147

148148
1. Add definition under `executables` key:
149149

150-
~~~
150+
~~~json
151151
{
152152
"executables": [
153153
{

0 commit comments

Comments
 (0)