MacDownApp/macdown

Add a line wrapping option for code blocks

Open

#1,136 建立於 2019年12月30日

在 GitHub 查看
 (1 留言) (2 反應) (0 負責人)Objective-C (930 fork)batch import
enhancementgood first issue

倉庫指標

Star
 (7,686 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

I'd like there to be an option to have code blocks be line wrapped. Maybe a check box for it in Rendering -> "Syntax highlighted code block" next to "Show line numbers" etc.?

If I try hard enough I can dig through the css files in Contents/Resources/Prism/themes and change "white-space: pre;" to "white-space: pre-wrap;", but doing so breaks the code signature of the app. And that's not a very nice way to do it anyway.

貢獻者指南