DEV Community

Discussion on: I'm looking for an embeddedable code editor. Preferably one that looks great.

Collapse
 
bennypowers profile image
Benny Powers 🇮🇱🇨🇦

For just highlighting, you might want to use the marked-element webcomponent, which has a syntax-highlight event that you can listen to in order to highlight the rendered markdown.

Collapse
 
bennypowers profile image
Benny Powers 🇮🇱🇨🇦

<monaco-editor> looks good but uses polymer 2 i.e. HTML Imports and bower. Perhaps the author could be convinced to update to polymer 3 with es modules and npm

<ace-widget> is installed with npm and loaded with modules, supports code highlighting, check out the demos where they have a JS editor