Skip to content

Commit 4e22395

Browse files
committed
Add PHP
1 parent 8dc0b2a commit 4e22395

File tree

6 files changed

+5499
-15
lines changed

6 files changed

+5499
-15
lines changed

docs/commands.md

+15-14
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ layout: default
33
title: Commands Help
44
---
55

6-
* [help](#help)
7-
* [cache](#cache)
8-
* [config](#config)
9-
* [list](#list)
10-
* [plugin](#plugin)
11-
* [show](#show)
12-
* [star](#star)
13-
* [stat](#stat)
14-
* [session](#session)
15-
* [submission](#submission)
16-
* [submit](#submit)
17-
* [test](#test)
18-
* [user](#user)
19-
* [version](#version)
6+
- [help](#help)
7+
- [cache](#cache)
8+
- [config](#config)
9+
- [list](#list)
10+
- [plugin](#plugin)
11+
- [session](#session)
12+
- [show](#show)
13+
- [star](#star)
14+
- [stat](#stat)
15+
- [submission](#submission)
16+
- [submit](#submit)
17+
- [test](#test)
18+
- [user](#user)
19+
- [version](#version)
2020

2121
# help
2222

@@ -235,6 +235,7 @@ Display question details. With `-g`/`-l`/`-x`, the code template would be auto g
235235
* java
236236
* javascript
237237
* mysql
238+
* php
238239
* python
239240
* python3
240241
* ruby

lib/config.js

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const DEFAULT_CONFIG = {
2222
'javascript',
2323
'kotlin',
2424
'mysql',
25+
'php',
2526
'python',
2627
'python3',
2728
'ruby',

lib/helper.js

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const LANGS = [
3939
{lang: 'javascript', ext: '.js', style: 'c'},
4040
{lang: 'kotlin', ext: '.kt', style: 'c'},
4141
{lang: 'mysql', ext: '.sql', style: '--'},
42+
{lang: 'php', ext: '.php', style: 'c'},
4243
{lang: 'python', ext: '.py', style: '#'},
4344
{lang: 'python3', ext: '.py', style: '#'},
4445
{lang: 'ruby', ext: '.rb', style: '#'},

0 commit comments

Comments
 (0)