<!DOCTYPE html> <html> <head> <title>change direction of pre with bidi text</title> <meta charset="UTF-8"> <script type="text/javascript"> function boom() { document.getElementById("w").style.direction="rtl"; } </script> </head> <body onload="boom();"> <pre id="w"> can_be_executable=TRUE [he]description=סוג לא ידוע description=Unknown type [ar]description=نوع غير معروف [az]description=Namə'lum növ </pre> </body> </html>