Add escape characters to language examples

This commit is contained in:
Daniel Smith
2018-10-06 16:08:56 -04:00
parent 277633c61a
commit c4b47ba023
3 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<!doctype html>
<html>
<head>
<title>Page title</title>
</head>
<body>
<h1>First-level header</h1>
<h2>Second-level header</h2>
<ul>
<li>list</li>
<li>of</li>
<li>bullets</li>
</ul>
<h2>Another second-level header</h2>
<p>
This paragraph contains an escape&mdash;namely, the em dash.
</p>
</body>
</html>

View File

@@ -6,6 +6,7 @@ function func(param) {
}
var number = 0;
var templateLiterals = `a ${text} b ${1 + 2} c`;
var escapes = 'line 1\nline 2';
return {
"text": text,
"boolean": false,

View File

@@ -6,6 +6,7 @@ function func(param: string): object {
}
var number = 0;
var templateLiterals = `a ${text} b ${1 + 2} c`;
var escapes = 'line 1\nline 2';
return {
"text": text,
"boolean": false,