you can use a triple backtick like:
```
// some code
```
to open and close code blocks, the default syntax will be cpp or you can sepcify the language when opening the code block adding it after the backticks like:
```java
in general the github flaouvered markdown syntax should work: https://help.github.com/articles/github-flavored-markdown/