-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
languages.ts
118 lines (108 loc) · 2.24 KB
/
languages.ts
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/*
{
language: "<Language Name>",
prismLanguage: "<(optional) code highlighting language for Prism if it differs from the language name>",
library: "<Library Name>",
snippet: "<Path to file in /public/snippets>"
}
*/
export function languages(): {
language: string,
prismLanguage?: string,
library: string,
snippet: string,
}[] {
return [
//// Java
{
language: "Java",
library: "URLConnection",
snippet: "java/urlconnection.txt"
},
{
language: "Java",
library: "Jsoup",
snippet: "java/jsoup.txt"
},
{
language: "Java",
library: "OkHttp",
snippet: "java/okhttp.txt"
},
{
language: "Java",
library: "HttpRequest",
snippet: "java/httprequest.txt"
},
//// PHP
{
language: "PHP",
library: "cURL",
snippet: "php/curl.txt"
},
//// NodeJS
{
language: "NodeJS",
prismLanguage: "javascript",
library: "http",
snippet: "nodejs/http.txt"
},
{
language: "NodeJS",
prismLanguage: "javascript",
library: "request",
snippet: "nodejs/request.txt"
},
{
language: "NodeJS",
prismLanguage: "javascript",
library: "axios",
snippet: "nodejs/axios.txt"
},
//// PowerShell
{
language: "PowerShell",
prismLanguage: "powershell",
library: "Invoke-RestMethod",
snippet: "powershell/Invoke-RestMethod.txt"
},
{
language: "PowerShell",
prismLanguage: "powershell",
library: "Invoke-WebRequest",
snippet: "powershell/Invoke-WebRequest.txt"
},
//// C#
{
language: "C#",
prismLanguage: "csharp",
library: "HttpClient",
snippet: "csharp/httpclient.txt"
},
//// Python
{
language: "Python",
prismLanguage: "python",
library: "requests",
snippet: "python/requests.txt"
},
//// Ruby
{
language: "Ruby",
prismLanguage: "ruby",
library: "Faraday",
snippet: "ruby/faraday.txt"
},
//// Shell
{
language: "Shell",
library: "curl",
snippet: "shell/curl.txt"
},
{
language: "Shell",
library: "wget",
snippet: "shell/wget.txt"
},
]
}