Skip to content

Instantly share code, notes, and snippets.

@timheuer
Last active June 26, 2023 22:49
Show Gist options
  • Save timheuer/e332efcaabcfaa5b9bbd4ab9753e9fcf to your computer and use it in GitHub Desktop.
Save timheuer/e332efcaabcfaa5b9bbd4ab9753e9fcf to your computer and use it in GitHub Desktop.
code examples
<html>
<head><title>test</title></head>
<body>
<div> This is some text with <b>bolding</b></div>
<div> But when representing code in html you use 'pre' like this</div>
<div><pre>public class Foo { }</pre></div>
</body>
</html>

Code in Markdown

This is some text Now I want to show some code:

public class Foo {
  public string Bar {get; }
}

Observe how the Foo class has one property called Bar that is readonly

Observe how this is different than me referring to how important paying attention to the Bar property.

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