RTL support and code formatting