From e2eb6355edbab15d993351938e210c299261bee2 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Sat, 23 Jul 2022 14:00:46 -0700 Subject: [PATCH] :recycle: Adjusted a few things --- scripts/bgit | 2 +- .../prism_okaidia.js} | 0 .../prism_solarized_light.js | 21401 ++++++++++++++++ .../themes/prism_okaidia.css} | 0 .../themes/prism_solarized_light.css | 154 + 5 files changed, 21556 insertions(+), 1 deletion(-) rename web_resources/{prism.js => prism_code_snippet_themes/prism_okaidia.js} (100%) create mode 100644 web_resources/prism_code_snippet_themes/prism_solarized_light.js rename web_resources/{prism.css => prism_code_snippet_themes/themes/prism_okaidia.css} (100%) create mode 100644 web_resources/prism_code_snippet_themes/themes/prism_solarized_light.css diff --git a/scripts/bgit b/scripts/bgit index f4d797f2..c7d10738 100755 --- a/scripts/bgit +++ b/scripts/bgit @@ -285,7 +285,7 @@ else # also remembers password for 1 hour after last use # (comment out if more security needed, or just use ssh...) echo "${txtgreen}bgit will remember your password for 1 hour!" - echo "(doesn't apply to gpg, ssh, or pat)${txtwhite}" + echo "(doesn't apply to gpg or ssh)${txtwhite}" git config credential.helper 'cache --timeout=3600'; git config advice.addEmptyPathspec false; git add $modified $newfiles ; diff --git a/web_resources/prism.js b/web_resources/prism_code_snippet_themes/prism_okaidia.js similarity index 100% rename from web_resources/prism.js rename to web_resources/prism_code_snippet_themes/prism_okaidia.js diff --git a/web_resources/prism_code_snippet_themes/prism_solarized_light.js b/web_resources/prism_code_snippet_themes/prism_solarized_light.js new file mode 100644 index 00000000..360bcbd5 --- /dev/null +++ b/web_resources/prism_code_snippet_themes/prism_solarized_light.js @@ -0,0 +1,21401 @@ +/* PrismJS 1.28.0 +https://prismjs.com/download.html#themes=prism-solarizedlight&languages=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+bicep+birb+bison+bnf+brainfuck+brightscript+bro+bsl+c+csharp+cpp+cfscript+chaiscript+cil+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 */ +/// + +var _self = (typeof window !== 'undefined') + ? window // if in browser + : ( + (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) + ? self // if in worker + : {} // if in node js + ); + +/** + * Prism: Lightweight, robust, elegant syntax highlighting + * + * @license MIT + * @author Lea Verou + * @namespace + * @public + */ +var Prism = (function (_self) { + + // Private helper vars + var lang = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i; + var uniqueId = 0; + + // The grammar object for plaintext + var plainTextGrammar = {}; + + + var _ = { + /** + * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the + * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load + * additional languages or plugins yourself. + * + * By setting this value to `true`, Prism will not automatically highlight all code elements on the page. + * + * You obviously have to change this value before the automatic highlighting started. To do this, you can add an + * empty Prism object into the global scope before loading the Prism script like this: + * + * ```js + * window.Prism = window.Prism || {}; + * Prism.manual = true; + * // add a new