highlight.js
Advanced tools
Comparing version 9.18.1 to 9.18.2
@@ -36,4 +36,4 @@ /* | ||
// Global internal variables used within the highlight.js library. | ||
var languages = {}, | ||
aliases = {}; | ||
var languages = Object.create(null), | ||
aliases = Object.create(null); | ||
@@ -40,0 +40,0 @@ // safe/production mode - swallows more errors, tries to keep running |
163
lib/index.js
var hljs = require('./highlight'); | ||
hljs.registerLanguage('1c', require('./languages/1c')); | ||
hljs.registerLanguage('abnf', require('./languages/abnf')); | ||
hljs.registerLanguage('accesslog', require('./languages/accesslog')); | ||
hljs.registerLanguage('actionscript', require('./languages/actionscript')); | ||
hljs.registerLanguage('ada', require('./languages/ada')); | ||
hljs.registerLanguage('angelscript', require('./languages/angelscript')); | ||
hljs.registerLanguage('apache', require('./languages/apache')); | ||
hljs.registerLanguage('applescript', require('./languages/applescript')); | ||
hljs.registerLanguage('arcade', require('./languages/arcade')); | ||
hljs.registerLanguage('cpp', require('./languages/cpp')); | ||
hljs.registerLanguage('arduino', require('./languages/arduino')); | ||
hljs.registerLanguage('armasm', require('./languages/armasm')); | ||
hljs.registerLanguage('xml', require('./languages/xml')); | ||
hljs.registerLanguage('asciidoc', require('./languages/asciidoc')); | ||
hljs.registerLanguage('aspectj', require('./languages/aspectj')); | ||
hljs.registerLanguage('autohotkey', require('./languages/autohotkey')); | ||
hljs.registerLanguage('autoit', require('./languages/autoit')); | ||
hljs.registerLanguage('avrasm', require('./languages/avrasm')); | ||
hljs.registerLanguage('awk', require('./languages/awk')); | ||
hljs.registerLanguage('axapta', require('./languages/axapta')); | ||
hljs.registerLanguage('bash', require('./languages/bash')); | ||
hljs.registerLanguage('basic', require('./languages/basic')); | ||
hljs.registerLanguage('bnf', require('./languages/bnf')); | ||
hljs.registerLanguage('brainfuck', require('./languages/brainfuck')); | ||
hljs.registerLanguage('cal', require('./languages/cal')); | ||
hljs.registerLanguage('capnproto', require('./languages/capnproto')); | ||
hljs.registerLanguage('ceylon', require('./languages/ceylon')); | ||
hljs.registerLanguage('clean', require('./languages/clean')); | ||
hljs.registerLanguage('clojure', require('./languages/clojure')); | ||
hljs.registerLanguage('clojure-repl', require('./languages/clojure-repl')); | ||
hljs.registerLanguage('cmake', require('./languages/cmake')); | ||
hljs.registerLanguage('coffeescript', require('./languages/coffeescript')); | ||
hljs.registerLanguage('coq', require('./languages/coq')); | ||
hljs.registerLanguage('cos', require('./languages/cos')); | ||
hljs.registerLanguage('crmsh', require('./languages/crmsh')); | ||
hljs.registerLanguage('crystal', require('./languages/crystal')); | ||
hljs.registerLanguage('cpp', require('./languages/cpp')); | ||
hljs.registerLanguage('cs', require('./languages/cs')); | ||
hljs.registerLanguage('csp', require('./languages/csp')); | ||
hljs.registerLanguage('css', require('./languages/css')); | ||
hljs.registerLanguage('d', require('./languages/d')); | ||
hljs.registerLanguage('markdown', require('./languages/markdown')); | ||
hljs.registerLanguage('dart', require('./languages/dart')); | ||
hljs.registerLanguage('delphi', require('./languages/delphi')); | ||
hljs.registerLanguage('diff', require('./languages/diff')); | ||
hljs.registerLanguage('django', require('./languages/django')); | ||
hljs.registerLanguage('dns', require('./languages/dns')); | ||
hljs.registerLanguage('dockerfile', require('./languages/dockerfile')); | ||
hljs.registerLanguage('dos', require('./languages/dos')); | ||
hljs.registerLanguage('dsconfig', require('./languages/dsconfig')); | ||
hljs.registerLanguage('dts', require('./languages/dts')); | ||
hljs.registerLanguage('dust', require('./languages/dust')); | ||
hljs.registerLanguage('ebnf', require('./languages/ebnf')); | ||
hljs.registerLanguage('elixir', require('./languages/elixir')); | ||
hljs.registerLanguage('elm', require('./languages/elm')); | ||
hljs.registerLanguage('ruby', require('./languages/ruby')); | ||
hljs.registerLanguage('erb', require('./languages/erb')); | ||
hljs.registerLanguage('erlang-repl', require('./languages/erlang-repl')); | ||
hljs.registerLanguage('erlang', require('./languages/erlang')); | ||
hljs.registerLanguage('excel', require('./languages/excel')); | ||
hljs.registerLanguage('fix', require('./languages/fix')); | ||
hljs.registerLanguage('flix', require('./languages/flix')); | ||
hljs.registerLanguage('fortran', require('./languages/fortran')); | ||
hljs.registerLanguage('fsharp', require('./languages/fsharp')); | ||
hljs.registerLanguage('gams', require('./languages/gams')); | ||
hljs.registerLanguage('gauss', require('./languages/gauss')); | ||
hljs.registerLanguage('gcode', require('./languages/gcode')); | ||
hljs.registerLanguage('gherkin', require('./languages/gherkin')); | ||
hljs.registerLanguage('glsl', require('./languages/glsl')); | ||
hljs.registerLanguage('gml', require('./languages/gml')); | ||
hljs.registerLanguage('go', require('./languages/go')); | ||
hljs.registerLanguage('golo', require('./languages/golo')); | ||
hljs.registerLanguage('gradle', require('./languages/gradle')); | ||
hljs.registerLanguage('groovy', require('./languages/groovy')); | ||
hljs.registerLanguage('haml', require('./languages/haml')); | ||
hljs.registerLanguage('handlebars', require('./languages/handlebars')); | ||
hljs.registerLanguage('haskell', require('./languages/haskell')); | ||
hljs.registerLanguage('haxe', require('./languages/haxe')); | ||
hljs.registerLanguage('hsp', require('./languages/hsp')); | ||
hljs.registerLanguage('htmlbars', require('./languages/htmlbars')); | ||
hljs.registerLanguage('http', require('./languages/http')); | ||
hljs.registerLanguage('hy', require('./languages/hy')); | ||
hljs.registerLanguage('inform7', require('./languages/inform7')); | ||
hljs.registerLanguage('ini', require('./languages/ini')); | ||
hljs.registerLanguage('irpf90', require('./languages/irpf90')); | ||
hljs.registerLanguage('isbl', require('./languages/isbl')); | ||
hljs.registerLanguage('java', require('./languages/java')); | ||
hljs.registerLanguage('javascript', require('./languages/javascript')); | ||
hljs.registerLanguage('jboss-cli', require('./languages/jboss-cli')); | ||
hljs.registerLanguage('json', require('./languages/json')); | ||
hljs.registerLanguage('julia', require('./languages/julia')); | ||
hljs.registerLanguage('julia-repl', require('./languages/julia-repl')); | ||
hljs.registerLanguage('kotlin', require('./languages/kotlin')); | ||
hljs.registerLanguage('lasso', require('./languages/lasso')); | ||
hljs.registerLanguage('ldif', require('./languages/ldif')); | ||
hljs.registerLanguage('leaf', require('./languages/leaf')); | ||
hljs.registerLanguage('less', require('./languages/less')); | ||
hljs.registerLanguage('lisp', require('./languages/lisp')); | ||
hljs.registerLanguage('livecodeserver', require('./languages/livecodeserver')); | ||
hljs.registerLanguage('livescript', require('./languages/livescript')); | ||
hljs.registerLanguage('llvm', require('./languages/llvm')); | ||
hljs.registerLanguage('lsl', require('./languages/lsl')); | ||
hljs.registerLanguage('lua', require('./languages/lua')); | ||
hljs.registerLanguage('makefile', require('./languages/makefile')); | ||
hljs.registerLanguage('mathematica', require('./languages/mathematica')); | ||
hljs.registerLanguage('matlab', require('./languages/matlab')); | ||
hljs.registerLanguage('maxima', require('./languages/maxima')); | ||
hljs.registerLanguage('mel', require('./languages/mel')); | ||
hljs.registerLanguage('mercury', require('./languages/mercury')); | ||
hljs.registerLanguage('mipsasm', require('./languages/mipsasm')); | ||
hljs.registerLanguage('mizar', require('./languages/mizar')); | ||
hljs.registerLanguage('perl', require('./languages/perl')); | ||
hljs.registerLanguage('mojolicious', require('./languages/mojolicious')); | ||
hljs.registerLanguage('monkey', require('./languages/monkey')); | ||
hljs.registerLanguage('moonscript', require('./languages/moonscript')); | ||
hljs.registerLanguage('n1ql', require('./languages/n1ql')); | ||
hljs.registerLanguage('xml', require('./languages/xml')); | ||
hljs.registerLanguage('markdown', require('./languages/markdown')); | ||
hljs.registerLanguage('nginx', require('./languages/nginx')); | ||
hljs.registerLanguage('nimrod', require('./languages/nimrod')); | ||
hljs.registerLanguage('nix', require('./languages/nix')); | ||
hljs.registerLanguage('nsis', require('./languages/nsis')); | ||
hljs.registerLanguage('objectivec', require('./languages/objectivec')); | ||
hljs.registerLanguage('ocaml', require('./languages/ocaml')); | ||
hljs.registerLanguage('openscad', require('./languages/openscad')); | ||
hljs.registerLanguage('oxygene', require('./languages/oxygene')); | ||
hljs.registerLanguage('parser3', require('./languages/parser3')); | ||
hljs.registerLanguage('pf', require('./languages/pf')); | ||
hljs.registerLanguage('pgsql', require('./languages/pgsql')); | ||
hljs.registerLanguage('perl', require('./languages/perl')); | ||
hljs.registerLanguage('php', require('./languages/php')); | ||
hljs.registerLanguage('plaintext', require('./languages/plaintext')); | ||
hljs.registerLanguage('pony', require('./languages/pony')); | ||
hljs.registerLanguage('powershell', require('./languages/powershell')); | ||
hljs.registerLanguage('processing', require('./languages/processing')); | ||
hljs.registerLanguage('profile', require('./languages/profile')); | ||
hljs.registerLanguage('prolog', require('./languages/prolog')); | ||
hljs.registerLanguage('properties', require('./languages/properties')); | ||
hljs.registerLanguage('protobuf', require('./languages/protobuf')); | ||
hljs.registerLanguage('puppet', require('./languages/puppet')); | ||
hljs.registerLanguage('purebasic', require('./languages/purebasic')); | ||
hljs.registerLanguage('python', require('./languages/python')); | ||
hljs.registerLanguage('q', require('./languages/q')); | ||
hljs.registerLanguage('qml', require('./languages/qml')); | ||
hljs.registerLanguage('r', require('./languages/r')); | ||
hljs.registerLanguage('reasonml', require('./languages/reasonml')); | ||
hljs.registerLanguage('rib', require('./languages/rib')); | ||
hljs.registerLanguage('roboconf', require('./languages/roboconf')); | ||
hljs.registerLanguage('routeros', require('./languages/routeros')); | ||
hljs.registerLanguage('rsl', require('./languages/rsl')); | ||
hljs.registerLanguage('ruleslanguage', require('./languages/ruleslanguage')); | ||
hljs.registerLanguage('ruby', require('./languages/ruby')); | ||
hljs.registerLanguage('rust', require('./languages/rust')); | ||
hljs.registerLanguage('sas', require('./languages/sas')); | ||
hljs.registerLanguage('scala', require('./languages/scala')); | ||
hljs.registerLanguage('scheme', require('./languages/scheme')); | ||
hljs.registerLanguage('scilab', require('./languages/scilab')); | ||
hljs.registerLanguage('scss', require('./languages/scss')); | ||
hljs.registerLanguage('shell', require('./languages/shell')); | ||
hljs.registerLanguage('smali', require('./languages/smali')); | ||
hljs.registerLanguage('smalltalk', require('./languages/smalltalk')); | ||
hljs.registerLanguage('sml', require('./languages/sml')); | ||
hljs.registerLanguage('sqf', require('./languages/sqf')); | ||
hljs.registerLanguage('sql', require('./languages/sql')); | ||
hljs.registerLanguage('stan', require('./languages/stan')); | ||
hljs.registerLanguage('stata', require('./languages/stata')); | ||
hljs.registerLanguage('step21', require('./languages/step21')); | ||
hljs.registerLanguage('stylus', require('./languages/stylus')); | ||
hljs.registerLanguage('subunit', require('./languages/subunit')); | ||
hljs.registerLanguage('swift', require('./languages/swift')); | ||
hljs.registerLanguage('taggerscript', require('./languages/taggerscript')); | ||
hljs.registerLanguage('typescript', require('./languages/typescript')); | ||
hljs.registerLanguage('yaml', require('./languages/yaml')); | ||
hljs.registerLanguage('tap', require('./languages/tap')); | ||
hljs.registerLanguage('tcl', require('./languages/tcl')); | ||
hljs.registerLanguage('tex', require('./languages/tex')); | ||
hljs.registerLanguage('thrift', require('./languages/thrift')); | ||
hljs.registerLanguage('tp', require('./languages/tp')); | ||
hljs.registerLanguage('twig', require('./languages/twig')); | ||
hljs.registerLanguage('typescript', require('./languages/typescript')); | ||
hljs.registerLanguage('vala', require('./languages/vala')); | ||
hljs.registerLanguage('vbnet', require('./languages/vbnet')); | ||
hljs.registerLanguage('vbscript', require('./languages/vbscript')); | ||
hljs.registerLanguage('vbscript-html', require('./languages/vbscript-html')); | ||
hljs.registerLanguage('verilog', require('./languages/verilog')); | ||
hljs.registerLanguage('vhdl', require('./languages/vhdl')); | ||
hljs.registerLanguage('vim', require('./languages/vim')); | ||
hljs.registerLanguage('x86asm', require('./languages/x86asm')); | ||
hljs.registerLanguage('xl', require('./languages/xl')); | ||
hljs.registerLanguage('xquery', require('./languages/xquery')); | ||
hljs.registerLanguage('zephir', require('./languages/zephir')); | ||
module.exports = hljs; |
@@ -9,3 +9,3 @@ { | ||
"homepage": "https://highlightjs.org/", | ||
"version": "9.18.1", | ||
"version": "9.18.2", | ||
"author": { | ||
@@ -12,0 +12,0 @@ "name": "Ivan Sagalaev", |
@@ -304,4 +304,4 @@ # Highlight.js | ||
You can use highlight.js with node to highlight content before sending it to the browser. | ||
Make sure to use the `.value` property to get the formatted html. | ||
You can use highlight.js with node to highlight content before sending it to the browser. | ||
Make sure to use the `.value` property to get the formatted html. | ||
For more info about the returned object refer to the api docs https://highlightjs.readthedocs.io/en/latest/api.html | ||
@@ -347,3 +347,3 @@ | ||
charset="UTF-8" | ||
src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.9/languages/go.min.js"></script> | ||
src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.2/languages/go.min.js"></script> | ||
``` | ||
@@ -350,0 +350,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
510713
238
11324