ESRI community forums input formatting has an "Insert/Edit code sample" option. However this method is pretty awkward and does not work the same way as any standard code formatting.
When you use it, it takes up an entire line and doesn't work well for in-line code samples.
Users should be able to use standard formatting like:
`single carat for inline text`
or
```
multiple carats
for multiple
lines
```
This would make adding code samples much easier and cleaner. This is a standard feature in any forum where code is read/written.