我有一个存储库,其中有一堆 RTL(从右到左)文件。我保留这个存储库的目的是在将来将其公开并供人们为其做出贡献。 (这就是为什么我使用 GitHub 而不是将其保存在本地计算机上。)
但是,我注意到只有 LTR 文件格式正确; RTL 文件最终看起来很奇怪。我知道 .md
文件可以进行调整,以便它们可以支持 RTL 模式,但是普通文件(例如 RTL 文本文件、RTL 源代码等)呢?
最佳答案
2022 年 1 月更新:支持!
Editor support for right-to-left languages
Right-to-left languages are now supported natively in text editors for Markdown files, comments, and gists.
Do you think they could be even better? Let us know how we can improve by contributing to our discussion.
Editor support for right to left languages:
2021 年 7 月:这不仅是常规源代码的问题,也是问题和讨论的问题。
这是请求的since 2016 in this thread :
Not all disscussions on github are in English and some like Persian, Hebrew or Arabic are written from right to left.
It would be easy to add a checkmark to the editor to switch the direction from LTR to RTL and then represent that piece of text in UI from right to left.This would dramatically improve the usability and enhance UX.
GitHub 在 github/feedback
discussion 2894 中观看了此内容,但尚未支持。
十一月2021:这适用于 Markdown 文档:
Right-to-left language support
Right-to-left languages are now supported natively in
- Markdown files,
- issues,
- pull requests,
- discussions, and
- comments.
所以...不是任何文件,但这是一个进步。
关于github - GitHub 有没有办法支持从右到左的文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68539192/