Handmade Network»Forums»Site Feedback
Roman
23 posts
17 y.o from Russia.
what is syntax for code block at the site
Edited by Roman on

Is toolbar for writing posts gone? Can you remind me syntax for code block? Also as I understand site switched from bbcode to markdown syntax so where can I find all available syntax?

Asaf Gartner
50 posts
Handmade Network Staff
what is syntax for code block at the site

We support both bbcode and markdown. You can do either:

[code language=c]

char *str = "your code here";

[/code]

Or

```c
char *str = "your code here";
```

Roman
23 posts
17 y.o from Russia.
what is syntax for code block at the site
Replying to AsafG (#25188)

Ok thanks. Where can I find all available syntax?

Asaf Gartner
50 posts
Handmade Network Staff
what is syntax for code block at the site
Replying to ExTray2020 (#25189)

We don't have a page for that yet.

For now you can use this for markdown syntax: https://guides.github.com/features/mastering-markdown/