Fully customisable syntax-highlighted textareas with TypeScript Bindings for frontend use.
This is a repository that houses getting-started materials and demo files for the code-input
library's TypeScript bindings (.d.ts
files). Here's how to get started with TypeScript and code-input:
- Install node.js.
- Install NPM Package Manager.
- In a terminal / command line, type
npm install -g typescript
.
- Clone all of the files in this repository into a folder, including the
code-input
library. - Uncomment one of the demo JS files in the
<head>
ofindex.html
.
- Edit the corresponding demo TypeScript file if wanted.
- Compile the TypeScript with the command:
tsc