Last active
August 29, 2015 14:15
-
-
Save johanbrook/bb48f87206071edbccf1 to your computer and use it in GitHub Desktop.
Code tabs in Markdown.
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
<div class="code-tabs"> | |
```objc | |
NSLog(@"Some string"); | |
``` | |
```swift | |
var sortedStrings = sorted(stringArray) { | |
$0.uppercaseString < $1.uppercaseString | |
} | |
``` | |
</div> | |
```js | |
console.log("hej"); | |
``` |
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
<div class="code-tabs"> | |
<pre> | |
<code class="language-objc"><span class="hljs-built_in">NSLog</span>(<span class="hljs-string">@"Some string"</span>);</code> | |
</pre> | |
<pre> | |
<code class="language-swift">var sortedStrings = sorted(stringArray) { | |
<span class="hljs-variable">$0</span>.uppercaseString < <span class="hljs-variable">$1</span>.uppercaseString | |
}</code> | |
</pre> | |
</div> | |
<pre> | |
<code class="language-js"><span class="hljs-built_in">console</span>.log(<span class="hljs-string">"hej"</span>);</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
<div class="code-tabs"> | |
<code>objc | |
NSLog(@"Some string");</code> | |
<code>swift | |
var sortedStrings = sorted(stringArray) { | |
$0.uppercaseString < $1.uppercaseString | |
}</code> | |
</div> | |
<pre> | |
<code class="lang-js">console.log("hej");</code> | |
</pre> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment