😯平常不會特別注意到閱讀速度,單純為了美觀使用(?)
但這樣一講確實code block裡的文字閱讀起來會吃力一點
@leemiyinghao: 嗯🤔⋯⋯我可以理解code block會讓人有排版自由的感覺⋯⋯ 但我也會擔心這樣做會增加讀者的閱讀負擔⋯⋯ ``` 例如這段文字使用 code block 書寫。 實際上不會看不懂,但閱讀速度不會跟正常撰寫相同。 這段文字並沒有特別長,但大部分時候人眼的注意力會分散到上下行,句子之間沒有很明顯的區隔。 而搭配分段(paragraph)會更明顯一點。 正常分段的間距應該是 0.3~0.6 倍的行高(line height)左右。如果使用完整行高,在接續閱讀時會很明顯感受到「這裡有一段空白」。 ``` 寫到這邊我才意識到另一個問題。在code block內書寫自然語言的時候會需要很刻意避開英文跟數字來避免閱讀困難⋯⋯🫠 我猜可能有必要把code block跟一般文字的使用區別拉得再更開一點⋯⋯吧,至少要避免使用者寫了一大段之後才發現這個功能並不適合用來撰寫文章🤔
這邊我放一段純英文文章,應該能更明顯感受到閱讀負擔的部分。
The Proud Rose
Once upon a time, in a desert, there lived a rose who was very proud of her beautiful looks. Her only complaint was that she grew next to an ugly cactus.
Every day, the rose would insult the cactus on his looks, while the cactus remained quiet. Other plant...