@Vandesm14/

Latch Highlighter

HTML, CSS, JS

No description

fork
loading
Files
  • index.html
  • script.js
  • style.css
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>Latch Highlighter</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
  </head>
  <body>
		<textarea id="editor"></textarea>
		<div id="colors"></div>
		<template id="colorTemplate">
			<span class=".{{class}}">{{text}}</span>
		</template>
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
    <script src="script.js"></script>
  </body>
</html>
result
console