You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -25,43 +36,53 @@ class Document extends Component {
25
36
super(props);
26
37
27
38
this.state={
28
-
code: '// Welcome to codeprinter!\n'+
29
-
'const foo = () => {\n'+
30
-
' console.log(\'This is where your code will be printed out!\');\n'+
31
-
'};'
39
+
code:
40
+
'// Welcome to codeprinter!\n'+
41
+
'const foo = () => {\n'+
42
+
" console.log('This is where your code will be printed out!');\n"+
43
+
'};'
32
44
};
33
45
34
46
this.onChange=this.onChange.bind(this);
35
47
}
36
48
37
49
onChange(event){
38
50
this.setState({code: event.target.value});
39
-
};
51
+
}
40
52
41
53
render(){
42
54
letplaceholder='Paste your code in here!';
43
55
44
56
if(this.props.numbers){
45
-
placeholder+=' \nIf you have some lines that are longer than the page width, the line numbers won\'t be fully accurate. To correct for this, add a few extra new lines to the bottom of your code.';
57
+
placeholder+=
58
+
" \nIf you have some lines that are longer than the page width, the line numbers won't be fully accurate. To correct for this, add a few extra new lines to the bottom of your code.";
constexpectedPlaceholder='Paste your code in here! \nIf you have some lines that are longer than the page width, the line numbers won\'t be fully accurate. To correct for this, add a few extra new lines to the bottom of your code.';
46
+
constexpectedPlaceholder=
47
+
"Paste your code in here! \nIf you have some lines that are longer than the page width, the line numbers won't be fully accurate. To correct for this, add a few extra new lines to the bottom of your code.";
0 commit comments