From 59e2d77df93cbaaab3a2b9564f4a5d0496b8ea5a Mon Sep 17 00:00:00 2001 From: George Rawlinson Date: Sun, 25 Jan 2026 06:16:20 +1300 Subject: [PATCH] update prism webdep (#1238) * update prism to 1.30.0 * split out prism plugins * deps: list all prism langs --- scripts/deps-docker/Dockerfile | 2 +- scripts/deps-docker/genprism.sh | 259 +++++++++++++++++++++++++++++++- 2 files changed, 259 insertions(+), 2 deletions(-) diff --git a/scripts/deps-docker/Dockerfile b/scripts/deps-docker/Dockerfile index 6ea7966e..93931ea4 100644 --- a/scripts/deps-docker/Dockerfile +++ b/scripts/deps-docker/Dockerfile @@ -7,7 +7,7 @@ ENV ver_asmcrypto=c72492f4a66e17a0e5dd8ad7874de354f3ccdaa5 \ ver_mde=2.18.0 \ ver_codemirror=5.65.18 \ ver_fontawesome=5.13.0 \ - ver_prism=1.29.0 \ + ver_prism=1.30.0 \ ver_zopfli=1.0.3 # versioncheck: diff --git a/scripts/deps-docker/genprism.sh b/scripts/deps-docker/genprism.sh index 0a9ff227..a0fca276 100755 --- a/scripts/deps-docker/genprism.sh +++ b/scripts/deps-docker/genprism.sh @@ -1,63 +1,320 @@ #!/bin/bash set -e +plugins=( + line-highlight + line-numbers + autolinker +) + langs=( markup css clike javascript + # abap + # abnf + # actionscript + # ada + # agda + # al + # antlr4 + # apacheconf + # apex + # apl + # applescript + # aql + # arduino + # arff + # armasm + # arturo + # asciidoc + # aspnet + # asm6502 + # asmatmel autohotkey + # autoit + # avisynth + # avro-idl + # awk bash basic batch + # bbcode + # bbj + # bicep + # birb + # bison + # bnf + # bqn + # brainfuck + # brightscript + # bro + # bsl c csharp cpp + # cfscript + # chaiscript + # cil + # cilkc + # cilkcpp + # clojure cmake + # cobol + # coffeescript + # concurnas + # csp + # cooklang + # coq + # crystal + # css-extras + # csv + # cue + # cypher + # d + # dart + # dataweave + # dax + # dhall diff + # django + # dns-zone-file docker + # dot + # ebnf + # editorconfig + # eiffel + # ejs elixir + # elm + # etlua + # erb + # erlang + # excel-formula + # fsharp + # factor + # false + # firestore-security-rules + # flow + # fortran + # ftl + # gml + # gap + # gcode + # gdscript + # gedcom + # gettext + # gherkin + # git glsl + # gn + # linker-script go + # go-module + # gradle + # graphql + # groovy + # haml + # handlebars + # haskell + # haxe + # hcl + # hlsl + # hoon + # http + # hpkp + # hsts + # ichigojam + # icon + # icu-message-format + # idris + # ignore + # inform7 ini + # io + # j java + # javadoc + # javadoclike + # javastacktrace + # jexl + # jolie + # jq + # jsdoc + # js-extras json + # json5 + # jsonp + # jsstacktrace + # js-templates + # julia + # keepalived + # keyman kotlin + # kumir + # kusto latex + # latte less + # lilypond + # liquid lisp + # livescript + # llvm + # log + # lolcode lua + # magma makefile + # markdown + # markup-templating + # mata matlab + # maxscript + # mel + # mermaid + # metafont + # mizar + # mongodb + # monkey moonscript + # n1ql + # n4js + # nand2tetris-hdl + # naniscript + # nasm + # neon + # nevod + # nginx nim + # nix + # nsis objectivec + # ocaml + # odin + # opencl + # openqasm + # oz + # parigp + # parser + # pascal + # pascaligo + # psl + # pcaxis + # peoplecode perl + # php + # phpdoc + # php-extras + # plant-uml + # plsql + # powerquery powershell + # processing + # prolog + # promql + # properties + # protobuf + # pug + # puppet + # pure + # purebasic + # purescript python + # qsharp + # q + # qml + # qore r + # racket + # cshtml jsx + # tsx + # reason + # regex + # rego + # renpy + # rescript + # rest + # rip + # roboconf + # robotframework ruby rust + # sas sass scss + # scala + # scheme + # shell-session + # smali + # smalltalk + # smarty + # sml + # solidity + # solution-file + # soy + # sparql + # splunk-spl + # sqf sql + # squirrel + # stan + # stata + # iecst + # stylus + # supercollider swift systemd + # t4-templating + # t4-cs + # t4-vb + # tap + # tcl + # tt2 + # textile toml + # tremor + # turtle + # twig typescript + # typoscript + # unrealscript + # uorazor + # uri + # v + # vala vbnet + # velocity verilog vhdl + # vim + # visual-basic + # warpscript + # wasm + # web-idl + # wgsl + # wiki + # wolfram + # wren + # xeora + # xml-doc + # xojo + # xquery yaml + # yang zig ) slangs="${langs[*]}" slangs="${slangs// /+}" +splugins="${plugins[*]}" +splugins="${splugins// /+}" + for theme in prism-funky prism ; do - u="https://prismjs.com/download.html#themes=$theme&languages=$slangs&plugins=line-highlight+line-numbers+autolinker" + u="https://prismjs.com/download.html#themes=$theme&languages=$slangs&plugins=$splugins" echo "$u" ./genprism.py --dir prism-$1 --js-out prism.js --css-out $theme.css "$u" done