This repository has been archived by the owner on Nov 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
/
prism-languages.php
67 lines (63 loc) · 1.64 KB
/
prism-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
63
64
65
66
67
<?php
/**
* Retrieve support languages
* @return array Hash of lang => language
*/
function mkaz_code_syntax_block_get_supported_languages() {
$languages = array(
"apacheconf" => "Apache Config",
"adoc" => "Asciidoc",
"bash" => "Bash/Shell",
"basic" => "BASIC",
"c" => "C-like",
"csharp" => "C#",
"cpp" => "C++",
"css" => "CSS",
"dart" => "Dart",
"django" => "Django",
"docker" => "Docker",
"fsharp" => "F#",
"graphql" => "GraphQL",
"go" => "Go",
"haskell" => "Haskell",
"markup" => "HTML",
"java" => "Java",
"javascript" => "JavaScript",
"json" => "JSON",
"kotlin" => "Kotlin",
"lisp" => "Lisp",
"markdown" => "Markdown",
"matlab" => "MATLAB",
"nginx" => "nginx",
"objectivec" => "Objective-C",
"php" => "PHP",
"powershell" => "PowerShell",
"properties" => ".properties",
"python" => "Python",
"jsx" => "React JSX",
"ruby" => "Ruby",
"rust" => "Rust",
"sass" => "Sass",
"sql" => "SQL",
"svg" => "SVG",
"swift" => "Swift",
"toml" => "TOML",
"typescript" => "TypeScript",
"vim" => "vim",
"visual-basic" => "Visual Basic",
"wasm" => "WebAssembly",
"xml" => "XML",
"yaml" => "YAML",
);
/**
* Filter the list of supported languages for the Syntax Highlighting colors.
* Use this filter to shorten or extend the language shown in the editor interface.
* The array key must match a Prism's supported alias, the array value is a descriptive
* field. For languages and aliases see: https://prismjs.com/#supported-languages
*
* @since 1.1.0
*
* @param string $languages Array of languages supported
*/
return apply_filters( 'mkaz_code_syntax_language_list', $languages );
}