{"_id":"@calumk/editorjs-codecup","_rev":"10-8f2052271257143c33562212cf4cf7d2","name":"@calumk/editorjs-codecup","dist-tags":{"latest":"1.3.0"},"versions":{"1.0.1":{"name":"@calumk/editorjs-codecup","version":"1.0.1","author":{"name":"Calum Knott"},"license":"MIT","_id":"@calumk/editorjs-codecup@1.0.1","maintainers":[{"name":"calumk","email":"calum@calumk.com"}],"homepage":"https://github.com/calumk/editorjs-codecup#readme","bugs":{"url":"https://github.com/calumk/editorjs-codecup/issues"},"dist":{"shasum":"1106164d03e886cd4979ad0f738ca770022223bf","tarball":"https://registry.npmjs.org/@calumk/editorjs-codecup/-/editorjs-codecup-1.0.1.tgz","fileCount":7,"integrity":"sha512-ax7Um8Qb1PRIhlevMMK2cmnAinLEZI3yZoEltnaOiOXsoFtu5u10y1viICwi+4fviaKcVMfBRnXoCTP3Yepz2w==","signatures":[{"sig":"MEYCIQCNxErPyivjhY4TB1D2Xow3+BxONrFkQjuT1jCwdyqS2QIhANg6fUnYwkPTLtVxT7RSNeiMplAey6SQqZluFopuC+2J","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":362885},"main":"./dist/editorjs-codecup.bundle.js","gitHead":"c623729f5ec54e44071f5a667bf99ffbb0002a3b","scripts":{"build":"webpack --mode production"},"_npmUser":{"name":"calumk","email":"calum@calumk.com"},"repository":{"url":"git+https://github.com/calumk/editorjs-codecup.git","type":"git"},"_npmVersion":"6.14.12","description":"Codecup, for EditorJS","directories":{},"_nodeVersion":"10.24.1","dependencies":{"nice-select2":"^2.0.0","@calumk/codecup":"^1.6.4","prismjs-components-importer":"^0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"webpack":"^5.89.0","css-loader":"^6.7.1","webpack-cli":"^4.10.0","style-loader":"^3.3.1","svg-inline-loader":"^0.8.2"},"_npmOperationalInternal":{"tmp":"tmp/editorjs-codecup_1.0.1_1704998648547_0.8741660994054434","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@calumk/editorjs-codecup","version":"1.0.2","author":{"name":"Calum Knott"},"license":"MIT","_id":"@calumk/editorjs-codecup@1.0.2","maintainers":[{"name":"calumk","email":"calum@calumk.com"}],"homepage":"https://github.com/calumk/editorjs-codecup#readme","bugs":{"url":"https://github.com/calumk/editorjs-codecup/issues"},"dist":{"shasum":"0fb4f1d2256e85606c7f1df1bb462af81fef6eaa","tarball":"https://registry.npmjs.org/@calumk/editorjs-codecup/-/editorjs-codecup-1.0.2.tgz","fileCount":7,"integrity":"sha512-nVJBr7WhIClqXbeNdErXgU1EPXa4G43QMBwtwFDeXXBBVWpQZpY4a08qw/1GSFLsWOvrY7TO2CmkMuf21YMSdQ==","signatures":[{"sig":"MEQCICfLlcFUd8uDftShvScKcNRJq/aBOXTtxrO0nZH+KKt3AiBvimhYnnBeKw0SdN2kgOPjuDdu9H0KL5gTLrYPlahpkg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":362885},"main":"./dist/editorjs-codeCup.bundle.js","gitHead":"5f3e903b2a8598e1fb8735092f9b68047fc51c89","scripts":{"build":"webpack --mode production"},"_npmUser":{"name":"calumk","email":"calum@calumk.com"},"repository":{"url":"git+https://github.com/calumk/editorjs-codecup.git","type":"git"},"_npmVersion":"6.14.12","description":"Codecup, for EditorJS","directories":{},"_nodeVersion":"10.24.1","dependencies":{"nice-select2":"^2.0.0","@calumk/codecup":"^1.6.4","prismjs-components-importer":"^0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"webpack":"^5.89.0","css-loader":"^6.7.1","webpack-cli":"^4.10.0","style-loader":"^3.3.1","svg-inline-loader":"^0.8.2"},"_npmOperationalInternal":{"tmp":"tmp/editorjs-codecup_1.0.2_1705000187020_0.519924854477253","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@calumk/editorjs-codecup","version":"1.0.3","author":{"name":"Calum Knott"},"license":"MIT","_id":"@calumk/editorjs-codecup@1.0.3","maintainers":[{"name":"calumk","email":"calum@calumk.com"}],"homepage":"https://github.com/calumk/editorjs-codecup#readme","bugs":{"url":"https://github.com/calumk/editorjs-codecup/issues"},"dist":{"shasum":"51d681baee261e17ca46a4cf1ac1764cc0055bc9","tarball":"https://registry.npmjs.org/@calumk/editorjs-codecup/-/editorjs-codecup-1.0.3.tgz","fileCount":7,"integrity":"sha512-kCg7TP0NPfTh+bc9+wbUI5irZIc7jipeF0czFkyLPqtzwrZBahZ3MB+JLHpRXq0W9LCNZ3SnMSCOGLEnAXNC5w==","signatures":[{"sig":"MEUCIDEoA2GTEluIYtG02aCmDFsgU4FmIL7/Vo43Ai4QCXo1AiEAiTsVwCGo9Qkz2LilURPF8xkiBlAZdfETePZBwBf++O0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":351032},"main":"./dist/editorjs-codeCup.bundle.js","gitHead":"1ffb40abb69f181a28f4c087be9e5e517bb1b761","scripts":{"build":"webpack --mode production"},"_npmUser":{"name":"calumk","email":"calum@calumk.com"},"repository":{"url":"git+https://github.com/calumk/editorjs-codecup.git","type":"git"},"_npmVersion":"6.14.12","description":"Codecup, for EditorJS","directories":{},"_nodeVersion":"10.24.1","dependencies":{"@calumk/codecup":"^1.6.4"},"_hasShrinkwrap":false,"devDependencies":{"webpack":"^5.89.0","css-loader":"^6.7.1","webpack-cli":"^4.10.0","style-loader":"^3.3.1","svg-inline-loader":"^0.8.2"},"_npmOperationalInternal":{"tmp":"tmp/editorjs-codecup_1.0.3_1705000700416_0.6059605660265401","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@calumk/editorjs-codecup","version":"1.0.4","author":{"name":"Calum Knott"},"license":"MIT","_id":"@calumk/editorjs-codecup@1.0.4","maintainers":[{"name":"calumk","email":"calum@calumk.com"}],"homepage":"https://github.com/calumk/editorjs-codecup#readme","bugs":{"url":"https://github.com/calumk/editorjs-codecup/issues"},"dist":{"shasum":"92c8963b377a9ff707df923ae6f24663788f001c","tarball":"https://registry.npmjs.org/@calumk/editorjs-codecup/-/editorjs-codecup-1.0.4.tgz","fileCount":7,"integrity":"sha512-nHKJxdyIyUZXjvvwtxZEIfWr+653zCiS/qIVQBb6X2ffJs+RBQDLbmzHp9QnyUGK9fjtvR02tjPGUpgoIWr9jg==","signatures":[{"sig":"MEUCIFr1aCchPpJzen/ROh0pFPTsBydkbFhxiWvRBe6FdKvGAiEAx3hi+iZJyo36Pp85MAy7GxhslRoFb2yXCaHOKeq7EOM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":351032},"main":"./dist/editorjs-codeCup.bundle.js","gitHead":"6e2deb57b5b47b003ecf4f624e18e9e23f34545f","scripts":{"build":"webpack --mode production"},"_npmUser":{"name":"calumk","email":"calum@calumk.com"},"repository":{"url":"git+https://github.com/calumk/editorjs-codecup.git","type":"git"},"_npmVersion":"6.14.12","description":"Codecup, for EditorJS","directories":{},"_nodeVersion":"10.24.1","dependencies":{"@calumk/codecup":"^1.6.4"},"_hasShrinkwrap":false,"devDependencies":{"webpack":"^5.89.0","css-loader":"^6.7.1","webpack-cli":"^4.10.0","style-loader":"^3.3.1","svg-inline-loader":"^0.8.2"},"_npmOperationalInternal":{"tmp":"tmp/editorjs-codecup_1.0.4_1705131795744_0.8276077956142387","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"@calumk/editorjs-codecup","version":"1.0.5","author":{"name":"Calum Knott"},"license":"MIT","_id":"@calumk/editorjs-codecup@1.0.5","maintainers":[{"name":"calumk","email":"calum@calumk.com"}],"homepage":"https://github.com/calumk/editorjs-codecup#readme","bugs":{"url":"https://github.com/calumk/editorjs-codecup/issues"},"dist":{"shasum":"fa7805b64bd25bddb4c2e5d086b4f488aa9c8d6a","tarball":"https://registry.npmjs.org/@calumk/editorjs-codecup/-/editorjs-codecup-1.0.5.tgz","fileCount":7,"integrity":"sha512-QSfKSyN3Es+kDzBe7guFp9ccHN/+wCUbLtFU8xeix41YeqQlKZHsUlNw9iiC7aN/tZGLcA831eiOS3NXuF9S0Q==","signatures":[{"sig":"MEYCIQCVaPPui/75QHPGzbK/VRZ0l3vtx8GRsdA51MGsZSkLoQIhAPE9PhPOzh4am3qufXvTUq7itd5B0p7byuBTB1willWU","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":350831},"main":"./dist/editorjs-codeCup.bundle.js","gitHead":"829587842ae4c2ee3428a2b22fa6e4f117813956","scripts":{"build":"webpack --mode production"},"_npmUser":{"name":"calumk","email":"calum@calumk.com"},"repository":{"url":"git+https://github.com/calumk/editorjs-codecup.git","type":"git"},"_npmVersion":"6.14.12","description":"Codecup, for EditorJS","directories":{},"_nodeVersion":"10.24.1","dependencies":{"@calumk/codecup":"^1.6.4"},"_hasShrinkwrap":false,"devDependencies":{"webpack":"^5.89.0","css-loader":"^6.7.1","webpack-cli":"^4.10.0","style-loader":"^3.3.1","svg-inline-loader":"^0.8.2"},"_npmOperationalInternal":{"tmp":"tmp/editorjs-codecup_1.0.5_1705268016723_0.11402374527539672","host":"s3://npm-registry-packages"}},"1.0.6":{"name":"@calumk/editorjs-codecup","version":"1.0.6","author":{"name":"Calum Knott"},"license":"MIT","_id":"@calumk/editorjs-codecup@1.0.6","maintainers":[{"name":"calumk","email":"calum@calumk.com"}],"homepage":"https://github.com/calumk/editorjs-codecup#readme","bugs":{"url":"https://github.com/calumk/editorjs-codecup/issues"},"dist":{"shasum":"e0da030827f7c8ae98d0adfb15541f928797bd24","tarball":"https://registry.npmjs.org/@calumk/editorjs-codecup/-/editorjs-codecup-1.0.6.tgz","fileCount":7,"integrity":"sha512-1LBRrndY2OfKSnJdqO2+e6ZAyzWpj/D7LUY/hd4fYL8cdfCOQvtO505DhX5QM1FL4oonVFmyYvRz5cpF0BYZEg==","signatures":[{"sig":"MEYCIQCDQtA483UaMRQooSa2Qa6DvuNoiWVCflSOuKY111T8tAIhALu04z7OLsEw9YtcKjMOxkWSULwfOMqxrhYrEDmZx0sQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":350854},"main":"./dist/editorjs-codeCup.bundle.js","gitHead":"37b3919f1804036ce58525c60b9d1e8c2be97d8b","scripts":{"build":"webpack --mode production"},"_npmUser":{"name":"calumk","email":"calum@calumk.com"},"repository":{"url":"git+https://github.com/calumk/editorjs-codecup.git","type":"git"},"_npmVersion":"6.14.12","description":"Codecup, for EditorJS","directories":{},"_nodeVersion":"10.24.1","dependencies":{"@calumk/codecup":"^1.6.4"},"_hasShrinkwrap":false,"devDependencies":{"webpack":"^5.89.0","css-loader":"^6.7.1","webpack-cli":"^4.10.0","style-loader":"^3.3.1","svg-inline-loader":"^0.8.2"},"_npmOperationalInternal":{"tmp":"tmp/editorjs-codecup_1.0.6_1705994184827_0.8114933350899254","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@calumk/editorjs-codecup","version":"1.1.0","author":{"name":"Calum Knott"},"license":"MIT","_id":"@calumk/editorjs-codecup@1.1.0","maintainers":[{"name":"calumk","email":"calum@calumk.com"}],"homepage":"https://github.com/calumk/editorjs-codecup#readme","bugs":{"url":"https://github.com/calumk/editorjs-codecup/issues"},"dist":{"shasum":"8bc6591bb25dcc04cb1633cb95a45c9e5836f655","tarball":"https://registry.npmjs.org/@calumk/editorjs-codecup/-/editorjs-codecup-1.1.0.tgz","fileCount":7,"integrity":"sha512-87E6E9cf6vewtHG5S3nemaQm2WDNwNEk3Ot6jJd8M8Mjqlzz+33jI+rl2BDXuGEABnPq06RLxtHnUVRiP//PUQ==","signatures":[{"sig":"MEUCIQDmZfL1XDPSd2mH37xv863TQyzUBikdfR/VCxTSRiyYqgIgN/A92ikcNAOir/s6CSHJZQmOACmxOCLwwEdgRHrKOfo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":352672},"main":"./dist/editorjs-codeCup.bundle.js","gitHead":"6979594fe6ec77099228a21d165114df6fc01a5a","scripts":{"build":"webpack --mode production"},"_npmUser":{"name":"calumk","email":"calum@calumk.com"},"repository":{"url":"git+https://github.com/calumk/editorjs-codecup.git","type":"git"},"_npmVersion":"6.14.12","description":"Codecup, for EditorJS","directories":{},"_nodeVersion":"10.24.1","dependencies":{"@calumk/codecup":"^1.8.1"},"_hasShrinkwrap":false,"devDependencies":{"webpack":"^5.89.0","css-loader":"^6.7.1","webpack-cli":"^4.10.0","style-loader":"^3.3.1","svg-inline-loader":"^0.8.2"},"_npmOperationalInternal":{"tmp":"tmp/editorjs-codecup_1.1.0_1706116744400_0.18876619735864564","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@calumk/editorjs-codecup","version":"1.1.1","author":{"name":"Calum Knott"},"license":"MIT","_id":"@calumk/editorjs-codecup@1.1.1","maintainers":[{"name":"calumk","email":"calum@calumk.com"}],"homepage":"https://github.com/calumk/editorjs-codecup#readme","bugs":{"url":"https://github.com/calumk/editorjs-codecup/issues"},"dist":{"shasum":"78e1fea7db23d244dd975b3d76056075366559cd","tarball":"https://registry.npmjs.org/@calumk/editorjs-codecup/-/editorjs-codecup-1.1.1.tgz","fileCount":7,"integrity":"sha512-j2k1eK4IEl3zXX7fkC+R8uIkeEV9Nd/m8oDPcdFaRCBYBkZxZpPbP66csWlPzRjirKnimxDT8uDLtgEmLf5iOQ==","signatures":[{"sig":"MEYCIQDrkgXB9IrcBWr6gdsQIOSuJ7B/O9GE0sHUVPy/ok/7TQIhAIJPZ8gB8lGg59kaVl4Zb32tXWZCOVBUGq8VA1DdHgJs","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":352672},"main":"./dist/editorjs-codeCup.bundle.js","gitHead":"153d02a0b19dd67456c2b72d6a3ad8bf62e78946","scripts":{"build":"webpack --mode production"},"_npmUser":{"name":"calumk","email":"calum@calumk.com"},"repository":{"url":"git+https://github.com/calumk/editorjs-codecup.git","type":"git"},"_npmVersion":"6.14.12","description":"Codecup, for EditorJS","directories":{},"_nodeVersion":"10.24.1","dependencies":{"@calumk/codecup":"^1.8.1"},"_hasShrinkwrap":false,"devDependencies":{"webpack":"^5.89.0","css-loader":"^6.7.1","webpack-cli":"^4.10.0","style-loader":"^3.3.1","svg-inline-loader":"^0.8.2"},"_npmOperationalInternal":{"tmp":"tmp/editorjs-codecup_1.1.1_1706116923543_0.05226606334583872","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@calumk/editorjs-codecup","version":"1.2.0","author":{"name":"Calum Knott"},"license":"MIT","_id":"@calumk/editorjs-codecup@1.2.0","maintainers":[{"name":"calumk","email":"calum@calumk.com"}],"homepage":"https://github.com/calumk/editorjs-codecup#readme","bugs":{"url":"https://github.com/calumk/editorjs-codecup/issues"},"dist":{"shasum":"6722c7c13fe0c7fdca5ef144686ce2e6478fb3c7","tarball":"https://registry.npmjs.org/@calumk/editorjs-codecup/-/editorjs-codecup-1.2.0.tgz","fileCount":9,"integrity":"sha512-FtFxWcmh2Wrh6fBZ+ahdvpIIt0WzXj0z2iuq8APo+8SOomkWsNS78azGfsl0Q0Z3cdU7krHgpYvpT8n9ARCMXw==","signatures":[{"sig":"MEYCIQC3fYRVC+ExwhER3kWh//2LU0ybez8LpMUjV5DOJzXhbwIhALw1AlUg7WW5gT11YeshdPXgxsWXp3kxdgdx6uhJyg6H","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4697461},"main":"./dist/editorjs-codeCup.bundle.js","gitHead":"69c623717b18fab60fc2d8a77b40c0aac88a7a7e","scripts":{"build":"webpack --mode production"},"_npmUser":{"name":"calumk","email":"calum@calumk.com"},"repository":{"url":"git+https://github.com/calumk/editorjs-codecup.git","type":"git"},"_npmVersion":"6.14.12","description":"Codecup, for EditorJS","directories":{},"_nodeVersion":"10.24.1","dependencies":{"@calumk/codecup":"^1.8.1"},"_hasShrinkwrap":false,"devDependencies":{"webpack":"^5.89.0","css-loader":"^6.7.1","webpack-cli":"^4.10.0","style-loader":"^3.3.1","svg-inline-loader":"^0.8.2"},"_npmOperationalInternal":{"tmp":"tmp/editorjs-codecup_1.2.0_1723235233957_0.49919851222621925","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"@calumk/editorjs-codecup","description":"Codecup, for EditorJS","version":"1.3.0","author":{"name":"Calum Knott"},"repository":{"type":"git","url":"git+https://github.com/calumk/editorjs-codecup.git"},"license":"MIT","main":"./dist/editorjs-codeCup.bundle.js","scripts":{"build":"webpack --mode production","build:watch":"webpack --watch --mode development"},"dependencies":{"@calumk/codecup":"^1.8.1"},"devDependencies":{"css-loader":"^6.7.1","style-loader":"^3.3.1","svg-inline-loader":"^0.8.2","webpack":"^5.89.0","webpack-cli":"^4.10.0"},"gitHead":"7161cb115ce6f841b889299ad459e60fcd06806e","bugs":{"url":"https://github.com/calumk/editorjs-codecup/issues"},"homepage":"https://github.com/calumk/editorjs-codecup#readme","_id":"@calumk/editorjs-codecup@1.3.0","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-qBqzF4ycpG1Dfbhbj4XKcHMKQVjf937W+Jb5Ha9xAPYOuuzcGzBUat2evH2XI/vUHnemr/Oj20hbyHYqbsucNQ==","shasum":"e70518c3bd1d5e8f6483e71b1fa57941ccfa0cf4","tarball":"https://registry.npmjs.org/@calumk/editorjs-codecup/-/editorjs-codecup-1.3.0.tgz","fileCount":9,"unpackedSize":4724823,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDzJBR/b3dsIZ327bZMa8i25Bc9PaFmvlRNUexcOICG9QIgCySUuypOXwT4jQkPkqdnPrQCvS31XISQvFn9qGCYe/k="}]},"_npmUser":{"name":"calumk","email":"calum@calumk.com"},"directories":{},"maintainers":[{"name":"calumk","email":"calum@calumk.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/editorjs-codecup_1.3.0_1741542108210_0.17155368285606687"},"_hasShrinkwrap":false}},"time":{"created":"2024-01-11T18:44:08.428Z","modified":"2025-03-09T17:41:48.627Z","1.0.1":"2024-01-11T18:44:08.828Z","1.0.2":"2024-01-11T19:09:47.245Z","1.0.3":"2024-01-11T19:18:20.619Z","1.0.4":"2024-01-13T07:43:15.946Z","1.0.5":"2024-01-14T21:33:36.907Z","1.0.6":"2024-01-23T07:16:25.044Z","1.1.0":"2024-01-24T17:19:04.765Z","1.1.1":"2024-01-24T17:22:03.746Z","1.2.0":"2024-08-09T20:27:14.339Z","1.3.0":"2025-03-09T17:41:48.472Z"},"bugs":{"url":"https://github.com/calumk/editorjs-codecup/issues"},"author":{"name":"Calum Knott"},"license":"MIT","homepage":"https://github.com/calumk/editorjs-codecup#readme","repository":{"type":"git","url":"git+https://github.com/calumk/editorjs-codecup.git"},"description":"Codecup, for EditorJS","maintainers":[{"name":"calumk","email":"calum@calumk.com"}],"readme":"# EditorJs - CodeCup\n\n### NPM\n    npm i @calumk/editorjs-codecup\n\n### JS\n    https://cdn.jsdelivr.net/npm/@calumk/editorjs-codecup@latest\n\n---\n\n## About\n\nThis is an EditorJs wrapper for [CodeCup](https://github.com/calumk/codecup) - A lovely lightweight zero-dep code formatter\n\nIt was built to be an improvement on :\n\n* https://github.com/editor-js/code - Too Basic\n* https://github.com/dev-juju/codebox - Agressive styling, and exports more data than markdown can handle\n\n\n## Demo\n\n![Demo ](./example-media/example2.gif)\n\n\n## Built with:\n\n* [CodeCup](https://github.com/calumk/codecup)\n* [Prism](https://www.npmjs.com/package/prismjs)\n\n\n---\n\n## Installation / Use\n\n```javascript\nimport EditorJS from '@editorjs/editorjs';\nimport editorjsCodecup from '@calumk/editorjs-codecup';\n\nvar editor = new EditorJS({\n  // ...\n  tools: {\n    ...\n    code : editorjsCodecup\n  },\n});\n```\n\n### Language Selection\n\nThe plugin provides two ways to handle language selection:\n\n1. **Free-form Language Input**: By default (when no languages are configured), users can enter any valid Prism.js language key through a text input.\n\n2. **Predefined Language Dropdown**: When you provide a languages configuration, users can select from a predefined list of languages through a dropdown menu.\n\nYou can configure the language selection behavior using these options:\n\n#### Predefined Languages\nProvide a custom mapping of Prism.js language keys to their display names:\n\n```javascript\nvar editor = new EditorJS({\n  // ...\n  tools: {\n    code: {\n      class: editorJsCodeCup,\n      config: {\n        languages: { \n          javascript: \"JavaScript\",\n          python: \"Python\",\n          java: \"Java\",\n          cpp: \"C++\",\n          csharp: \"C#\",\n          go: \"Go\",\n          none: \"Plain Text\",\n        }\n      } \n    }\n  },\n});\n```\n\n#### Force Show Language Input\nIf you want to allow both predefined language selection AND free-form language input, use the `forceShowLanguageInput` option:\n\n```javascript\nvar editor = new EditorJS({\n  // ...\n  tools: {\n    code: {\n      class: editorJsCodeCup,\n      config: {\n        languages: { \n          javascript: \"JavaScript\",\n          python: \"Python\",\n          // ... other languages\n        },\n        forceShowLanguageInput: true // Shows both dropdown and language input\n      } \n    }\n  },\n});\n```\n\nRefer to [Prism.js supported languages](https://prismjs.com/#supported-languages) for the available language mappings.\n\n## Data Format\nThe data imported/exported from the block is as follows:\n\n| Name                       | Description                                                |\n| -------------------------- | ---------------------------------------------------------- |\n| code                       | The code that is displayed in the editor, with line breaks |\n| language (optional)        | The programming language                                   |\n| showlinenumbers (optional) | Will show/hide the line numbers (Default true)             |\n| showCopyButton (optional)  | Will show/hide the copy button (Default true)              |\n\nSince language and linenumbers are optional, existing ```code``` blocks can safley use this plugin\n\n\n\n---\n\n## Contributing\n\n@calumk\n\n@keertyverma\n\n","readmeFilename":"readme.md"}