Skip to content

tonioloewald/code-editor

Repository files navigation

code-editor

github | live demo | npm

This is a xinjs component blueprint that inserts a code editor (using the Ace editor).

This means you can insert a code editor with syntax highlighting as simply as this:

// grab xinjs from a cdn
<script type="module">
  import 'https://cdn.jsdelivr.net/npm/xinjs@0.8.8/dist/module.js'
</script>
<xin-loader>
  <xin-blueprint tag="code-editor" src="https://tonioloewald.github.io/code-editor/dist/blueprint.js"></xin-blueprint>
</xin-loader>
<code-editor mode="javascript">
  console.log('hello world')
</code-editor>

About

xinjs code-editor blueprint based on Ace editor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published