DownmarkerWPF icon indicating copy to clipboard operation
DownmarkerWPF copied to clipboard

Combine Code/Codeblock?

Open JakeGinnivan opened this issue 13 years ago • 1 comments

We currently have both a Code (uses backticks) and a CodeBlock (Indents by 4 spaces/tab) button on the floating toolbar.

I suggest we collapse these. The rules could be:

If the selection starts mid line and does not go over multiple lines, it should be Code If the selection starts mid line and spans multiple lines, all spanning lines should become a codeblock. If there is no selection, it should be a codeblock

Thoughts? I think having the two is confusing (i had to look at implementation to figure out what it did). At a minimum some tooltips need to be added

JakeGinnivan avatar Jun 18 '12 07:06 JakeGinnivan

I agree they should be collapsed, however I would adjust the last rule:

  • If there is no selection and the cursor is at the start of the line, it should be a codeblock
  • if there is no selection and the cursor is not at the start of the line, it should start code (with backticks)

becdetat avatar Jun 20 '12 11:06 becdetat