Just curious
what
No lang
function myFunction() {
return true;
}
Text
function myFunction() {
return true;
}
Langs
function myFunction() {
return true;
}
function myFunction() {
return true;
}
function myFunction() {
return true;
}
let multilineString = `
this is the first line
this is the middle line
this is the last line
`;
let multilineString = `
this is the first line
this is the middle line
this is the last line
`;
TabWidth 32
let multilineString = `
this line has a tabfirst line
this line has two spaces
`;
Highlight 1 & 3
let multilineString = `
this is the first line
this is the middle line
this is the last line
`;
Highlight 1, 3-6
let multilineString = `
this is the first line
this is the second line
this is the third line
this is the fourth line
this is the fifth line
this is the sixth line
this is the seventh line
this is the eighth line
`;
Highlight 1, 3-6
let multilineString = `
this is the first line
this is the second line
this is the third line
this is the fourth line
this is the fifth line
this is the sixth line
this is the seventh line
this is the eighth line
`;
let multilineString = `
this is the first line
this is the second line
this is the third line
this is the fourth line
this is the fifth line
this is the sixth line
this is the seventh line
this is the eighth line
`;
Line numbers and highlight Highlight 1, 3-6
1let multilineString = `
2 this is the first line
3 this is the second line
4 this is the third line
5 this is the fourth line
6 this is the fifth line
7 this is the sixth line
8 this is the seventh line
9 this is the eighth line
10`;
Line numbers and highlight Highlight 3-6
1let multilineString = `
2 this is the first line
3 this is the second line
4 this is the third line
5 this is the fourth line
6 this is the fifth line
7 this is the sixth line
8 this is the seventh line
9 this is the eighth line
10`;
Line numbers, highlight, base number 200, table Highlight 202-204
200
201
202
203
204
205
206
207
208
209
let multilineString = `
this is the first line
this is the second line
this is the third line
this is the fourth line
this is the fifth line
this is the sixth line
this is the seventh line
this is the eighth line
`;
Line numbers, highlight, base number 200, table Highlight 3-6 (won't work)
200
201
202
203
204
205
206
207
208
209
let multilineString = `
this is the first line
this is the second line
this is the third line
this is the fourth line
this is the fifth line
this is the sixth line
this is the seventh line
this is the eighth line
`;
Line numbers, highlight, base number 200, table Highlight 1, 3-6, separated spaces (won't work)
let multilineString = `
this is the first line
this is the second line
this is the third line
this is the fourth line
this is the fifth line
this is the sixth line
this is the seventh line
this is the eighth line
`;
Table
function myFunction() {
return true;
}
linenums
1function myFunction() {
2 return true;
3}
import { aReallyLongFunctionNameThatCouldBeLongerButThisShouldBeLongEnoughByNowHopefully as anEvenLongerFunctionNameWithMoreCharactersThanCouldBeImaginedByAnyOnePersonInThisEntireWorldOfPeopleThatOneMightKnowAtLeastThatIsWhatIsTheorizedByThisLongName } from 'wow-this-is-so-long-you-might-need-a-scrollbar-to-see-it.long-ol-file-extension-that-should-not-be-this-long-on-a-real-site-but-this-is-to-demonstrate-the-accessibility-of-tabindex-and-scrollbars.js';
pre {
display: block;
padding: 0.75rem 1rem;
line-height: 1.5;
overflow-x: auto;
background-color: #eee;
font-size: 1em; /*14px /16*/
-moz-tab-size: 2;
-o-tab-size: 2;
tab-size: 2;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
background-color: #272822;
color: #fff;
}
:not(pre) > code[class*="language-"] {
padding: 0.1em 0.3em;
border-radius: 0.3em;
white-space: normal;
}
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: #8da1b9;
}