Use existing docWithCode from StringGeneratorHelpers