<p></p>
<p>Offering only remove or close would prevent any LTR code to be edited in Geany just because some text in the file is RTL.</p>
<p>Remember its entirely valid for at least comments and strings to have RTL content in many/most programming languages.</p>
<p>And just testing on opening is insufficient as you demonstrated by pasting such text.</p>
<p>Possibly a better way would be for someone to provide a plugin to scan for such things and indicate where they occur (maybe by highlighting) so the user can ensure they only occur inside legal places.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2981#issuecomment-961773703">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ72S2N5I6ZD53OHJO3UKOVCDANCNFSM5HNK77TA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AAIOWJ5ZAJRBA7C54O45GR3UKOVCDA5CNFSM5HNK77TKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHFJYBBY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2981#issuecomment-961773703",
"url": "https://github.com/geany/geany/issues/2981#issuecomment-961773703",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>