{"id":18678124,"url":"https://github.com/zingchart/gitbook-plugin-code-editor","last_synced_at":"2025-10-08T05:10:39.495Z","repository":{"id":85225098,"uuid":"62747868","full_name":"zingchart/gitbook-plugin-code-editor","owner":"zingchart","description":"Plugin for Gitbook that displays and runs code from external file.  Code is displayed in an Ace editor.","archived":false,"fork":false,"pushed_at":"2021-02-22T18:40:14.000Z","size":111,"stargazers_count":13,"open_issues_count":4,"forks_count":1,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-08-09T07:07:30.467Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zingchart.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"publiccode":null,"codemeta":null}},"created_at":"2016-07-06T19:27:34.000Z","updated_at":"2021-07-11T17:14:49.000Z","dependencies_parsed_at":"2023-03-25T13:48:56.723Z","dependency_job_id":null,"html_url":"https://github.com/zingchart/gitbook-plugin-code-editor","commit_stats":{"total_commits":12,"total_committers":3,"mean_commits":4.0,"dds":"0.16666666666666663","last_synced_commit":"2497eac823b1688a78e2feea46b3b4e9a689ac6b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zingchart/gitbook-plugin-code-editor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zingchart%2Fgitbook-plugin-code-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zingchart%2Fgitbook-plugin-code-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zingchart%2Fgitbook-plugin-code-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zingchart%2Fgitbook-plugin-code-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zingchart","download_url":"https://codeload.github.com/zingchart/gitbook-plugin-code-editor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zingchart%2Fgitbook-plugin-code-editor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278891753,"owners_count":26063858,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-07T09:36:06.440Z","updated_at":"2025-10-08T05:10:39.477Z","avatar_url":"https://github.com/zingchart.png","language":"JavaScript","readme":"# 2021 UPDATE:\n\n**This plugin is no longer maintained. It will not work with newer versions of GitBook. This repository exists purely for historical reasons. No further updates will be made.**\n\n\n\nGitBook Plugin to display and run included files.\n==============\n### View/Edit Code in ACE Editor\n![Editor View](/assets/images/editor.png)\n\n### Run code in Page\n![Run](/assets/images/run.png)\n\n\n### 1. You can use install it via **NPM** and save it to package.json:\n```\n$ npm install gitbook-plugin-code-editor --save\n```\n### 2. Add the plugin to `book.json` config\n```\n{\n    \"plugins\": [ \"code-editor\"]\n}\n```\n\n### 3. Include codeeditor blocks in your markdown files.\n```\n{% codeeditor src='../HTML/4Elements/forms/select.html' %}\n{% endcodeeditor %}\n```\n\n```\n{% codeeditor   src='../HTML/4Elements/forms/input.html',\n                language='javascript', readOnly='true', theme='github' %}\n{% endcodeeditor %}\n```\n\n```\n{% codeeditor src='../HTML/4Elements/forms/meter.html' %}\n{% endcodeeditor %}\n```\n\n#### General Attributes\n\n* `src` *required* - The relative path to the file that will be displayed in the editor and run in page.\n* `singleTab` *optional* - Can be set to `false`, `html`, `result`.  If `html` or `result`, only that tab will be shown.\n    * default: `false`\n\n#### Editor Attributes\n\nWe are using an Ace editor for the editor.  We currently support the following attributes.\n* `language` *optional* - Sets the programming language mode to be used in the syntax highlighter.  The full list of supported languages can be found in the [Ace Editor Repository](https://github.com/ajaxorg/ace-builds/tree/master/src-min-noconflict).\n    * default: `html`\n* `theme` *optional* - Sets the Ace Editor Theme.  The full list of supported themes can be found in the [Ace Editor Repository](https://github.com/ajaxorg/ace/tree/master/lib/ace/theme).\n    * default: `chrome`\n* `readOnly` *optional* - If set to `true`, the editor will not be editable.\n    * default: `false`\n* `maxLines` *optional* - Sets the maximum number of lines that will be visible in the editor.\n    * default: 25\n\n#### Executed Code Attributes\n\nThe executed code displays in an iframe in order to preserve any items in the `\u003chead\u003e` that may be necessary for the example.\n* `height` *optional* - Sets the height of the iframe\n    * default: 300\n\n---\n# License\n\nMIT License\n\n\u0026copy; 2016 ZingChart, Inc.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzingchart%2Fgitbook-plugin-code-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzingchart%2Fgitbook-plugin-code-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzingchart%2Fgitbook-plugin-code-editor/lists"}