github - GitHub 有没有办法支持从右到左的文件?

标签 github right-to-left

我有一个存储库,其中有一堆 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:

https://i0.wp.com/user-images.githubusercontent.com/8298818/151826748-d3401e37-3b7f-45df-9d02-a1bbfea4c32d.gif?ssl=1


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.

Mixed RTL and LTR languages -- https://i1.wp.com/user-images.githubusercontent.com/3369400/140957639-7bf86607-878d-42bf-a791-4a5c5f680310.png?w=893&ssl=1

所以...不是任何文件,但这是一个进步。

关于github - GitHub 有没有办法支持从右到左的文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68539192/

相关文章:

python - 单元测试 python how tos

git - 如何使 GitHub 项目成为存储库级别更大解决方案的一部分?

html - 阿拉伯文字显示不正确

windows-8 - 如何在 Popup.MessageDialog (Metro) 中使用从右到左

linux - 通过 Yaourt Manjaro 错误安装 Gitkraken

git - 如何更改我的 Github Pages 默认 index.html 位置?

android - 如何使TableRow从右到左

android - 如何为android textview中的每一行设置引力?

java - 有什么方法可以检测 Java 中的 RTL 语言吗?

github - github api v3可以从master以外的特定分支获取文件内容