Refactor pretty setting to lang, add validation and allow setting lang
to false to prevent pretty printing.