How can I switch the text direction in kate and kwrite editors?
I have English & Persian layouts and want to read the Persian text as right to left but I can't seem to be able to switch the text direction.
Unicode (UTF-8) has a special character called the https://en.wikipedia.org/wiki/Right-to-left_mark. Try removing all occurrences of it from your document using the Replace function (Ctrl-R).
Find: \x200F
Replace: (leave empty)
Mode: Escape sequences
While you are at it, try removing all eventual occurrences of https://en.wikipedia.org/wiki/Left-to-right_mark in the same way.
Solution for Kwrite: Go to View and activate Dynamic Word Wrap or press F10. if you want to solve problem permanently go to settings->configure editor->appearance->General and activate Dynamic Word Wrap.
Try Right Ctrl+Right Shift for RTL and Left Ctrl+Left Shift for LTR.