@deckdeckgo/highlight-code
Version:
A Web Component to highlight your code
449 lines (444 loc) • 19.3 kB
JavaScript
'use strict';
exports.DeckdeckgoHighlightCodeTerminal = void 0;
(function (DeckdeckgoHighlightCodeTerminal) {
DeckdeckgoHighlightCodeTerminal["CARBON"] = "carbon";
DeckdeckgoHighlightCodeTerminal["UBUNTU"] = "ubuntu";
DeckdeckgoHighlightCodeTerminal["PAPYRS"] = "papyrs";
DeckdeckgoHighlightCodeTerminal["NONE"] = "none";
})(exports.DeckdeckgoHighlightCodeTerminal || (exports.DeckdeckgoHighlightCodeTerminal = {}));
exports.DeckdeckgoHighlightCodeCarbonTheme = void 0;
(function (DeckdeckgoHighlightCodeCarbonTheme) {
DeckdeckgoHighlightCodeCarbonTheme["3024-NIGHT"] = "3024-night";
DeckdeckgoHighlightCodeCarbonTheme["A11Y-DARK"] = "a11y-dark";
DeckdeckgoHighlightCodeCarbonTheme["BLACKBOARD"] = "blackboard";
DeckdeckgoHighlightCodeCarbonTheme["BASE16-DARK"] = "base16-dark";
DeckdeckgoHighlightCodeCarbonTheme["BASE16-LIGHT"] = "base16-light";
DeckdeckgoHighlightCodeCarbonTheme["COBALT"] = "cobalt";
DeckdeckgoHighlightCodeCarbonTheme["DRACULA"] = "dracula";
DeckdeckgoHighlightCodeCarbonTheme["DUOTONE"] = "duotone";
DeckdeckgoHighlightCodeCarbonTheme["HOPSCOTCH"] = "hopscotch";
DeckdeckgoHighlightCodeCarbonTheme["LUCARIO"] = "lucario";
DeckdeckgoHighlightCodeCarbonTheme["MATERIAL"] = "material";
DeckdeckgoHighlightCodeCarbonTheme["MONOKAI"] = "monokai";
DeckdeckgoHighlightCodeCarbonTheme["NIGHT-OWL"] = "night-owl";
DeckdeckgoHighlightCodeCarbonTheme["NORD"] = "nord";
DeckdeckgoHighlightCodeCarbonTheme["OCEANIC-NEXT"] = "oceanic-next";
DeckdeckgoHighlightCodeCarbonTheme["ONE-LIGHT"] = "one-light";
DeckdeckgoHighlightCodeCarbonTheme["ONE-DARK"] = "one-dark";
DeckdeckgoHighlightCodeCarbonTheme["PANDA"] = "panda";
DeckdeckgoHighlightCodeCarbonTheme["PARAISO"] = "paraiso";
DeckdeckgoHighlightCodeCarbonTheme["SETI"] = "seti";
DeckdeckgoHighlightCodeCarbonTheme["SHADES-OF-PURPLE"] = "shades-of-purple";
DeckdeckgoHighlightCodeCarbonTheme["SOLARIZED-DARK"] = "solarized-dark";
DeckdeckgoHighlightCodeCarbonTheme["SOLARIZED-LIGHT"] = "solarized-light";
DeckdeckgoHighlightCodeCarbonTheme["SYNTHWAVE"] = "synthwave";
DeckdeckgoHighlightCodeCarbonTheme["TWILIGHT"] = "twilight";
DeckdeckgoHighlightCodeCarbonTheme["VERMINAL"] = "verminal";
DeckdeckgoHighlightCodeCarbonTheme["VSCODE"] = "vscode";
DeckdeckgoHighlightCodeCarbonTheme["YETI"] = "yeti";
DeckdeckgoHighlightCodeCarbonTheme["ZENBURN"] = "zenburn";
})(exports.DeckdeckgoHighlightCodeCarbonTheme || (exports.DeckdeckgoHighlightCodeCarbonTheme = {}));
const deckdeckgoHighlightCodeLanguages = {
markup: { title: 'Markup' },
html: { title: 'HTML', main: 'markup' },
xml: { title: 'XML', main: 'markup' },
svg: { title: 'SVG', main: 'markup' },
mathml: { title: 'MathML', main: 'markup' },
ssml: { title: 'SSML', main: 'markup' },
atom: { title: 'Atom', main: 'markup' },
rss: { title: 'RSS', main: 'markup' },
css: { title: 'CSS' },
clike: { title: 'C-like' },
javascript: { title: 'JavaScript' },
js: { title: 'js', main: 'javascript' },
abap: { title: 'ABAP' },
abnf: { title: 'ABNF' },
actionscript: { title: 'ActionScript' },
ada: { title: 'Ada' },
agda: { title: 'Agda' },
al: { title: 'AL' },
antlr4: { title: 'ANTLR4' },
g4: { title: 'g4', main: 'antlr4' },
apacheconf: { title: 'Apache Configuration' },
apex: { title: 'Apex', require: ['sql'] },
apl: { title: 'APL' },
applescript: { title: 'AppleScript' },
aql: { title: 'AQL' },
arduino: { title: 'Arduino', require: ['cpp'] },
ino: { title: 'ino', main: 'arduino', require: ['cpp'] },
arff: { title: 'ARFF' },
armasm: { title: 'ARM Assembly' },
'arm-asm': { title: 'arm-asm', main: 'armasm' },
arturo: { title: 'Arturo' },
art: { title: 'art', main: 'arturo' },
asciidoc: { title: 'AsciiDoc' },
adoc: { title: 'adoc', main: 'asciidoc' },
aspnet: { title: 'ASP.NET (C#)', require: ['markup', 'csharp'] },
asm6502: { title: '6502 Assembly' },
asmatmel: { title: 'Atmel AVR Assembly' },
autohotkey: { title: 'AutoHotkey' },
autoit: { title: 'AutoIt' },
avisynth: { title: 'AviSynth' },
avs: { title: 'avs', main: 'avisynth' },
'avro-idl': { title: 'Avro IDL' },
avdl: { title: 'avdl', main: 'avro-idl' },
awk: { title: 'AWK' },
gawk: { title: 'GAWK', main: 'awk' },
bash: { title: 'Bash' },
sh: { title: 'Shell', main: 'bash' },
shell: { title: 'Shell', main: 'bash' },
basic: { title: 'BASIC' },
batch: { title: 'Batch' },
bbcode: { title: 'BBcode' },
shortcode: { title: 'Shortcode', main: 'bbcode' },
bbj: { title: 'BBj' },
bicep: { title: 'Bicep' },
birb: { title: 'Birb' },
bison: { title: 'Bison', require: ['c'] },
bnf: { title: 'BNF' },
rbnf: { title: 'RBNF', main: 'bnf' },
bqn: { title: 'BQN' },
brainfuck: { title: 'Brainfuck' },
brightscript: { title: 'BrightScript' },
bro: { title: 'Bro' },
bsl: { title: 'BSL (1C:Enterprise)' },
oscript: { title: 'OneScript', main: 'bsl' },
c: { title: 'C' },
csharp: { title: 'C#' },
cs: { title: 'cs', main: 'csharp' },
dotnet: { title: 'dotnet', main: 'csharp' },
cpp: { title: 'C++', require: ['c'] },
cfscript: { title: 'CFScript' },
cfc: { title: 'cfc', main: 'cfscript' },
chaiscript: { title: 'ChaiScript', require: ['cpp'] },
cil: { title: 'CIL' },
cilkc: { title: 'Cilk/C', require: ['c'] },
'cilk-c': { title: 'cilk-c', main: 'cilkc', require: ['c'] },
cilkcpp: { title: 'Cilk/C++', require: ['cpp'] },
'cilk-cpp': { title: 'cilk-cpp', main: 'cilkcpp', require: ['cpp'] },
cilk: { title: 'cilk', main: 'cilkcpp', require: ['cpp'] },
clojure: { title: 'Clojure' },
cmake: { title: 'CMake' },
cobol: { title: 'COBOL' },
coffeescript: { title: 'CoffeeScript' },
coffee: { title: 'coffee', main: 'coffeescript' },
concurnas: { title: 'Concurnas' },
conc: { title: 'conc', main: 'concurnas' },
csp: { title: 'Content-Security-Policy' },
cooklang: { title: 'Cooklang' },
coq: { title: 'Coq' },
crystal: { title: 'Crystal', require: ['ruby'] },
'css-extras': { title: 'CSS Extras', require: ['css'] },
csv: { title: 'CSV' },
cue: { title: 'CUE' },
cypher: { title: 'Cypher' },
d: { title: 'D' },
dart: { title: 'Dart' },
dataweave: { title: 'DataWeave' },
dax: { title: 'DAX' },
dhall: { title: 'Dhall' },
diff: { title: 'Diff' },
django: { title: 'Django/Jinja2', require: ['markup-templating'] },
jinja2: { title: 'jinja2', main: 'django', require: ['markup-templating'] },
'dns-zone-file': { title: 'DNS zone file' },
'dns-zone': { title: 'dns-zone', main: 'dns-zone-file' },
docker: { title: 'Docker' },
dockerfile: { title: 'dockerfile', main: 'docker' },
dot: { title: 'DOT (Graphviz)' },
gv: { title: 'gv', main: 'dot' },
ebnf: { title: 'EBNF' },
editorconfig: { title: 'EditorConfig' },
eiffel: { title: 'Eiffel' },
ejs: { title: 'EJS', require: ['markup-templating'] },
eta: { title: 'Eta', main: 'ejs', require: ['markup-templating'] },
elixir: { title: 'Elixir' },
elm: { title: 'Elm' },
etlua: { title: 'Embedded Lua templating', require: ['lua', 'markup-templating'] },
erb: { title: 'ERB', require: ['ruby', 'markup-templating'] },
erlang: { title: 'Erlang' },
'excel-formula': { title: 'Excel Formula' },
xlsx: { title: 'xlsx', main: 'excel-formula' },
xls: { title: 'xls', main: 'excel-formula' },
fsharp: { title: 'F#' },
factor: { title: 'Factor' },
false: { title: 'False' },
'firestore-security-rules': { title: 'Firestore security rules' },
flow: { title: 'Flow' },
fortran: { title: 'Fortran' },
ftl: { title: 'FreeMarker Template Language', require: ['markup-templating'] },
gml: { title: 'GameMaker Language' },
gamemakerlanguage: { title: 'gamemakerlanguage', main: 'gml' },
gap: { title: 'GAP (CAS)' },
gcode: { title: 'G-code' },
gdscript: { title: 'GDScript' },
gedcom: { title: 'GEDCOM' },
gettext: { title: 'gettext' },
po: { title: 'po', main: 'gettext' },
gherkin: { title: 'Gherkin' },
git: { title: 'Git' },
glsl: { title: 'GLSL', require: ['c'] },
gn: { title: 'GN' },
gni: { title: 'gni', main: 'gn' },
'linker-script': { title: 'GNU Linker Script' },
ld: { title: 'ld', main: 'linker-script' },
go: { title: 'Go' },
'go-module': { title: 'Go module' },
'go-mod': { title: 'go-mod', main: 'go-module' },
gradle: { title: 'Gradle' },
graphql: { title: 'GraphQL' },
groovy: { title: 'Groovy' },
haml: { title: 'Haml', require: ['ruby'] },
handlebars: { title: 'Handlebars', require: ['markup-templating'] },
hbs: { title: 'hbs', main: 'handlebars', require: ['markup-templating'] },
mustache: { title: 'Mustache', main: 'handlebars', require: ['markup-templating'] },
haskell: { title: 'Haskell' },
hs: { title: 'hs', main: 'haskell' },
haxe: { title: 'Haxe' },
hcl: { title: 'HCL' },
hlsl: { title: 'HLSL', require: ['c'] },
hoon: { title: 'Hoon' },
http: { title: 'HTTP' },
hpkp: { title: 'HTTP Public-Key-Pins' },
hsts: { title: 'HTTP Strict-Transport-Security' },
ichigojam: { title: 'IchigoJam' },
icon: { title: 'Icon' },
'icu-message-format': { title: 'ICU Message Format' },
idris: { title: 'Idris', require: ['haskell'] },
idr: { title: 'idr', main: 'idris', require: ['haskell'] },
ignore: { title: '.ignore' },
gitignore: { title: '.gitignore', main: 'ignore' },
hgignore: { title: '.hgignore', main: 'ignore' },
npmignore: { title: '.npmignore', main: 'ignore' },
inform7: { title: 'Inform 7' },
ini: { title: 'Ini' },
io: { title: 'Io' },
j: { title: 'J' },
java: { title: 'Java' },
javadoc: { title: 'JavaDoc', require: ['markup', 'java', 'javadoclike'] },
javadoclike: { title: 'JavaDoc-like' },
javastacktrace: { title: 'Java stack trace' },
jexl: { title: 'Jexl' },
jolie: { title: 'Jolie' },
jq: { title: 'JQ' },
jsdoc: { title: 'JSDoc', require: ['javadoclike', 'typescript'] },
'js-extras': { title: 'JS Extras' },
json: { title: 'JSON' },
webmanifest: { title: 'Web App Manifest', main: 'json' },
json5: { title: 'JSON5', require: ['json'] },
jsonp: { title: 'JSONP', require: ['json'] },
jsstacktrace: { title: 'JS stack trace' },
'js-templates': { title: 'JS Templates' },
julia: { title: 'Julia' },
keepalived: { title: 'Keepalived Configure' },
keyman: { title: 'Keyman' },
kotlin: { title: 'Kotlin' },
kt: { title: 'kt', main: 'kotlin' },
kts: { title: 'Kotlin Script', main: 'kotlin' },
kumir: { title: 'KuMir (КуМир)' },
kum: { title: 'kum', main: 'kumir' },
kusto: { title: 'Kusto' },
latex: { title: 'LaTeX' },
tex: { title: 'TeX', main: 'latex' },
context: { title: 'ConTeXt', main: 'latex' },
latte: { title: 'Latte', require: ['markup-templating', 'php'] },
less: { title: 'Less', require: ['css'] },
lilypond: { title: 'LilyPond', require: ['scheme'] },
ly: { title: 'ly', main: 'lilypond', require: ['scheme'] },
liquid: { title: 'Liquid', require: ['markup-templating'] },
lisp: { title: 'Lisp' },
emacs: { title: 'emacs', main: 'lisp' },
elisp: { title: 'elisp', main: 'lisp' },
'emacs-lisp': { title: 'emacs-lisp', main: 'lisp' },
livescript: { title: 'LiveScript' },
llvm: { title: 'LLVM IR' },
log: { title: 'Log file' },
lolcode: { title: 'LOLCODE' },
lua: { title: 'Lua' },
magma: { title: 'Magma (CAS)' },
makefile: { title: 'Makefile' },
markdown: { title: 'Markdown', require: ['markup'] },
md: { title: 'md', main: 'markdown', require: ['markup'] },
'markup-templating': { title: 'Markup templating', require: ['markup'] },
mata: { title: 'Mata' },
matlab: { title: 'MATLAB' },
maxscript: { title: 'MAXScript' },
mel: { title: 'MEL' },
mermaid: { title: 'Mermaid' },
metafont: { title: 'METAFONT' },
mizar: { title: 'Mizar' },
mongodb: { title: 'MongoDB' },
monkey: { title: 'Monkey' },
moonscript: { title: 'MoonScript' },
moon: { title: 'moon', main: 'moonscript' },
n1ql: { title: 'N1QL' },
n4js: { title: 'N4JS' },
n4jsd: { title: 'n4jsd', main: 'n4js' },
'nand2tetris-hdl': { title: 'Nand To Tetris HDL' },
naniscript: { title: 'Naninovel Script' },
nani: { title: 'nani', main: 'naniscript' },
nasm: { title: 'NASM' },
neon: { title: 'NEON' },
nevod: { title: 'Nevod' },
nginx: { title: 'nginx' },
nim: { title: 'Nim' },
nix: { title: 'Nix' },
nsis: { title: 'NSIS' },
objectivec: { title: 'Objective-C', require: ['c'] },
objc: { title: 'objc', main: 'objectivec', require: ['c'] },
ocaml: { title: 'OCaml' },
odin: { title: 'Odin' },
opencl: { title: 'OpenCL', require: ['c'] },
openqasm: { title: 'OpenQasm' },
qasm: { title: 'qasm', main: 'openqasm' },
oz: { title: 'Oz' },
parigp: { title: 'PARI/GP' },
parser: { title: 'Parser', require: ['markup'] },
pascal: { title: 'Pascal' },
objectpascal: { title: 'Object Pascal', main: 'pascal' },
pascaligo: { title: 'Pascaligo' },
psl: { title: 'PATROL Scripting Language' },
pcaxis: { title: 'PC-Axis' },
px: { title: 'px', main: 'pcaxis' },
peoplecode: { title: 'PeopleCode' },
pcode: { title: 'pcode', main: 'peoplecode' },
perl: { title: 'Perl' },
php: { title: 'PHP', require: ['markup-templating'] },
phpdoc: { title: 'PHPDoc', require: ['php', 'javadoclike'] },
'php-extras': { title: 'PHP Extras', require: ['php'] },
'plant-uml': { title: 'PlantUML' },
plantuml: { title: 'plantuml', main: 'plant-uml' },
plsql: { title: 'PL/SQL', require: ['sql'] },
powerquery: { title: 'PowerQuery' },
pq: { title: 'pq', main: 'powerquery' },
mscript: { title: 'mscript', main: 'powerquery' },
powershell: { title: 'PowerShell' },
processing: { title: 'Processing' },
prolog: { title: 'Prolog' },
promql: { title: 'PromQL' },
properties: { title: '.properties' },
protobuf: { title: 'Protocol Buffers' },
pug: { title: 'Pug', require: ['markup'] },
puppet: { title: 'Puppet' },
pure: { title: 'Pure' },
purebasic: { title: 'PureBasic' },
pbfasm: { title: 'pbfasm', main: 'purebasic' },
purescript: { title: 'PureScript', require: ['haskell'] },
purs: { title: 'purs', main: 'purescript', require: ['haskell'] },
python: { title: 'Python' },
py: { title: 'py', main: 'python' },
qsharp: { title: 'Q#' },
qs: { title: 'qs', main: 'qsharp' },
q: { title: 'Q (kdb+ database)' },
qml: { title: 'QML' },
qore: { title: 'Qore' },
r: { title: 'R' },
racket: { title: 'Racket', require: ['scheme'] },
rkt: { title: 'rkt', main: 'racket', require: ['scheme'] },
cshtml: { title: 'Razor C#', require: ['markup', 'csharp'] },
razor: { title: 'razor', main: 'cshtml', require: ['markup', 'csharp'] },
jsx: { title: 'React JSX', require: ['markup'] },
tsx: { title: 'React TSX', require: ['jsx', 'typescript'] },
reason: { title: 'Reason' },
regex: { title: 'Regex' },
rego: { title: 'Rego' },
renpy: { title: "Ren'py" },
rpy: { title: 'rpy', main: 'renpy' },
rescript: { title: 'ReScript' },
res: { title: 'res', main: 'rescript' },
rest: { title: 'reST (reStructuredText)' },
rip: { title: 'Rip' },
roboconf: { title: 'Roboconf' },
robotframework: { title: 'Robot Framework' },
robot: { title: 'robot', main: 'robotframework' },
ruby: { title: 'Ruby' },
rb: { title: 'rb', main: 'ruby' },
rust: { title: 'Rust' },
sas: { title: 'SAS' },
sass: { title: 'Sass (Sass)', require: ['css'] },
scss: { title: 'Sass (SCSS)', require: ['css'] },
scala: { title: 'Scala', require: ['java'] },
scheme: { title: 'Scheme' },
'shell-session': { title: 'Shell session', require: ['bash'] },
'sh-session': { title: 'sh-session', main: 'shell-session', require: ['bash'] },
shellsession: { title: 'shellsession', main: 'shell-session', require: ['bash'] },
smali: { title: 'Smali' },
smalltalk: { title: 'Smalltalk' },
smarty: { title: 'Smarty', require: ['markup-templating'] },
sml: { title: 'SML' },
smlnj: { title: 'SML/NJ', main: 'sml' },
solidity: { title: 'Solidity (Ethereum)' },
sol: { title: 'sol', main: 'solidity' },
'solution-file': { title: 'Solution file' },
sln: { title: 'sln', main: 'solution-file' },
soy: { title: 'Soy (Closure Template)', require: ['markup-templating'] },
sparql: { title: 'SPARQL', require: ['turtle'] },
rq: { title: 'rq', main: 'sparql', require: ['turtle'] },
'splunk-spl': { title: 'Splunk SPL' },
sqf: { title: 'SQF: Status Quo Function (Arma 3)' },
sql: { title: 'SQL' },
squirrel: { title: 'Squirrel' },
stan: { title: 'Stan' },
stata: { title: 'Stata Ado', require: ['mata', 'java', 'python'] },
iecst: { title: 'Structured Text (IEC 61131-3)' },
stylus: { title: 'Stylus' },
supercollider: { title: 'SuperCollider' },
sclang: { title: 'sclang', main: 'supercollider' },
swift: { title: 'Swift' },
systemd: { title: 'Systemd configuration file' },
't4-templating': { title: 'T4 templating' },
't4-cs': { title: 'T4 Text Templates (C#)', require: ['t4-templating', 'csharp'] },
t4: { title: 't4', main: 't4-cs', require: ['t4-templating', 'csharp'] },
't4-vb': { title: 'T4 Text Templates (VB)', require: ['t4-templating', 'vbnet'] },
tap: { title: 'TAP', require: ['yaml'] },
tcl: { title: 'Tcl' },
tt2: { title: 'Template Toolkit 2', require: ['markup-templating'] },
textile: { title: 'Textile', require: ['markup'] },
toml: { title: 'TOML' },
tremor: { title: 'Tremor' },
trickle: { title: 'trickle', main: 'tremor' },
troy: { title: 'troy', main: 'tremor' },
turtle: { title: 'Turtle' },
trig: { title: 'TriG', main: 'turtle' },
twig: { title: 'Twig', require: ['markup-templating'] },
typescript: { title: 'TypeScript' },
ts: { title: 'ts', main: 'typescript' },
typoscript: { title: 'TypoScript' },
tsconfig: { title: 'TSConfig', main: 'typoscript' },
unrealscript: { title: 'UnrealScript' },
uscript: { title: 'uscript', main: 'unrealscript' },
uc: { title: 'uc', main: 'unrealscript' },
uorazor: { title: 'UO Razor Script' },
uri: { title: 'URI' },
url: { title: 'URL', main: 'uri' },
v: { title: 'V' },
vala: { title: 'Vala' },
vbnet: { title: 'VB.Net', require: ['basic'] },
velocity: { title: 'Velocity', require: ['markup'] },
verilog: { title: 'Verilog' },
vhdl: { title: 'VHDL' },
vim: { title: 'vim' },
'visual-basic': { title: 'Visual Basic' },
vb: { title: 'vb', main: 'visual-basic' },
vba: { title: 'VBA', main: 'visual-basic' },
warpscript: { title: 'WarpScript' },
wasm: { title: 'WebAssembly' },
'web-idl': { title: 'Web IDL' },
webidl: { title: 'webidl', main: 'web-idl' },
wgsl: { title: 'WGSL' },
wiki: { title: 'Wiki markup', require: ['markup'] },
wolfram: { title: 'Wolfram language' },
mathematica: { title: 'Mathematica', main: 'wolfram' },
nb: { title: 'Mathematica Notebook', main: 'wolfram' },
wl: { title: 'wl', main: 'wolfram' },
wren: { title: 'Wren' },
xeora: { title: 'Xeora', require: ['markup'] },
xeoracube: { title: 'XeoraCube', main: 'xeora', require: ['markup'] },
'xml-doc': { title: 'XML doc (.net)', require: ['markup'] },
xojo: { title: 'Xojo (REALbasic)' },
xquery: { title: 'XQuery', require: ['markup'] },
yaml: { title: 'YAML' },
yml: { title: 'yml', main: 'yaml' },
yang: { title: 'YANG' },
zig: { title: 'Zig' }
};
exports.deckdeckgoHighlightCodeLanguages = deckdeckgoHighlightCodeLanguages;