Get started with tui-code-snippet CDN
MIT licensed
Tui-Code-Snippet is a library for creating and customizing code editors within web applications.
Tags:- nhn
- tui
- utility
- code-snippet
Stable version
Copied!
How to start using tui-code-snippet CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with tui-code-snippet CDN - cdnhub.io</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/nanocss@2.1.5/dist/nano.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tui-code-snippet@2.3.3/dist/tui-code-snippet.css">
<style>
#editor { width: 100%; height: 500px; }
</style>
</head>
<body>
<div id="editor"></div>
<script src="https://cdn.jsdelivr.net/npm/tui-code-snippet@2.3.3/dist/tui-code-snippet.js"></script>
<script>
const editor = new tui.CodeSnippet('#editor', {
readOnly: false, // Set to true if you want to make the editor read-only
language: 'javascript' // Set the desired programming language
});
</script>
</body>
</html>