Left alignment's code block in RTL documents

I have a document which is RTL (Right To Left), But when I want to write some code inside it the codes are right alignment. is it possible for left aligning code blocks inside RTL docs?