{"id":13769960,"url":"https://github.com/calumk/editorjs-codeflask","last_synced_at":"2025-05-11T02:34:00.304Z","repository":{"id":41354921,"uuid":"483233749","full_name":"calumk/editorjs-codeflask","owner":"calumk","description":"Code syntax highlighting tool for Editor.js, Built with Codeflask","archived":true,"fork":false,"pushed_at":"2024-01-13T08:19:31.000Z","size":768,"stargazers_count":20,"open_issues_count":9,"forks_count":23,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-08T13:31:17.312Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/calumk.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-04-19T12:18:34.000Z","updated_at":"2024-08-10T17:06:34.000Z","dependencies_parsed_at":"2024-01-13T10:54:25.454Z","dependency_job_id":"fa9a5096-6acd-4541-95ad-7cd000ca8465","html_url":"https://github.com/calumk/editorjs-codeflask","commit_stats":{"total_commits":28,"total_committers":2,"mean_commits":14.0,"dds":0.0714285714285714,"last_synced_commit":"c6ad65ad808c8bfa48eb219d009c56c8235b4a16"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calumk%2Feditorjs-codeflask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calumk%2Feditorjs-codeflask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calumk%2Feditorjs-codeflask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calumk%2Feditorjs-codeflask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/calumk","download_url":"https://codeload.github.com/calumk/editorjs-codeflask/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225004693,"owners_count":17405659,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T17:00:33.084Z","updated_at":"2024-11-17T05:31:53.702Z","avatar_url":"https://github.com/calumk.png","language":"JavaScript","funding_links":[],"categories":["Tools"],"sub_categories":["Block Tools"],"readme":"# EditorJs - Codeflask\n\n\u003e [!WARNING]\n\u003e This repo is depreciated / archived.\n\n\u003e [!IMPORTANT]\n\u003e Due to changes in the core editor (Change from codeflask -\u003e codecup) I have decided to fork this repo, and depreciate it.\n\u003e\n\u003e The Plugin originally relied on [CodeFlask](https://kazzkiq.github.io/CodeFlask/), which i have also forked, and republished as [CodeCup](https://github.com/calumk/codecup)\n\u003e\n\u003e As such, the plugin is now different enough, that i have decided to republish it under its new name, so I can accept issues/pull requests on the whole stack, and maintain it better going forwards\n\u003e \n\u003e Please upgrade to [@calumk/editorjs-codecup](http://github.com/calumk/editorjs-codecup)\n\n\n---\n\n### NPM\n    npm i @calumk/editorjs-codeflask\n\n### JS\n    https://cdn.jsdelivr.net/npm/@calumk/editorjs-codeflask@latest\n\n---\n\n## About\n\nThis is an EditorJs wrapper for [CodeFlask](https://kazzkiq.github.io/CodeFlask/) - A lovely lightweight zero-dep code formatter\n\nIt was built to be an improvement on :\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/editorjs-codeflask-demo.gif)\n\n\n## Built with:\n\n* [CodeFlask](https://kazzkiq.github.io/CodeFlask/)\n* [Prism](https://www.npmjs.com/package/prismjs)\n* [Prism ESM Importer](https://www.npmjs.com/package/prismjs-components-importer)\n* [Nice Select 2](https://www.npmjs.com/package/nice-select2)\n\n\n---\n\n## Installation / use\n\n```javascript\nimport EditorJS from '@editorjs/editorjs';\nimport editorjsCodeflask from '@calumk/editorjs-codeflask';\n\nvar editor = EditorJS({\n  // ...\n  tools: {\n    ...\n    code : editorjsCodeflask\n  },\n});\n```\n\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) (WIP - [Codeflask #132](https://github.com/kazzkiq/CodeFlask/issues/132)) |\n\n\nSince language and linenumbers are optional, existing ```code``` blocks can safley use this plugin\n\n\n\n\u003c!-- ---\n\n## Markdown Compatability\n\n\u003e TODO!\n\nThis plugin *will be* compatible with\n\n    npm i editorjs-markdown-parser\n\nIt will import/export using the code fence markdown style, with the language printed imediatly after the first fence, as described in [GFM #117](https://github.github.com/gfm/#example-112)\n\nLine-numbers cant be expressed in markdown, so will be ommited\n\nExample :\n\n    ```javascript\n    \\\\ Hello World\n    ``` --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalumk%2Feditorjs-codeflask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcalumk%2Feditorjs-codeflask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalumk%2Feditorjs-codeflask/lists"}