I tried to edit a module using Hebrew interface language. The syntax-=highlighting code editor showed the code right-to-left. It must always be explicitly left-to-right.
In regular editing view without syntax-=highlighting code editor the direction is OK.
For some reason, in Chromium this looks even worse than in Firefox, but setting the direction correctly is supposed to fix it anyway.