1You can both use notepad(Pc), TextEdit(Mac) but thats not really good
2so i would probably use atom, sublime text or visual studio code
1 function chooseColor(){
2 var mycolor = document.getElementById("myColor").value;
3 document.execCommand('foreColor', false, mycolor);
4 }
5
6 function changeFont(){
7 var myFont = document.getElementById("input-font").value;
8 document.execCommand('fontName', false, myFont);
9 }
10
11 function changeSize(){
12 var mysize = document.getElementById("fontSize").value;
13 document.execCommand('fontSize', false, mysize);
14 }
15
16 function checkDiv(){
17 var editorText = document.getElementById("editor1").innerHTML;
18 if(editorText === ''){
19 document.getElementById("editor1").style.border = '5px solid red';
20 }
21 }
22
23 function removeBorder(){
24 document.getElementById("editor1").style.border = '1px solid transparent';
25 }
26
1<!DOCTYPE html>
2<html lang="en">
3<head>
4 <style>
5 #printcss {
6 margin: 6;
7 height: 300;
8 width: 300;
9
10 };
11
12 #txt {
13 width: 100%;
14 }
15 </style>
16
17 <script>
18 function prt() {
19 print();
20 };
21
22 function ref() {
23 document.location.reload();
24 }
25 </script>
26 <meta charset="UTF-8">
27 <meta name="viewport" content="width=device-width, initial-scale=1.0">
28 <title>printext</title>
29</head>
30<body>
31 <center>
32 <button onclick="ref()">new file</button>
33 <button id="printcss" onclick="prt()">print</button>
34
35
36 </center>
37 <textarea name="txt" id="txt" cols="250" rows="1000"></textarea>
38</body>
39</html>
40
41