{"_id":"@observablehq/highlight.js","_rev":"32-9e2ec6e95dbfdac8ed1ea013cf400e7d","name":"@observablehq/highlight.js","dist-tags":{"alpha":"2.0.0-alpha.3","latest":"2.0.0"},"versions":{"1.0.0":{"name":"@observablehq/highlight.js","version":"1.0.0","author":{"name":"highlight.js authors"},"license":"BSD-3-Clause","_id":"@observablehq/highlight.js@1.0.0","maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"homepage":"https://github.com/observablehq/highlight#readme","bugs":{"url":"https://github.com/observablehq/highlight/issues"},"dist":{"shasum":"e9b25b5b3965932a5218156b91afb8edfe9e59ac","tarball":"https://registry.npmjs.org/@observablehq/highlight.js/-/highlight.js-1.0.0.tgz","integrity":"sha512-L6x4desuMgkyaqGOWZsowMFqyRy4JMaNi2CdgMlnHot99QvIlJzoS6fGWZnjS/dJBgKCGuUkTjvSiGwlJ46PAA==","signatures":[{"sig":"MEQCIBQt3oQO3dXJOOVXyTpoblWEXvWmHpi1roWOcyNk4Ta/AiAKxVJ/DMAZUHSB+T5fxwYrJAWZSL0Z8V8LKx4tl5eMcA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"highlight.min.js","files":[],"unpkg":"highlight.min.js","gitHead":"f15f9e483b0d21019dcde65e49fba3cbed216cb7","scripts":{"build":"./build.sh"},"_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"repository":{"url":"git+https://github.com/observablehq/highlight.git","type":"git"},"_npmVersion":"5.6.0","description":"highlight.js build with support for JSON, CSS, XML, and JavaScript","directories":{},"_nodeVersion":"8.9.4","_npmOperationalInternal":{"tmp":"tmp/highlight.js-1.0.0.tgz_1515451919756_0.7138442064169794","host":"s3://npm-registry-packages"}},"1.1.0-rc1":{"name":"@observablehq/highlight.js","version":"1.1.0-rc1","keywords":["highlight","syntax"],"author":{"name":"Ivan Sagalaev","email":"maniac@softwaremaniacs.org"},"license":"BSD-3-Clause","_id":"@observablehq/highlight.js@1.1.0-rc1","maintainers":[{"name":"jashkenas","email":"jashkenas@gmail.com"},{"name":"mbostock","email":"mike@ocks.org"},{"name":"tmcw","email":"tom@macwright.org"}],"contributors":[],"homepage":"https://highlightjs.org/","bugs":{"url":"https://github.com/highlightjs/highlight.js/issues"},"dist":{"shasum":"6dcd93d19086aea6ebd84b85f419515e4f9473cc","tarball":"https://registry.npmjs.org/@observablehq/highlight.js/-/highlight.js-1.1.0-rc1.tgz","fileCount":108,"integrity":"sha512-fRgHRJA46t9XAOvfRAh1fKLq9EdZvR0EXrvZDGH411xLU7s7pjAXvKbyXOFBXCiSjpgpv5qrPX9oECMCi93G8g==","signatures":[{"sig":"MEUCIQDAnLx4580JAfn8C6fvPO7nuX/JApMlSy1ZmiDsnQENDAIgK38Bsi7OZ6mJ5BTRW/UKNwvlyk8eni9fFPus9HmQdp4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":340742,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbdKXyCRA9TVsSAnZWagAA5vwP/1X2qlJ3QZG4POQi+FJ0\nf4gf+gWeJzXMsw4oofFfXNpypPkLOXlABaaehqo0bmwBS8mxy+p1zjDzlxYR\nunn03VkYPfwWWUS7hIQzkLmjpRnMJZ14YDrE2mEJ4N2W05prL0f+2SOtNyBG\ngrgNW94zHTWh8xr/XtyUenGAWmNR7rpHbeCU1X138Gf0FWhC4lPc/LJJmm4l\nIbNm366TFGWBwVkYBPLEZoL7OBCoLIdB7o22A+Tg3WF3wK+IHjCbmwjIqE89\nzeCQeU6yFG5foNTI5U+qEkMeXvQwXkf+HmlGpwregwmujGTytQRUt3XoK1bQ\ng1syenu7sFWaKDk6aadr+RyYadOYwBaAOiNjgjyA4ocY+8Vr5DnLmiBEDahK\nIynIMMzHyCrk8iHcKbtoGQJ04kfolGVDg730V4G5Ey9LIdNiKuCZ+1uokq+x\nQjivPzthkjsGkaCBmhDhuyNKRXNxlaeKs/K8F9ahUwSvvXNv5QezjgGGepX2\nvC9NpeUuYHgkpJOhCs56WzduvEepnpAipJVNJ23V9WRocLPSMlEprqz4KloZ\nn58MKQgX0KBv2ipRwMqr3Fx4YPSWLMcbkGPXHFHGUTpx9fQeD32kFkbAxDyh\ndsCoNwJNVHV5rPuIRoJBcgUwF/uF5dc/nGqVm3sk0LsNxN4GI26jQ7pYihcr\nJkAB\r\n=Vy4C\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./build/highlight.pack.js","files":["build"],"unpkg":"./build/highlight.pack.js","engines":{"node":"*"},"gitHead":"b84b2198d0c606964711778c4b70c176ee7e25f5","scripts":{"test":"mocha test/","prepublish":"node tools/build.js javascript json css xml","test-browser":"mocha test/browser/"},"_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"repository":{"url":"git://github.com/highlightjs/highlight.js.git","type":"git"},"_npmVersion":"6.3.0","description":"Syntax highlighting with language autodetection.","directories":{},"_nodeVersion":"10.8.0","_hasShrinkwrap":false,"devDependencies":{"del":"^2.0.2","gear":"^0.9.4","glob":"^7.0.3","jsdom":"^9.2.1","mocha":"^2.0.1","lodash":"^4.0.0","should":"^9.0.2","bluebird":"^3.0.1","gear-lib":"^0.9.2","commander":"^2.3.0","js-beautify":"^1.5.10","tiny-worker":"^1.1.1"},"_npmOperationalInternal":{"tmp":"tmp/highlight.js_1.1.0-rc1_1534371314261_0.2122821009832352","host":"s3://npm-registry-packages"}},"1.1.0-rc2":{"name":"@observablehq/highlight.js","version":"1.1.0-rc2","keywords":["highlight","syntax"],"author":{"name":"Ivan Sagalaev","email":"maniac@softwaremaniacs.org"},"license":"BSD-3-Clause","_id":"@observablehq/highlight.js@1.1.0-rc2","maintainers":[{"name":"jashkenas","email":"jashkenas@gmail.com"},{"name":"mbostock","email":"mike@ocks.org"},{"name":"tmcw","email":"tom@macwright.org"}],"contributors":[],"homepage":"https://highlightjs.org/","bugs":{"url":"https://github.com/highlightjs/highlight.js/issues"},"dist":{"shasum":"4cfc9bccea3cdc5b740c151ff0fd203584f8dcd1","tarball":"https://registry.npmjs.org/@observablehq/highlight.js/-/highlight.js-1.1.0-rc2.tgz","fileCount":6,"integrity":"sha512-M81GKJHGjQhfhzYyQRebTMNk5Abr+H7kTTU9vnp1gzKu3OjCgc9JCY1tYf7sSr3NjU7SCvsAX4ikm5/dlp54Ng==","signatures":[{"sig":"MEYCIQD3bbOO7BYnU0Iyn14NYZAvgISPSCZDqrUseY/KI5PlfQIhAMPbr6/IwXHdaxuYxDkpy7UMxI2d3nJ/TRuOvnJkly2X","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":84326,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbdKaeCRA9TVsSAnZWagAAnd8P/2EuNSl5akiqdIJ0Nd+E\nECyB1ZbGgI/57uQDR9PHWAz7VJpJ3qs2JzX1W9Pd83dpkgMlhJ85d5uxQK8T\ndCuVUJ9V2BTL/u6xfPVUhY+6OO8Cy7uNLV7ijBvF7zeDaQlW3XqRNPhluXVH\nTLtx2kZkbcM8yJhTwNseZTgePuTZO14TCup/O2K7joxezpTJwJ4Y8EsunU5z\nGaJLpmSufSovEWfUYNt7yEf1yoRN7ohdKdTS3wtzi6dAeqJTjBgqSoDrlDVg\nYQWp0SjdugBSX4kE8OrPF2DVn/SUnIRWP9Sgfnu+0cyvCjGtiWXbrYpHs2Z3\ngOBdNBPb+UuBhuINrGOjkZhYrfN+FyMqJb1qNqrxflwANQdMB+Q//pKj7Owd\nX11srOAsY4IBh+gLkUF1vV8+dMu/oxyeRMMjhtswriSkQlVSOfgkbVbfK6wA\n8KmW+ICSQmV9wYKqNFc2+J3T9+lrY/XqRRRqwrVku92ckUy+icPbog9qLJhe\nQeAqv8Yg2bT/jZ8TiHWO71A4hJY4P/WjNzRayLJL0/RqHRUTCYveVO44qlx5\nAuWWwHOSBXK7LB3qPSix00ZSSChB4IZciaHkP0rN47uN9+I4x0bk4yDZkMTj\nF/sSlsNyCAbvCcg++vV5lr3dnB4qfina3tayPK2KRHfMNoSEYtQMngIQHZib\nR66z\r\n=na2X\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./build/highlight.pack.js","files":["highlight.min.js"],"unpkg":"./build/highlight.pack.js","engines":{"node":"*"},"gitHead":"4efe6de30683560d8165fb2bbbd139da02b27ddc","scripts":{"test":"mocha test/","prepublish":"node tools/build.js javascript json css xml && mv build/highlight.pack.js highlight.min.js","test-browser":"mocha test/browser/"},"_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"repository":{"url":"git://github.com/highlightjs/highlight.js.git","type":"git"},"_npmVersion":"6.3.0","description":"Syntax highlighting with language autodetection.","directories":{},"_nodeVersion":"10.8.0","_hasShrinkwrap":false,"devDependencies":{"del":"^2.0.2","gear":"^0.9.4","glob":"^7.0.3","jsdom":"^9.2.1","mocha":"^2.0.1","lodash":"^4.0.0","should":"^9.0.2","bluebird":"^3.0.1","gear-lib":"^0.9.2","commander":"^2.3.0","js-beautify":"^1.5.10","tiny-worker":"^1.1.1"},"_npmOperationalInternal":{"tmp":"tmp/highlight.js_1.1.0-rc2_1534371486076_0.5481536263194913","host":"s3://npm-registry-packages"}},"1.1.0-rc3":{"name":"@observablehq/highlight.js","version":"1.1.0-rc3","keywords":["highlight","syntax"],"author":{"name":"Ivan Sagalaev","email":"maniac@softwaremaniacs.org"},"license":"BSD-3-Clause","_id":"@observablehq/highlight.js@1.1.0-rc3","maintainers":[{"name":"jashkenas","email":"jashkenas@gmail.com"},{"name":"mbostock","email":"mike@ocks.org"},{"name":"tmcw","email":"tom@macwright.org"}],"contributors":[],"homepage":"https://highlightjs.org/","bugs":{"url":"https://github.com/highlightjs/highlight.js/issues"},"dist":{"shasum":"2521d430e87bd4367944f1172b910fe756187d8c","tarball":"https://registry.npmjs.org/@observablehq/highlight.js/-/highlight.js-1.1.0-rc3.tgz","fileCount":6,"integrity":"sha512-mJ3x0Rqqqh3fHzhrcgyFZJNtwqzXQMhMuhVt2lAUZ7Z0Xy76TBuk99BoOYBRIf7QQxW0ZVXFZqxShzZMJcetgQ==","signatures":[{"sig":"MEYCIQC3E+zrvvHB9iSAGdC4FGhQ3DznRLGwdYIPvLD6/XFROgIhALUVVJR+F+/tXE2UVvYMNsGdyC0ZVTYtRL02W3RsIOfC","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":84308,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbdKcACRA9TVsSAnZWagAAAgEP/RoVUhpuR1UkZSDZiYqA\nIvFN1XZAd5XIMHz+9E+F7Agw/S+257//PePENM1X+RHBLNY50SZjMdjDG7uN\ngAPfC2TQH9fzYy0pBm8WyR30GOktgXM0Dslc/ib8epBX39/O7v0HyntKrhT3\nmXh/Lra4qI5xYCjsDOI+5Iyb2R1Sj0NeUJTMapdt4pj2gbx+bS1YhnzuhJ7O\nHOEIcI8MXaG8jDPOzVQ43NfnFuh/f2cWg+SY6z9Up7wfoui/L0PvTKCGxSPb\nf7dNDMtyeFmjTU4QkBAwVp25F/qp99xzj1wbrimWqAr9qiYGw2FtRXTjsh34\n5eCc8EAVCno6NEQPfD84FTknt5pIh7aldf1XPcFW/g/5ZVD4R1hzMwFPBxQt\nLtnrJCrR2VVAGD8b+LQ4SmIYj2gYEYi1RVuaG/ET601wiGOtNH+0FdOAnQat\nn8ctN+ppU+2D6foPuZvhH2PANmpiQWpAuNTaj8qRBgvdvh1f2KEkI0QY4iRT\niiSssbLQIovXgu094X2uBBi940PlZ8Q3VNF7x1dZRaba7n8y12r0BgYQ2wTu\n2uiNULEWhN1zDWfKpGnXtK9CLlWbwKkkEZAZZILiHayaNuILrVWRQ/+l0IE1\nUv880F9OxTtY21FPmeajoL09LeS0n0Mq8f2do6++lkucvRjn2V4+GZwjrUJb\n+v0t\r\n=Jr1W\r\n-----END PGP SIGNATURE-----\r\n"},"main":"highlight.min.js","files":["highlight.min.js"],"unpkg":"highlight.min.js","engines":{"node":"*"},"gitHead":"dfa5ee4d8e2f918ffd6ee05aeed40ed3cb284b1d","scripts":{"test":"mocha test/","prepublish":"node tools/build.js javascript json css xml && mv build/highlight.pack.js highlight.min.js","test-browser":"mocha test/browser/"},"_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"repository":{"url":"git://github.com/highlightjs/highlight.js.git","type":"git"},"_npmVersion":"6.3.0","description":"Syntax highlighting with language autodetection.","directories":{},"_nodeVersion":"10.8.0","_hasShrinkwrap":false,"devDependencies":{"del":"^2.0.2","gear":"^0.9.4","glob":"^7.0.3","jsdom":"^9.2.1","mocha":"^2.0.1","lodash":"^4.0.0","should":"^9.0.2","bluebird":"^3.0.1","gear-lib":"^0.9.2","commander":"^2.3.0","js-beautify":"^1.5.10","tiny-worker":"^1.1.1"},"_npmOperationalInternal":{"tmp":"tmp/highlight.js_1.1.0-rc3_1534371583591_0.671086826894062","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@observablehq/highlight.js","version":"1.1.0","keywords":["highlight","syntax"],"author":{"name":"Ivan Sagalaev","email":"maniac@softwaremaniacs.org"},"license":"BSD-3-Clause","_id":"@observablehq/highlight.js@1.1.0","maintainers":[{"name":"jashkenas","email":"jashkenas@gmail.com"},{"name":"mbostock","email":"mike@ocks.org"},{"name":"tmcw","email":"tom@macwright.org"}],"contributors":[],"homepage":"https://highlightjs.org/","bugs":{"url":"https://github.com/highlightjs/highlight.js/issues"},"dist":{"shasum":"d790e6106b53a8f6ed84c52ec56d06a8d0282b84","tarball":"https://registry.npmjs.org/@observablehq/highlight.js/-/highlight.js-1.1.0.tgz","fileCount":6,"integrity":"sha512-xPef4+1N82Dlrn0LxVPDwU3hYGkXgWQFM7EWE4nfrky96TM4I84Mn2SFxlN86hocm5k6BM5GVtho7KUQvN0V/g==","signatures":[{"sig":"MEUCIGzHBU88gjb5dsuJjmLV3Zhv45lS4VfLxxlT/J2+Ff+bAiEAoIqPmbpnkT8DKqXEvwZBk4IKZB8hKcQfEkx3AHR1fQI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":84300,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbdKeWCRA9TVsSAnZWagAAtqcP/1fwfoB74xNBxgo7L9Wy\n+Yjl4FiFxozOM/2iVVih6cpf2jyWBf0UPeHT4ti5IFznifnXpJ+A2L77tAPw\nVeyrJnXyB7L/y1uEKzZugyeiFdBGxN5L0pfxDX4MKweGQ7M4NqMHBkxhav+o\nYVltzp7MyrCa1OJENw8pTaQScEMEzebnYtuCIxhM07RCaM4NSVT2ISERjwxX\ngg2/u0SCbBA21KRN8FPQ1pxYjc9ZXsF4I86hcler1klEtC2mS/CiPlIgU70n\nF+HWUmoclRzr3QNaoQQL1LQ2fJJXJHLXVs+5oS9Q+emjUyrrqsEop75Sm8ZT\ngjgvMzTpPindTvgIkIp7OpzeyLSDX77B/Q2UDRRag4t901ruIrx37accN2el\nFQ6npjaTkmLa9sKrCEALfjp6LG+urmJyVJv1xtsUAhoU+rWjbwrEWpzmNpYL\nw2DUxF3v/6rhmLKZTUSp0PI0luMCvsECL8yMFxCf7Zd8Pm+wigCYkcZOGcWn\npJKUj8WjUTtWAm4spR/IBlbXWTuBpG6IurhT5zmSQuzwKM1FQ0CRg1cPeMoP\n7n2rWzWeXVv2aqIkQx/20VA/y9gDzP9kGr6qzrAx7zMHUp81n+dkp0lZrrlc\nZK7xxSBBEij+mMYPqpV7XBrQR1rJFo4WsbTPCJbM11G5K9GmVL/4Iw9Ukh6o\nWYSR\r\n=gH11\r\n-----END PGP SIGNATURE-----\r\n"},"main":"highlight.min.js","files":["highlight.min.js"],"unpkg":"highlight.min.js","engines":{"node":"*"},"gitHead":"2aff75d144f64f985814dfe219492a4c86a9881b","scripts":{"test":"mocha test/","prepublish":"node tools/build.js javascript json css xml && mv build/highlight.pack.js highlight.min.js","test-browser":"mocha test/browser/"},"_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"repository":{"url":"git://github.com/highlightjs/highlight.js.git","type":"git"},"_npmVersion":"6.3.0","description":"Syntax highlighting with language autodetection.","directories":{},"_nodeVersion":"10.8.0","_hasShrinkwrap":false,"devDependencies":{"del":"^2.0.2","gear":"^0.9.4","glob":"^7.0.3","jsdom":"^9.2.1","mocha":"^2.0.1","lodash":"^4.0.0","should":"^9.0.2","bluebird":"^3.0.1","gear-lib":"^0.9.2","commander":"^2.3.0","js-beautify":"^1.5.10","tiny-worker":"^1.1.1"},"_npmOperationalInternal":{"tmp":"tmp/highlight.js_1.1.0_1534371733939_0.5594790487665287","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@observablehq/highlight.js","version":"1.1.1","keywords":["highlight","syntax"],"author":{"name":"Ivan Sagalaev","email":"maniac@softwaremaniacs.org"},"license":"BSD-3-Clause","_id":"@observablehq/highlight.js@1.1.1","maintainers":[{"name":"jashkenas","email":"jashkenas@gmail.com"},{"name":"mbostock","email":"mike@ocks.org"},{"name":"tmcw","email":"tom@macwright.org"}],"contributors":[],"homepage":"https://highlightjs.org/","bugs":{"url":"https://github.com/highlightjs/highlight.js/issues"},"dist":{"shasum":"ad3f9bf57d8fd53703208549eaf7de993d6e2e14","tarball":"https://registry.npmjs.org/@observablehq/highlight.js/-/highlight.js-1.1.1.tgz","fileCount":6,"integrity":"sha512-E3edh/R5bN9byOnOmnRvAJfRQMlcOJtbXGTft6zhKLgQ7ZGC47eRhd/Lin5ItHh+7YWbNsKJPQAqfJeA9fKKGA==","signatures":[{"sig":"MEUCIQCd3elAMJcrdgDMl+jiln18WdPI69WobJoZVR+bWZjlvAIgd0gxsPp6DDLnaPxigfaogB+BBlYLvN59p+RF6wXrLDE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":84292,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbdK//CRA9TVsSAnZWagAAdN0P/j/CkRjdu/W4L2JrT/7L\nhLiyz2uUOiriuCFZPqbzAbk3nBx8VWXT2OnHB3Y4uaCMWSFg5r4UXAAcZ+5N\nuB7Rog2/bvKLdBSZMTx+1AQUsKSg0DHNktfjw7FCba6gfc6G15w2ATLSerR+\nl1+vmRfuXdb+G1OW6/fGJ0GAVr58Zw7swlhlTyMIXM4ngsqQF3VSEmSdU1qN\nzGLfJe8f51o16FZg07tqz/xkbbHS9/XLvb1N711TQJx49IM5TIlhFqRxJ9Ip\n0hiYm8Kt7DJh1ChIxFm4Za1I5Y+p4majF7EKe5B5r4Azo6dBGcEl7kNxhUma\n4XVcTM/tdEoW3vu04C5pqfuDI5buEQnXzKTJVz1Aa6cyvuOIFFAJ4miGUunS\n8uXO4G/YCSPmkqFVbDd1x8aCR7yo5w8E8OR3tk31aG9eCoMZLDTgV2Jsxxye\nv7TpPNmewyIbWN6ClsBj8YFjbNuqZ7+rzN56qIok8laoY4f+/FFdoBua6O3K\nKFXrJ0wvhUUmRJB4ujK0SXog/YpegboZTJT8XZNMwVPTgzSG5CfPbLUwk3M5\njBxqul8gj8pcvDmCDuZ9+Kmeix7u0odmH6mjs1nzQHwz37ncNpkiwn5iHoWx\nJ040Bgf4qOmLHlH0KvnE6U6bRhgcIRJaoNoAhdpNg9oWFHj6OHZKlYRHixGk\ns/bG\r\n=wBpe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"highlight.min.js","files":["highlight.min.js"],"unpkg":"highlight.min.js","engines":{"node":"*"},"gitHead":"9f01268dfb6c1ca2344ce0759e9807deef7f69da","scripts":{"test":"mocha test/","prepublish":"node tools/build.js javascript json css xml && mv build/highlight.pack.js highlight.min.js","test-browser":"mocha test/browser/"},"_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"repository":{"url":"git://github.com/highlightjs/highlight.js.git","type":"git"},"_npmVersion":"6.3.0","description":"Syntax highlighting with language autodetection.","directories":{},"_nodeVersion":"10.8.0","_hasShrinkwrap":false,"devDependencies":{"del":"^2.0.2","gear":"^0.9.4","glob":"^7.0.3","jsdom":"^9.2.1","mocha":"^2.0.1","lodash":"^4.0.0","should":"^9.0.2","bluebird":"^3.0.1","gear-lib":"^0.9.2","commander":"^2.3.0","js-beautify":"^1.5.10","tiny-worker":"^1.1.1"},"_npmOperationalInternal":{"tmp":"tmp/highlight.js_1.1.1_1534373887170_0.19781518870757053","host":"s3://npm-registry-packages"}},"2.0.0-alpha.1":{"name":"@observablehq/highlight.js","version":"2.0.0-alpha.1","keywords":["highlight","syntax"],"author":{"name":"Ivan Sagalaev","email":"maniac@softwaremaniacs.org"},"license":"BSD-3-Clause","_id":"@observablehq/highlight.js@2.0.0-alpha.1","maintainers":[{"name":"jashkenas","email":"jashkenas@gmail.com"},{"name":"mbostock","email":"mike@ocks.org"},{"name":"tmcw","email":"tom@macwright.org"}],"contributors":[],"homepage":"https://highlightjs.org/","bugs":{"url":"https://github.com/highlightjs/highlight.js/issues"},"dist":{"shasum":"cbb75ab45f4ce5f6124aaefd19be45b8d38da30d","tarball":"https://registry.npmjs.org/@observablehq/highlight.js/-/highlight.js-2.0.0-alpha.1.tgz","fileCount":192,"integrity":"sha512-Whys2GIxdHa2XucldirNGvhTsdFUrRfk1J+UA0GvsAli5G22VU9QysXlpkXSuOG4MeXDGIyT1Ibr+G/+cEyjCA==","signatures":[{"sig":"MEYCIQC6FMwwW1RhT7H9ls1haX7XBKlXwPaVHHcygHQPiKUrKQIhANbAyjTeRP07HBfmujRfgZIob42HyCOhtV4Y6+K+z310","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1124783,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcrOB1CRA9TVsSAnZWagAAsjoP/iTWHsDrTex7pBaL6/ae\nXithPr8XOv2koGcVG4MGObffJC9d8bHbLYl+bIztvEoCogBMCcAT6koTX6Zk\n+DQfgOaJ+apsbqxKTSXkxyOX8USr3zC3WF7ykYR1+SUwtbftM2wOpklIrM3p\nMGED1aMnW1VRozcYBs+1AMujPQv7dbTw3AxmZJHR4kOvsI7mtn2CekMXBA1u\nwHhI4qnWm746mfUV3dS5PgpYOIFDbNXvLXjMBB3wp6TS70OzeAAe3bCGWRJW\n5RxJWQKBCAE/D8n/MfJVmAO6IEP8b/5m0UQJbmixnuBKzhaWiQS1NYhOmawd\n+e9YRl2COabIPrHHTOA62KZtvjOdIlTncHy26TSCtR3Zy2psYtoSR5Yv0i6n\nUeJX7KI8HyKjPQssFFDDh9XHn4w4RSBtY0dG5xqlLJYIoIb0LB9MATqZrq9V\nJkZZAXAdP+htTala5H33d14LdTJIDzxysTFHnv/fF1VOKmAXLa+A1qRzr6bk\nQcZdEEibpu3A7zXQX/FUQG+GiZ+UWl1yPM/OQDiwSMS4myLcRO7c33ff83Pa\nUt0CkNDRzAJCmqJ2dr+/vZ/23UIiudrk09paIvvwVvqXwGOUbGIpajW+IcTg\n60sKB2FyCDkRqh0CVjUbvQWhtm1X+H6uGYY5Tiq5XmAijgDSGchQWv1Wlgvm\n9JAJ\r\n=nqEH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"highlight.min.js","unpkg":"highlight.min.js","readme":"# Highlight.js\n\n[![Build Status](https://travis-ci.org/highlightjs/highlight.js.svg?branch=master)](https://travis-ci.org/highlightjs/highlight.js) [![Greenkeeper badge](https://badges.greenkeeper.io/highlightjs/highlight.js.svg)](https://greenkeeper.io/)\n\nHighlight.js is a syntax highlighter written in JavaScript. It works in\nthe browser as well as on the server. It works with pretty much any\nmarkup, doesn’t depend on any framework, and has automatic language\ndetection.\n\n## Getting Started\n\nThe bare minimum for using highlight.js on a web page is linking to the\nlibrary along with one of the styles and calling\n[`initHighlightingOnLoad`][1]:\n\n```html\n<link rel=\"stylesheet\" href=\"/path/to/styles/default.css\">\n<script src=\"/path/to/highlight.pack.js\"></script>\n<script>hljs.initHighlightingOnLoad();</script>\n```\n\nThis will find and highlight code inside of `<pre><code>` tags; it tries\nto detect the language automatically. If automatic detection doesn’t\nwork for you, you can specify the language in the `class` attribute:\n\n```html\n<pre><code class=\"html\">...</code></pre>\n```\n\nThe list of supported language classes is available in the [class\nreference][2].  Classes can also be prefixed with either `language-` or\n`lang-`.\n\nTo make arbitrary text look like code, but without highlighting, use the\n`plaintext` class:\n\n```html\n<pre><code class=\"plaintext\">...</code></pre>\n```\n\nTo disable highlighting altogether use the `nohighlight` class:\n\n```html\n<pre><code class=\"nohighlight\">...</code></pre>\n```\n\n## Custom Initialization\n\nWhen you need a bit more control over the initialization of\nhighlight.js, you can use the [`highlightBlock`][3] and [`configure`][4]\nfunctions. This allows you to control *what* to highlight and *when*.\n\nHere’s an equivalent way to calling [`initHighlightingOnLoad`][1] using\nvanilla JS:\n\n```js\ndocument.addEventListener('DOMContentLoaded', (event) => {\n  document.querySelectorAll('pre code').forEach((block) => {\n    hljs.highlightBlock(block);\n  });\n});\n```\n\nYou can use any tags instead of `<pre><code>` to mark up your code. If\nyou don't use a container that preserves line breaks you will need to\nconfigure highlight.js to use the `<br>` tag:\n\n```js\nhljs.configure({useBR: true});\n\ndocument.querySelectorAll('div.code').forEach((block) => {\n  hljs.highlightBlock(block);\n});\n```\n\nFor other options refer to the documentation for [`configure`][4].\n\n\n## Web Workers\n\nYou can run highlighting inside a web worker to avoid freezing the browser\nwindow while dealing with very big chunks of code.\n\nIn your main script:\n\n```js\naddEventListener('load', () => {\n  const code = document.querySelector('#code');\n  const worker = new Worker('worker.js');\n  worker.onmessage = (event) => { code.innerHTML = event.data; }\n  worker.postMessage(code.textContent);\n});\n```\n\nIn worker.js:\n\n```js\nonmessage = (event) => {\n  importScripts('<path>/highlight.pack.js');\n  const result = self.hljs.highlightAuto(event.data);\n  postMessage(result.value);\n};\n```\n\n\n## Getting the Library\n\nYou can get highlight.js as a hosted, or custom-build, browser script or\nas a server module. Right out of the box the browser script supports\nboth AMD and CommonJS, so if you wish you can use RequireJS or\nBrowserify without having to build from source. The server module also\nworks perfectly fine with Browserify, but there is the option to use a\nbuild specific to browsers rather than something meant for a server.\nHead over to the [download page][5] for all the options.\n\n**Don't link to GitHub directly.** The library is not supposed to work straight\nfrom the source, it requires building. If none of the pre-packaged options\nwork for you refer to the [building documentation][6].\n\n**The CDN-hosted package doesn't have all the languages.** Otherwise it'd be\ntoo big. If you don't see the language you need in the [\"Common\" section][5],\nit can be added manually:\n\n```html\n<script\n charset=\"UTF-8\"\n src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/go.min.js\"></script>\n```\n\n**On Almond.** You need to use the optimizer to give the module a name. For\nexample:\n\n```bash\nr.js -o name=hljs paths.hljs=/path/to/highlight out=highlight.js\n```\n\n\n### CommonJS\n\nYou can import Highlight.js as a CommonJS-module:\n\n```bash\nnpm install highlight.js --save\n```\n\nIn your application:\n\n```js\nimport hljs from 'highlight.js';\n```\n\nThe default import imports all languages! Therefore it is likely to be more efficient to import only the library and the languages you need:\n\n```js\nimport hljs from 'highlight.js/lib/highlight';\nimport javascript from 'highlight.js/lib/languages/javascript';\nhljs.registerLanguage('javascript', javascript);\n```\n\nTo set the syntax highlighting style, if your build tool processes CSS from your JavaScript entry point, you can import the stylesheet directly into your CommonJS-module:\n\n```js\nimport hljs from 'highlight.js/lib/highlight';\nimport 'highlight.js/styles/github.css';\n```\n\n## License\n\nHighlight.js is released under the BSD License. See [LICENSE][7] file\nfor details.\n\n## Links\n\nThe official site for the library is at <https://highlightjs.org/>.\n\nFurther in-depth documentation for the API and other topics is at\n<http://highlightjs.readthedocs.io/>.\n\nAuthors and contributors are listed in the [AUTHORS.en.txt][8] file.\n\n[1]: http://highlightjs.readthedocs.io/en/latest/api.html#inithighlightingonload\n[2]: http://highlightjs.readthedocs.io/en/latest/css-classes-reference.html\n[3]: http://highlightjs.readthedocs.io/en/latest/api.html#highlightblock-block\n[4]: http://highlightjs.readthedocs.io/en/latest/api.html#configure-options\n[5]: https://highlightjs.org/download/\n[6]: http://highlightjs.readthedocs.io/en/latest/building-testing.html\n[7]: https://github.com/highlightjs/highlight.js/blob/master/LICENSE\n[8]: https://github.com/highlightjs/highlight.js/blob/master/AUTHORS.en.txt\n","engines":{"node":"*"},"gitHead":"8f9ecb6817176aa04574de3122e1ae6284f4d997","scripts":{"test":"mocha --globals document test","mocha":"mocha","prepublish":"node tools/build.js javascript json css xml && mv build/highlight.pack.js highlight.min.js && node tools/async-languages","test-browser":"mocha --globals document test/browser"},"_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"repository":{"url":"git://github.com/highlightjs/highlight.js.git","type":"git"},"_npmVersion":"6.9.0","description":"Syntax highlighting with language autodetection.","directories":{},"_nodeVersion":"10.14.1","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"del":"^4.0.0","gear":"github:highlightjs/gear","glob":"^7.1.3","jsdom":"^14.0.0","mocha":"^6.0.2","lodash":"^4.17.11","should":"^13.2.3","bluebird":"^3.5.3","gear-lib":"github:highlightjs/gear-lib","commander":"^2.19.0","js-beautify":"^1.8.9","tiny-worker":"^2.1.2"},"_npmOperationalInternal":{"tmp":"tmp/highlight.js_2.0.0-alpha.1_1554833524899_0.8009582664321924","host":"s3://npm-registry-packages"}},"2.0.0-alpha.2":{"name":"@observablehq/highlight.js","version":"2.0.0-alpha.2","keywords":["highlight","syntax"],"author":{"name":"Ivan Sagalaev","email":"maniac@softwaremaniacs.org"},"license":"BSD-3-Clause","_id":"@observablehq/highlight.js@2.0.0-alpha.2","maintainers":[{"name":"jashkenas","email":"jashkenas@gmail.com"},{"name":"mbostock","email":"mike@ocks.org"},{"name":"tmcw","email":"tom@macwright.org"}],"contributors":[],"homepage":"https://highlightjs.org/","bugs":{"url":"https://github.com/highlightjs/highlight.js/issues"},"dist":{"shasum":"6921a17557defa58b46d8e4b25ae8004b36bfeeb","tarball":"https://registry.npmjs.org/@observablehq/highlight.js/-/highlight.js-2.0.0-alpha.2.tgz","fileCount":192,"integrity":"sha512-mx6xH0djK+UpO6Cf+cS74e67T/8p9fi8OyY2neRnz9wlgs1fB4i3nD7DnmRqIXHBklPqIBGIW5+BCr3/XX7ilg==","signatures":[{"sig":"MEUCIQDrSrwWQVkeOKIVN8z2SP5huJmM8rZzG7h32PaBbkZLAgIgG4XPG2gTFB92XJBNyOuxYquXKz7r56Sw+XbAmvPKU/w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1124780,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcsQPQCRA9TVsSAnZWagAAnz4P/3oejXxQ4YaUVGQ8IK3U\nPKYthctdpNXIvBByV22JSCf0sEQ0yWMqhJ6dp5eH5DQhYrMfCAelfCbufKO4\ntJHA7SENcSsi3K/iQKoRSnWOZFPV/7EySXHiGnwPuvFz+VPDGwOhMQ3QqWTj\nyyN6+CyXzo9NaypP8AW92Bb9NYTD1vtIcxn2IYgCuxcJRusDltzB76+ZMKug\nCl+XQKvr+G2fiI7x/j+9EbWxZA5kaY9lDwZ8BS2MWO7vpZNtCVy6AUqhA14o\naerMMziSBkvoUB51c6BUJpnhtv59oRd2ReegP1qvWDDk0QU50MCjbcbx1IS7\nc8zNg4xsQCe4wJGRtewZM/gFJcjkind3bRqYOIdng0eDlUX+jLQ2iePhwNPB\ncIn2Nywfm+BPXnSYFzhgEQXjFxE/aGX7WK83JE1cTCCFConNQXOWyX0WNzbC\nTljrmywrGHzjKezjHdhpEK2HJeMetisSS0q+YyFljQ6Ioo/u3FzCUli/EW7f\nSIsiMkHRmsCAgl2P9cKnipS1XRzQCg7TiM0hDp3u0rOWtD9Ad3D+dHgNkWWA\nN6h5PoFlq+02+BrtTFAiHQ/ldgaL9pamG7IIf7wwyIODGh4HWdEQxMG5KWqe\n0OWxDiZ82iRiN3wGoh8R/s1sz3eV8Lgsq6gz27WSc8olWml8Jmrtpm1WPbc3\nvxBG\r\n=ZdOz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"highlight.min.js","unpkg":"highlight.min.js","readme":"# Highlight.js\n\n[![Build Status](https://travis-ci.org/highlightjs/highlight.js.svg?branch=master)](https://travis-ci.org/highlightjs/highlight.js) [![Greenkeeper badge](https://badges.greenkeeper.io/highlightjs/highlight.js.svg)](https://greenkeeper.io/)\n\nHighlight.js is a syntax highlighter written in JavaScript. It works in\nthe browser as well as on the server. It works with pretty much any\nmarkup, doesn’t depend on any framework, and has automatic language\ndetection.\n\n## Getting Started\n\nThe bare minimum for using highlight.js on a web page is linking to the\nlibrary along with one of the styles and calling\n[`initHighlightingOnLoad`][1]:\n\n```html\n<link rel=\"stylesheet\" href=\"/path/to/styles/default.css\">\n<script src=\"/path/to/highlight.pack.js\"></script>\n<script>hljs.initHighlightingOnLoad();</script>\n```\n\nThis will find and highlight code inside of `<pre><code>` tags; it tries\nto detect the language automatically. If automatic detection doesn’t\nwork for you, you can specify the language in the `class` attribute:\n\n```html\n<pre><code class=\"html\">...</code></pre>\n```\n\nThe list of supported language classes is available in the [class\nreference][2].  Classes can also be prefixed with either `language-` or\n`lang-`.\n\nTo make arbitrary text look like code, but without highlighting, use the\n`plaintext` class:\n\n```html\n<pre><code class=\"plaintext\">...</code></pre>\n```\n\nTo disable highlighting altogether use the `nohighlight` class:\n\n```html\n<pre><code class=\"nohighlight\">...</code></pre>\n```\n\n## Custom Initialization\n\nWhen you need a bit more control over the initialization of\nhighlight.js, you can use the [`highlightBlock`][3] and [`configure`][4]\nfunctions. This allows you to control *what* to highlight and *when*.\n\nHere’s an equivalent way to calling [`initHighlightingOnLoad`][1] using\nvanilla JS:\n\n```js\ndocument.addEventListener('DOMContentLoaded', (event) => {\n  document.querySelectorAll('pre code').forEach((block) => {\n    hljs.highlightBlock(block);\n  });\n});\n```\n\nYou can use any tags instead of `<pre><code>` to mark up your code. If\nyou don't use a container that preserves line breaks you will need to\nconfigure highlight.js to use the `<br>` tag:\n\n```js\nhljs.configure({useBR: true});\n\ndocument.querySelectorAll('div.code').forEach((block) => {\n  hljs.highlightBlock(block);\n});\n```\n\nFor other options refer to the documentation for [`configure`][4].\n\n\n## Web Workers\n\nYou can run highlighting inside a web worker to avoid freezing the browser\nwindow while dealing with very big chunks of code.\n\nIn your main script:\n\n```js\naddEventListener('load', () => {\n  const code = document.querySelector('#code');\n  const worker = new Worker('worker.js');\n  worker.onmessage = (event) => { code.innerHTML = event.data; }\n  worker.postMessage(code.textContent);\n});\n```\n\nIn worker.js:\n\n```js\nonmessage = (event) => {\n  importScripts('<path>/highlight.pack.js');\n  const result = self.hljs.highlightAuto(event.data);\n  postMessage(result.value);\n};\n```\n\n\n## Getting the Library\n\nYou can get highlight.js as a hosted, or custom-build, browser script or\nas a server module. Right out of the box the browser script supports\nboth AMD and CommonJS, so if you wish you can use RequireJS or\nBrowserify without having to build from source. The server module also\nworks perfectly fine with Browserify, but there is the option to use a\nbuild specific to browsers rather than something meant for a server.\nHead over to the [download page][5] for all the options.\n\n**Don't link to GitHub directly.** The library is not supposed to work straight\nfrom the source, it requires building. If none of the pre-packaged options\nwork for you refer to the [building documentation][6].\n\n**The CDN-hosted package doesn't have all the languages.** Otherwise it'd be\ntoo big. If you don't see the language you need in the [\"Common\" section][5],\nit can be added manually:\n\n```html\n<script\n charset=\"UTF-8\"\n src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/go.min.js\"></script>\n```\n\n**On Almond.** You need to use the optimizer to give the module a name. For\nexample:\n\n```bash\nr.js -o name=hljs paths.hljs=/path/to/highlight out=highlight.js\n```\n\n\n### CommonJS\n\nYou can import Highlight.js as a CommonJS-module:\n\n```bash\nnpm install highlight.js --save\n```\n\nIn your application:\n\n```js\nimport hljs from 'highlight.js';\n```\n\nThe default import imports all languages! Therefore it is likely to be more efficient to import only the library and the languages you need:\n\n```js\nimport hljs from 'highlight.js/lib/highlight';\nimport javascript from 'highlight.js/lib/languages/javascript';\nhljs.registerLanguage('javascript', javascript);\n```\n\nTo set the syntax highlighting style, if your build tool processes CSS from your JavaScript entry point, you can import the stylesheet directly into your CommonJS-module:\n\n```js\nimport hljs from 'highlight.js/lib/highlight';\nimport 'highlight.js/styles/github.css';\n```\n\n## License\n\nHighlight.js is released under the BSD License. See [LICENSE][7] file\nfor details.\n\n## Links\n\nThe official site for the library is at <https://highlightjs.org/>.\n\nFurther in-depth documentation for the API and other topics is at\n<http://highlightjs.readthedocs.io/>.\n\nAuthors and contributors are listed in the [AUTHORS.en.txt][8] file.\n\n[1]: http://highlightjs.readthedocs.io/en/latest/api.html#inithighlightingonload\n[2]: http://highlightjs.readthedocs.io/en/latest/css-classes-reference.html\n[3]: http://highlightjs.readthedocs.io/en/latest/api.html#highlightblock-block\n[4]: http://highlightjs.readthedocs.io/en/latest/api.html#configure-options\n[5]: https://highlightjs.org/download/\n[6]: http://highlightjs.readthedocs.io/en/latest/building-testing.html\n[7]: https://github.com/highlightjs/highlight.js/blob/master/LICENSE\n[8]: https://github.com/highlightjs/highlight.js/blob/master/AUTHORS.en.txt\n","engines":{"node":"*"},"gitHead":"ba240120a3fe35e56a3507c71b60f17c79b3de0b","scripts":{"test":"mocha --globals document test","mocha":"mocha","prepublish":"node tools/build.js javascript json css xml && mv build/highlight.pack.js highlight.min.js && node tools/async-languages","test-browser":"mocha --globals document test/browser"},"_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"repository":{"url":"git://github.com/highlightjs/highlight.js.git","type":"git"},"_npmVersion":"6.9.0","description":"Syntax highlighting with language autodetection.","directories":{},"_nodeVersion":"10.14.1","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"del":"^4.0.0","gear":"github:highlightjs/gear","glob":"^7.1.3","jsdom":"^14.0.0","mocha":"^6.0.2","lodash":"^4.17.11","should":"^13.2.3","bluebird":"^3.5.3","gear-lib":"github:highlightjs/gear-lib","commander":"^2.19.0","js-beautify":"^1.8.9","tiny-worker":"^2.1.2"},"_npmOperationalInternal":{"tmp":"tmp/highlight.js_2.0.0-alpha.2_1555104719444_0.6621225632063503","host":"s3://npm-registry-packages"}},"2.0.0-alpha.3":{"name":"@observablehq/highlight.js","version":"2.0.0-alpha.3","keywords":["highlight","syntax"],"author":{"name":"Ivan Sagalaev","email":"maniac@softwaremaniacs.org"},"license":"BSD-3-Clause","_id":"@observablehq/highlight.js@2.0.0-alpha.3","maintainers":[{"name":"jashkenas","email":"jashkenas@gmail.com"},{"name":"mbostock","email":"mike@ocks.org"},{"name":"tmcw","email":"tom@macwright.org"}],"contributors":[],"homepage":"https://highlightjs.org/","bugs":{"url":"https://github.com/highlightjs/highlight.js/issues"},"dist":{"shasum":"9fe4aa26f5f8c63cb1a54f858027808204d544ee","tarball":"https://registry.npmjs.org/@observablehq/highlight.js/-/highlight.js-2.0.0-alpha.3.tgz","fileCount":192,"integrity":"sha512-zaZPAf5EnHMQ8TqFg57JzLgHk6gMdjwn1O7k0l1qXyYfvLNNeQVqGFcxNo9aZkamjFGKWbQvAXv7eMGXfpSxhA==","signatures":[{"sig":"MEQCIBd/ExUNE0WN1NJqWasvrEybtObPznpYSGkYZi/FHXd5AiBi1sWaSkaZvZqAWRnn2ZQn4wYJZSvgvKD3l1nB7DUe5w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1135157,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcsQxvCRA9TVsSAnZWagAArcQQAIf/mwW4fr9L6g1/pZHT\n3O9XlDAKwWTrNSwjkW7aHSJe8et/fHSMBQeS3+wh6eWDG4mzYTxr3N+Sb4yl\n0JyJiFjYkmNFvH+MEbs+UtVZ3a1Q6hjwNMzYGPGBPeP7QNec6yxh/sk5UDOK\nVHmcfOZvc5BDqPkDfmdlJJ8e0ny2Un3DSTs3Zeq2ArqFIP1x2JbI7o/XIX+t\nvRRNH2SvbghkjtSu8WL+IYIYwY5S5a+0HV+WwLaWXzI6bVUV2RASO7WXpEpF\nNMYxSQPradTWGZo/M6QSX2ygnT0Rr+VTF27gV9rpYIT0pFJahaX2kngJga6F\nBAQsQPFw8Lvfhl2sSdoUiP7Ndln5u5JTQiuqlwpS7ASuKt90npRrCIYmVk6E\nqY7q3qtc2zT8BNbM/nCgLR0FI448frLE8LRQ53SK3tzv/lQCk54OUf3TCzy4\nEsAiEDhnnw+2vMEj9Jed2TNTFyLBTMqagc7WXT1xyfpUTx4lRqSN59dRx5x1\n3WebFBhSxaJu7ZlmE4dfp+vnt8++QoXwZQ+PQIWYKYUcD1mtlyh3DgZKp/MW\nWPH2JyEYs/9cGNtvDcgaTRxtU33vLMB3fVst+gS3I1JfAGajXdFU7BHXBmD7\n1/z+GoDGKnKmnwx6aIlUMN3GZnbNIyREetjg+JXtiJN565LTz2nJujg5wrhq\nkqNF\r\n=1+wW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"highlight.min.js","unpkg":"highlight.min.js","readme":"# Highlight.js\n\n[![Build Status](https://travis-ci.org/highlightjs/highlight.js.svg?branch=master)](https://travis-ci.org/highlightjs/highlight.js) [![Greenkeeper badge](https://badges.greenkeeper.io/highlightjs/highlight.js.svg)](https://greenkeeper.io/)\n\nHighlight.js is a syntax highlighter written in JavaScript. It works in\nthe browser as well as on the server. It works with pretty much any\nmarkup, doesn’t depend on any framework, and has automatic language\ndetection.\n\n## Getting Started\n\nThe bare minimum for using highlight.js on a web page is linking to the\nlibrary along with one of the styles and calling\n[`initHighlightingOnLoad`][1]:\n\n```html\n<link rel=\"stylesheet\" href=\"/path/to/styles/default.css\">\n<script src=\"/path/to/highlight.pack.js\"></script>\n<script>hljs.initHighlightingOnLoad();</script>\n```\n\nThis will find and highlight code inside of `<pre><code>` tags; it tries\nto detect the language automatically. If automatic detection doesn’t\nwork for you, you can specify the language in the `class` attribute:\n\n```html\n<pre><code class=\"html\">...</code></pre>\n```\n\nThe list of supported language classes is available in the [class\nreference][2].  Classes can also be prefixed with either `language-` or\n`lang-`.\n\nTo make arbitrary text look like code, but without highlighting, use the\n`plaintext` class:\n\n```html\n<pre><code class=\"plaintext\">...</code></pre>\n```\n\nTo disable highlighting altogether use the `nohighlight` class:\n\n```html\n<pre><code class=\"nohighlight\">...</code></pre>\n```\n\n## Custom Initialization\n\nWhen you need a bit more control over the initialization of\nhighlight.js, you can use the [`highlightBlock`][3] and [`configure`][4]\nfunctions. This allows you to control *what* to highlight and *when*.\n\nHere’s an equivalent way to calling [`initHighlightingOnLoad`][1] using\nvanilla JS:\n\n```js\ndocument.addEventListener('DOMContentLoaded', (event) => {\n  document.querySelectorAll('pre code').forEach((block) => {\n    hljs.highlightBlock(block);\n  });\n});\n```\n\nYou can use any tags instead of `<pre><code>` to mark up your code. If\nyou don't use a container that preserves line breaks you will need to\nconfigure highlight.js to use the `<br>` tag:\n\n```js\nhljs.configure({useBR: true});\n\ndocument.querySelectorAll('div.code').forEach((block) => {\n  hljs.highlightBlock(block);\n});\n```\n\nFor other options refer to the documentation for [`configure`][4].\n\n\n## Web Workers\n\nYou can run highlighting inside a web worker to avoid freezing the browser\nwindow while dealing with very big chunks of code.\n\nIn your main script:\n\n```js\naddEventListener('load', () => {\n  const code = document.querySelector('#code');\n  const worker = new Worker('worker.js');\n  worker.onmessage = (event) => { code.innerHTML = event.data; }\n  worker.postMessage(code.textContent);\n});\n```\n\nIn worker.js:\n\n```js\nonmessage = (event) => {\n  importScripts('<path>/highlight.pack.js');\n  const result = self.hljs.highlightAuto(event.data);\n  postMessage(result.value);\n};\n```\n\n\n## Getting the Library\n\nYou can get highlight.js as a hosted, or custom-build, browser script or\nas a server module. Right out of the box the browser script supports\nboth AMD and CommonJS, so if you wish you can use RequireJS or\nBrowserify without having to build from source. The server module also\nworks perfectly fine with Browserify, but there is the option to use a\nbuild specific to browsers rather than something meant for a server.\nHead over to the [download page][5] for all the options.\n\n**Don't link to GitHub directly.** The library is not supposed to work straight\nfrom the source, it requires building. If none of the pre-packaged options\nwork for you refer to the [building documentation][6].\n\n**The CDN-hosted package doesn't have all the languages.** Otherwise it'd be\ntoo big. If you don't see the language you need in the [\"Common\" section][5],\nit can be added manually:\n\n```html\n<script\n charset=\"UTF-8\"\n src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/go.min.js\"></script>\n```\n\n**On Almond.** You need to use the optimizer to give the module a name. For\nexample:\n\n```bash\nr.js -o name=hljs paths.hljs=/path/to/highlight out=highlight.js\n```\n\n\n### CommonJS\n\nYou can import Highlight.js as a CommonJS-module:\n\n```bash\nnpm install highlight.js --save\n```\n\nIn your application:\n\n```js\nimport hljs from 'highlight.js';\n```\n\nThe default import imports all languages! Therefore it is likely to be more efficient to import only the library and the languages you need:\n\n```js\nimport hljs from 'highlight.js/lib/highlight';\nimport javascript from 'highlight.js/lib/languages/javascript';\nhljs.registerLanguage('javascript', javascript);\n```\n\nTo set the syntax highlighting style, if your build tool processes CSS from your JavaScript entry point, you can import the stylesheet directly into your CommonJS-module:\n\n```js\nimport hljs from 'highlight.js/lib/highlight';\nimport 'highlight.js/styles/github.css';\n```\n\n## License\n\nHighlight.js is released under the BSD License. See [LICENSE][7] file\nfor details.\n\n## Links\n\nThe official site for the library is at <https://highlightjs.org/>.\n\nFurther in-depth documentation for the API and other topics is at\n<http://highlightjs.readthedocs.io/>.\n\nAuthors and contributors are listed in the [AUTHORS.en.txt][8] file.\n\n[1]: http://highlightjs.readthedocs.io/en/latest/api.html#inithighlightingonload\n[2]: http://highlightjs.readthedocs.io/en/latest/css-classes-reference.html\n[3]: http://highlightjs.readthedocs.io/en/latest/api.html#highlightblock-block\n[4]: http://highlightjs.readthedocs.io/en/latest/api.html#configure-options\n[5]: https://highlightjs.org/download/\n[6]: http://highlightjs.readthedocs.io/en/latest/building-testing.html\n[7]: https://github.com/highlightjs/highlight.js/blob/master/LICENSE\n[8]: https://github.com/highlightjs/highlight.js/blob/master/AUTHORS.en.txt\n","engines":{"node":"*"},"gitHead":"e41ae5e2fd078257b895cbd0f0b632759a5bbec6","scripts":{"test":"mocha --globals document test","mocha":"mocha","prepublish":"node tools/build.js javascript json css xml && mv build/highlight.pack.js highlight.min.js && node tools/async-languages","test-browser":"mocha --globals document test/browser"},"_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"repository":{"url":"git://github.com/highlightjs/highlight.js.git","type":"git"},"_npmVersion":"6.9.0","description":"Syntax highlighting with language autodetection.","directories":{},"_nodeVersion":"10.14.1","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"del":"^4.0.0","gear":"github:highlightjs/gear","glob":"^7.1.3","jsdom":"^14.0.0","mocha":"^6.0.2","lodash":"^4.17.11","should":"^13.2.3","bluebird":"^3.5.3","gear-lib":"github:highlightjs/gear-lib","commander":"^2.19.0","js-beautify":"^1.8.9","tiny-worker":"^2.1.2"},"_npmOperationalInternal":{"tmp":"tmp/highlight.js_2.0.0-alpha.3_1555106926458_0.9118554733405582","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@observablehq/highlight.js","version":"2.0.0","keywords":["highlight","syntax"],"author":{"name":"Ivan Sagalaev","email":"maniac@softwaremaniacs.org"},"license":"BSD-3-Clause","_id":"@observablehq/highlight.js@2.0.0","maintainers":[{"name":"jashkenas","email":"jashkenas@gmail.com"},{"name":"mbostock","email":"mike@ocks.org"},{"name":"tmcw","email":"tom@macwright.org"}],"contributors":[],"homepage":"https://highlightjs.org/","bugs":{"url":"https://github.com/highlightjs/highlight.js/issues"},"dist":{"shasum":"acc69c7cf8967a16218835514ecabcdd09bf04b4","tarball":"https://registry.npmjs.org/@observablehq/highlight.js/-/highlight.js-2.0.0.tgz","fileCount":192,"integrity":"sha512-9fB8N2n8phZVVtaZ/q9VBDe6Vy9aVO5lpOaMTgdS1Q7+/l3xPhfqYQ+Aa0uIbFqNWWTZ78pTFzo7uupROGAcrw==","signatures":[{"sig":"MEUCICJa+vqZLUg0DKMCyWqS6Q8lPq/xPV4qrdw3I9qzIbS/AiEAmOs5K7vON9oYbr0yrwtoyeWEyhlmtCEaY+b2M8mP6dw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1135141,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2T+fCRA9TVsSAnZWagAANSAQAKEJGo1FtsAj/pxLPa42\nDdBE95HEC1U1WshLKyBGu+ucq2/XZBd5GCV8n0K56F6TeBDsu2fZD/S9544m\nAnPUqvTa6OWTqQ755ooeliMwlyLBCTUNTHYlxOy6WlmjPu2A1MylrAy8HaAj\n8l6V+EzHyh1OI4gA/yhzTokRZRyKC/KaNPOXXICNywEEjpkoXvrRNCWcQWmH\nXPoJ14rJzgOlDy0bpH8jXnBXy6twHAa5tSPYUJs9QvOZXD+fmpla6ORcsRj+\nNnZdI3xmb6065GdsClpZ4jym3xUxiluSG7DYjDjwOYFpaH8lNgOJwwqsR6ve\nfMgwg5uJapghon+9XJfl2xo7GGCUzyNSAZAb6k73xFUNNqqW2siPOBQelEDo\nmtEe2U20P7RR4Gs2Lp+83ewD49+dMwI+Ymvyh2GJQo2orXlkRBsFF79Dk/Gd\nUhUug6KPhTwT6zR0gPcCNH/HwB/jYHkCBkFtDOro/+CNsmv/W6MwhcQLERvB\nMHi8iNCvVGnSQoCUZHsBpQ+DVk05rqaz5yCyt7IhtkHb4yZmwTK5pG2n02Mv\nSiT/K8X3PX0B2yjgx6yN4NJ0g+qNG4X7Wzk3WNVjaqG++ZfX5SG1kBz9MM7d\n+wWtvLGgKIAm33CgeR5Jp5D+2JRbGv/H+JZPMoj5gQshrfZ4w5/giVW1sA4U\nBkk3\r\n=dujs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"highlight.min.js","unpkg":"highlight.min.js","engines":{"node":"*"},"gitHead":"4b4a11032c2d9877396a480c106aa6013adfcb2a","scripts":{"test":"mocha --globals document test","mocha":"mocha","prepublish":"node tools/build.js javascript json css xml && mv build/highlight.pack.js highlight.min.js && node tools/async-languages","test-browser":"mocha --globals document test/browser"},"_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"repository":{"url":"git://github.com/highlightjs/highlight.js.git","type":"git"},"_npmVersion":"6.9.0","description":"Syntax highlighting with language autodetection.","directories":{},"_nodeVersion":"10.14.1","_hasShrinkwrap":false,"devDependencies":{"del":"^4.0.0","gear":"github:highlightjs/gear","glob":"^7.1.3","jsdom":"^14.0.0","mocha":"^6.0.2","lodash":"^4.17.11","should":"^13.2.3","bluebird":"^3.5.3","gear-lib":"github:highlightjs/gear-lib","commander":"^2.19.0","js-beautify":"^1.8.9","tiny-worker":"^2.1.2"},"_npmOperationalInternal":{"tmp":"tmp/highlight.js_2.0.0_1555110292915_0.028913677410774552","host":"s3://npm-registry-packages"}}},"time":{"created":"2018-01-08T22:51:59.922Z","modified":"2026-04-06T17:49:35.547Z","1.0.0":"2018-01-08T22:51:59.922Z","1.1.0-rc1":"2018-08-15T22:15:14.364Z","1.1.0-rc2":"2018-08-15T22:18:06.200Z","1.1.0-rc3":"2018-08-15T22:19:43.721Z","1.1.0":"2018-08-15T22:22:14.030Z","1.1.1":"2018-08-15T22:58:07.258Z","2.0.0-alpha.1":"2019-04-09T18:12:05.115Z","2.0.0-alpha.2":"2019-04-12T21:31:59.755Z","2.0.0-alpha.3":"2019-04-12T22:08:46.626Z","2.0.0":"2019-04-12T23:04:53.566Z"},"bugs":{"url":"https://github.com/highlightjs/highlight.js/issues"},"author":{"name":"Ivan Sagalaev","email":"maniac@softwaremaniacs.org"},"license":"BSD-3-Clause","homepage":"https://highlightjs.org/","keywords":["highlight","syntax"],"repository":{"url":"git://github.com/highlightjs/highlight.js.git","type":"git"},"description":"Syntax highlighting with language autodetection.","contributors":[],"maintainers":[{"email":"mike@ocks.org","name":"mbostock"},{"email":"visnup@gmail.com","name":"visnup"},{"email":"fil@rezo.net","name":"recifs"},{"email":"tophtucker@gmail.com","name":"tophtucker"}],"readme":"# Highlight.js\n\n[![Build Status](https://travis-ci.org/highlightjs/highlight.js.svg?branch=master)](https://travis-ci.org/highlightjs/highlight.js) [![Greenkeeper badge](https://badges.greenkeeper.io/highlightjs/highlight.js.svg)](https://greenkeeper.io/)\n\nHighlight.js is a syntax highlighter written in JavaScript. It works in\nthe browser as well as on the server. It works with pretty much any\nmarkup, doesn’t depend on any framework, and has automatic language\ndetection.\n\n## Getting Started\n\nThe bare minimum for using highlight.js on a web page is linking to the\nlibrary along with one of the styles and calling\n[`initHighlightingOnLoad`][1]:\n\n```html\n<link rel=\"stylesheet\" href=\"/path/to/styles/default.css\">\n<script src=\"/path/to/highlight.pack.js\"></script>\n<script>hljs.initHighlightingOnLoad();</script>\n```\n\nThis will find and highlight code inside of `<pre><code>` tags; it tries\nto detect the language automatically. If automatic detection doesn’t\nwork for you, you can specify the language in the `class` attribute:\n\n```html\n<pre><code class=\"html\">...</code></pre>\n```\n\nThe list of supported language classes is available in the [class\nreference][2].  Classes can also be prefixed with either `language-` or\n`lang-`.\n\nTo make arbitrary text look like code, but without highlighting, use the\n`plaintext` class:\n\n```html\n<pre><code class=\"plaintext\">...</code></pre>\n```\n\nTo disable highlighting altogether use the `nohighlight` class:\n\n```html\n<pre><code class=\"nohighlight\">...</code></pre>\n```\n\n## Custom Initialization\n\nWhen you need a bit more control over the initialization of\nhighlight.js, you can use the [`highlightBlock`][3] and [`configure`][4]\nfunctions. This allows you to control *what* to highlight and *when*.\n\nHere’s an equivalent way to calling [`initHighlightingOnLoad`][1] using\nvanilla JS:\n\n```js\ndocument.addEventListener('DOMContentLoaded', (event) => {\n  document.querySelectorAll('pre code').forEach((block) => {\n    hljs.highlightBlock(block);\n  });\n});\n```\n\nYou can use any tags instead of `<pre><code>` to mark up your code. If\nyou don't use a container that preserves line breaks you will need to\nconfigure highlight.js to use the `<br>` tag:\n\n```js\nhljs.configure({useBR: true});\n\ndocument.querySelectorAll('div.code').forEach((block) => {\n  hljs.highlightBlock(block);\n});\n```\n\nFor other options refer to the documentation for [`configure`][4].\n\n\n## Web Workers\n\nYou can run highlighting inside a web worker to avoid freezing the browser\nwindow while dealing with very big chunks of code.\n\nIn your main script:\n\n```js\naddEventListener('load', () => {\n  const code = document.querySelector('#code');\n  const worker = new Worker('worker.js');\n  worker.onmessage = (event) => { code.innerHTML = event.data; }\n  worker.postMessage(code.textContent);\n});\n```\n\nIn worker.js:\n\n```js\nonmessage = (event) => {\n  importScripts('<path>/highlight.pack.js');\n  const result = self.hljs.highlightAuto(event.data);\n  postMessage(result.value);\n};\n```\n\n\n## Getting the Library\n\nYou can get highlight.js as a hosted, or custom-build, browser script or\nas a server module. Right out of the box the browser script supports\nboth AMD and CommonJS, so if you wish you can use RequireJS or\nBrowserify without having to build from source. The server module also\nworks perfectly fine with Browserify, but there is the option to use a\nbuild specific to browsers rather than something meant for a server.\nHead over to the [download page][5] for all the options.\n\n**Don't link to GitHub directly.** The library is not supposed to work straight\nfrom the source, it requires building. If none of the pre-packaged options\nwork for you refer to the [building documentation][6].\n\n**The CDN-hosted package doesn't have all the languages.** Otherwise it'd be\ntoo big. If you don't see the language you need in the [\"Common\" section][5],\nit can be added manually:\n\n```html\n<script\n charset=\"UTF-8\"\n src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/go.min.js\"></script>\n```\n\n**On Almond.** You need to use the optimizer to give the module a name. For\nexample:\n\n```bash\nr.js -o name=hljs paths.hljs=/path/to/highlight out=highlight.js\n```\n\n\n### CommonJS\n\nYou can import Highlight.js as a CommonJS-module:\n\n```bash\nnpm install highlight.js --save\n```\n\nIn your application:\n\n```js\nimport hljs from 'highlight.js';\n```\n\nThe default import imports all languages! Therefore it is likely to be more efficient to import only the library and the languages you need:\n\n```js\nimport hljs from 'highlight.js/lib/highlight';\nimport javascript from 'highlight.js/lib/languages/javascript';\nhljs.registerLanguage('javascript', javascript);\n```\n\nTo set the syntax highlighting style, if your build tool processes CSS from your JavaScript entry point, you can import the stylesheet directly into your CommonJS-module:\n\n```js\nimport hljs from 'highlight.js/lib/highlight';\nimport 'highlight.js/styles/github.css';\n```\n\n## License\n\nHighlight.js is released under the BSD License. See [LICENSE][7] file\nfor details.\n\n## Links\n\nThe official site for the library is at <https://highlightjs.org/>.\n\nFurther in-depth documentation for the API and other topics is at\n<http://highlightjs.readthedocs.io/>.\n\nAuthors and contributors are listed in the [AUTHORS.en.txt][8] file.\n\n[1]: http://highlightjs.readthedocs.io/en/latest/api.html#inithighlightingonload\n[2]: http://highlightjs.readthedocs.io/en/latest/css-classes-reference.html\n[3]: http://highlightjs.readthedocs.io/en/latest/api.html#highlightblock-block\n[4]: http://highlightjs.readthedocs.io/en/latest/api.html#configure-options\n[5]: https://highlightjs.org/download/\n[6]: http://highlightjs.readthedocs.io/en/latest/building-testing.html\n[7]: https://github.com/highlightjs/highlight.js/blob/master/LICENSE\n[8]: https://github.com/highlightjs/highlight.js/blob/master/AUTHORS.en.txt\n","readmeFilename":"README.md"}