lib/output: Add `WriteCode` method
Created by: efritz
Add a method that renders a markdown code block without margins. I don't care about the API, but this unblocks the new migration drift detector from working well in a copy-and-paste scenario; currently copy and pasting function definitions contain additional indent that makes the drift detector complain in a way that needs to be fixed manually.
Test plan
N/A.