{"id":18449754,"url":"https://github.com/alincode/codemirror-solidity","last_synced_at":"2025-04-08T01:33:13.014Z","repository":{"id":71111081,"uuid":"188436511","full_name":"alincode/codemirror-solidity","owner":"alincode","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-21T14:39:37.000Z","size":184,"stargazers_count":8,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-27T22:47:38.086Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/alincode.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,"publiccode":null,"codemeta":null}},"created_at":"2019-05-24T14:31:26.000Z","updated_at":"2023-11-21T03:30:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"6f226ba5-c9d6-4ae7-88df-c215224561cf","html_url":"https://github.com/alincode/codemirror-solidity","commit_stats":{"total_commits":32,"total_committers":4,"mean_commits":8.0,"dds":0.4375,"last_synced_commit":"9a1067cefff3b17a3e007852599a802ab783bb0c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alincode%2Fcodemirror-solidity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alincode%2Fcodemirror-solidity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alincode%2Fcodemirror-solidity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alincode%2Fcodemirror-solidity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alincode","download_url":"https://codeload.github.com/alincode/codemirror-solidity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223298726,"owners_count":17122285,"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-11-06T07:21:53.368Z","updated_at":"2024-11-06T07:21:53.809Z","avatar_url":"https://github.com/alincode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# codemirror solidity mode\n\n* [simple demo](https://alincode.github.io/codemirror-solidity/)\n* [carbon demo](https://carbon.now.sh/kN5PIVd3SAzGLtrfiyyb)\n\nA CodeMirror mode for Ethereum Solidity development\n\n![GitHub package version](https://img.shields.io/github/package-json/v/alincode/codemirror-solidity.svg)\n![npm downloads](https://img.shields.io/npm/dt/codemirror-solidity.svg)\n[![Dependency Status](https://img.shields.io/david/alincode/codemirror-solidity.svg?style=flat)](https://david-dm.org/alincode/codemirror-solidity)\n\n![](demo.png)\n\n## what is CodeMirror?\n\n* \u003chttps://codemirror.net/\u003e\n* CodeMirror is a versatile text editor implemented in JavaScript for the browser. It is specialized for editing code, and comes with a number of language modes and addons that implement more advanced editing functionality.\n\n## Installation instructions\n\n+ Install from NPM: `npm install codemirror-solidity`\n+ Include the new mode into your project, e.g.\n```\n\u003cscript src=\"./node_modules/codemirror-solidity/solidity.js\"\u003e\u003c/script\u003e\n```\n+ Set the mode to `text/x-solidity` in your editor, e.g.\n\n```js\nvar editor = CodeMirror.fromTextArea(document.getElementById(\"code\"), {\n  theme: \"solidity\",\n  matchBrackets: true,\n  indentUnit: 4,\n  lineNumbers: true,\n  tabSize: 8,\n  indentWithTabs: true,\n  mode: \"text/x-solidity\"\n});\n```\n\nThe `index.html` file in this project includes a simple example.  Note that CodeMirror must be installed through NPM as a dependency of codemirror-solidity for that page to display correctly.\n\n## License\nMIT © [alincode](https://github.com/alincode/codemirror-solidity)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falincode%2Fcodemirror-solidity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falincode%2Fcodemirror-solidity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falincode%2Fcodemirror-solidity/lists"}