Copenhagen is a free, lightweight and hackable open source code editor for the web. It's responsible for powering the code-editing experience on Autoc

acode / copenhagen Public

submited by
Style Pass
2021-10-27 01:30:05

Copenhagen is a free, lightweight and hackable open source code editor for the web. It's responsible for powering the code-editing experience on Autocode, and it's written entirely in vanilla JavaScript with only highlight.js and feather icons bundled as dependencies.

Documentation is available at copenhagen.autocode.com. You can also play around with your own installation right away by forking this repository in Autocode:

To get started with Copenhagen, add copenhagen.v0-3-0.min.css and copenhagen.v0-3-0.min.js to your web project. You can find them in this repository. Then import them to your webpage by adding the following lines in the <head> tag of your webpage:

Alternatively, you can automatically convert all elements matching a specific selector. This will automatically pass in config values via data-* attributes on the HTML tag.

And then visit http://localhost:3434/dev/raw/ or http://localhost:3434/dev/min/ to play with the raw or minified compiled version of the editor. You can change the editor code via the src/ directory in this repository.

Leave a Comment
Related Posts