How to post code on the forum
Posting code here is easy once you know the syntax. The golden rule: always wrap code in backticks. Otherwise the forum treats it as normal Markdown, and symbols like _ or * get turned into italics or bold, breaking your snippet.
Inline code
Wrap short snippets in single backticks:
printf("Hello, Haiku!")
Code blocks
Wrap multi-line code in triple backticks, and write the language name right after the opening set to get syntax highlighting:
#include <stdio.h>
int main() {
printf("Hello, Haiku!\n");
return 0;
}
Supported languages include c, cpp, bash, python, js, json, xml, php and many more.
Tip
Use the </> button in the editor toolbar to insert code formatting for you — select your text first, then click it.
Happy hacking! 🔥