Live preview: Better treatment of code blocks. Code Wrap, Horizontal Scroll and Smart Indent

Use case or problem

Currently Code blocks show the code in a wrapped text format, which makes it harder for codes having long lines/comments to read.

Proposed solution

It would be great to have an option for wrap text/scrollbar so that longer codes can be easily read. Also an option to keep the editor width using would be great.

Related feature requests

Allow better rendering of codeblocks inside indented lists. The code formatting of fences breaks when codeblocks are added at an indentation in lists.

5 Likes