4 ms·
Off the top of my head I'm not sure if this is part of Markdown proper (or maybe GitHub's "flavor") but you can do fenced code blocks, like so: ~~~ // your co
by kylebragger 14y ago
Off the top of my head I'm not sure if this is part of Markdown proper (or maybe GitHub's "flavor") but you can do fenced code blocks, like so:
~~~
// your code
// goes here
// and here
~~~
- AncientPC 14y agoThat's GitHub flavor. You can also use back ticks and specify syntax highlighting, e.g: ```python from functools import partial def foo(a,b,i): if i >= a and i <= b: return i**2 else: return 0 print reduce(lambda x,y: x+y,map(partial(foo,3,7),xrange(1,10))) ```