-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathcode-languages.php
62 lines (61 loc) · 1.46 KB
/
code-languages.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
/*
* @Author: iowen
* @Author URI: https://www.iowen.cn/
* @Date: 2020-03-19 17:24:22
* @LastEditors: iowen
* @LastEditTime: 2022-08-05 23:40:56
* @FilePath: \io-code-highlight\code-languages.php
* @Description:
*/
function io_code_languages() {
$languages = array(
'generic' => __('通配','i_theme'),
'php' => 'PHP',
'css' => 'CSS',
'scss' => 'scss/sass',
'java' => 'Java',
'javascript' => 'JavaScript',
'yaml' => 'yaml',
'xml' => 'xml/html',
'visualbasic' => 'visualbasic',
'vhdl' => 'vhdl',
'typescript' => 'TypeScript',
'swift' => 'swift',
'squirrel' => 'squirrel',
'sql' => 'sql',
'shell' => 'shell',
'rust' => 'rust',
'ruby' => 'ruby',
'raw' => 'raw',
'python' => 'python',
'prolog' => 'prolog',
'powershell' => 'PowerShell',
'nsis' => 'nsis',
'markdown' => 'Markdown',
'matlab' => 'MATLAB',
'lua' => 'lua',
'less' => 'less',
'kotlin' => 'kotlin',
'json' => 'json',
'ini' => 'ini/conf',
'groovy' => 'groovy',
'go' => 'go/golang',
'dockerfile' => 'docker',
'diff' => 'diff',
'cordpro' => 'cordpro',
'cython' => 'cython',
'csharp' => 'csharp',
'cpp' => 'Cpp/C++/C',
'avrassembly' => 'avrassembly',
'assembly' => 'assembly',
);
/**
* 语法高亮列表筛选
*
* @since 2.0
*
* @param string $languages 支持的语言数组
*/
return apply_filters( 'io_code_language_list', $languages );
}