-
-
Save astrocean/ef381f4fdd6529bbc42a7d9286feb6e3 to your computer and use it in GitHub Desktop.
Adjusting tabs
This file contains hidden or 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; | |
| font-variant-ligatures: common-ligatures | |
| discretionary-ligatures | |
| historical-ligatures; } | |
| 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 hidden or 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 hidden or 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 hidden or 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