mirror of
https://github.com/he0119/typecho-highlightjs.git
synced 2024-12-26 12:50:18 +08:00
feat: 通过脚本下载所需的语言
This commit is contained in:
parent
65847bb510
commit
f729d1f292
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
highlight.zip
|
10
README.md
10
README.md
@ -9,12 +9,4 @@ git clone https://github.com/he0119/typecho-highlightjs.git HighlightJs
|
||||
|
||||
## 支持语言
|
||||
|
||||
- 常用的 36 种
|
||||
- Arduino
|
||||
- DOS .bat
|
||||
- Dart
|
||||
- Dockerfile
|
||||
- Fortran
|
||||
- Julia/Julia REPL
|
||||
- LaTeX
|
||||
- PowerShell
|
||||
详见 [fetch](fetch.sh)
|
||||
|
7
fetch.sh
Normal file
7
fetch.sh
Normal file
@ -0,0 +1,7 @@
|
||||
curl 'https://highlightjs.org/api/download' \
|
||||
-H 'content-type: application/json' \
|
||||
-H 'origin: https://highlightjs.org' \
|
||||
-H 'referer: https://highlightjs.org/download' \
|
||||
--data-raw '{"api":2,"languages":["apache","xml","bash","coffeescript","cpp","csharp","css","markdown","diff","ruby","go","http","ini","java","javascript","json","kotlin","less","lua","makefile","perl","nginx","objectivec","php","php-template","properties","python","python-repl","r","rust","scss","shell","sql","swift","yaml","typescript","vbnet","apache","dockerfile","ini","nginx","properties","yaml","css","less","scss","sql","java","markdown","latex","arduino","http","json","fortran","mathematica","matlab","r","coffeescript","javascript","lua","typescript","cpp","go","rust","swift","django"]}' \
|
||||
--compressed \
|
||||
--output highlight.zip
|
Loading…
Reference in New Issue
Block a user