Last active
September 19, 2021 16:48
-
-
Save csssecrets/88c1523dfd1284950b4d to your computer and use it in GitHub Desktop.
Adjusting tabs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Adjusting tabs | |
*/ | |
pre { | |
padding: .5em; | |
line-height: 1.5; | |
background: hsl(20, 50%, 95%); | |
font-family: Consolas, Monaco, monospace; | |
} | |
pre:nth-of-type(2) { tab-size: 2 } | |
pre:nth-of-type(3) { tab-size: 4 } | |
pre:nth-of-type(4) { tab-size: 0 } | |
code { | |
font: inherit; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<pre><code>// Default tab size | |
while (true) { | |
var d = new Date(); | |
if (d.getDate()==1 && | |
d.getMonth()==3) { | |
alert("TROLOLOL"); | |
} | |
}</code></pre> | |
<pre><code>// tab-size: 2; | |
while (true) { | |
var d = new Date(); | |
if (d.getDate()==1 && | |
d.getMonth()==3) { | |
alert("TROLOLOL"); | |
} | |
}</code></pre> | |
<pre><code>// tab-size: 4; | |
while (true) { | |
var d = new Date(); | |
if (d.getDate()==1 && | |
d.getMonth()==3) { | |
alert("TROLOLOL"); | |
} | |
}</code></pre> | |
<pre><code>// tab-size: 0; | |
while (true) { | |
var d = new Date(); | |
if (d.getDate()==1 && | |
d.getMonth()==3) { | |
alert("TROLOLOL"); | |
} | |
}</code></pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment