Skip to content

Instantly share code, notes, and snippets.

@cerkit
Created March 24, 2016 16:41
Show Gist options
  • Save cerkit/e28314cee7a0aa2c0bda to your computer and use it in GitHub Desktop.
Save cerkit/e28314cee7a0aa2c0bda to your computer and use it in GitHub Desktop.
Markdown with code embedded in a <pre /> tag.
<pre class="line-numbers"><code class="language-csharp">static void Main(string[] args)
{
for (int i = 0; i < 10; i++)
{
// toggle between words and paragraphs
bool isEven = (i % 2) == 0;
bool isThird = (i % 3) == 0;
LipsumType lipsumType = isEven ? LipsumType.Paragraphs : LipsumType.Words;
// only start with Lorem Ipsum every third call
Debug.WriteLine(LoremIpsumUtil.GetNewLipsum(lipsumType, 7, isThird).feed.lipsum + Environment.NewLine);
// sleep for 1 second to give the server a rest
Thread.Sleep(1000);
}
}</code></pre>
@cerkit
Copy link
Author

cerkit commented Mar 24, 2016

This code will display improperly in Ghost. The first == will not be displayed, but the second one will.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment