Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 524 Bytes

code.md

File metadata and controls

24 lines (20 loc) · 524 Bytes

How to Format Code on Discord

  • type three "backticks" (not quotes/apostrophes, on QWERTY layout, left of 1-key)
  • on the same line, type the file extension for that language (c or cpp)
  • enter your code on a new line and put another three backticks at the end

Example Input

?inline ```cpp
int main() {
return 0;
}
```

Example Output

?inline

int main() {
    return 0;
}

See Also

Learn more about Discord formatting