macdown icon indicating copy to clipboard operation
macdown copied to clipboard

Add line numbers

Open jd-boyd opened this issue 10 years ago • 14 comments

An option to turn on a display line numbers on the left would be nice.

jd-boyd avatar Jun 27 '14 15:06 jd-boyd

I too think this would be useful. At the moment, if there are rogue carriage returns when copying text from elsewhere, then you cannot easily tell in MacDown.

sdjmchattie avatar Jan 06 '16 11:01 sdjmchattie

This is a must. Moreover, does it have support for Commenting Syntax?

Comments + Line Numbering will make it Collaboration Friendly.

Thank You.

RoyiAvital avatar Apr 28 '16 15:04 RoyiAvital

@RoyiAvital There is no comment syntax in MarkDown

sdjmchattie avatar Apr 28 '16 15:04 sdjmchattie

I think I saw something like that in other MarkDown applications.

I think CommonMark has one. It would be great to support CommonMark as well.

RoyiAvital avatar Apr 28 '16 18:04 RoyiAvital

HTML comments work. Look what happens to this code:

one

<!--
comments
can
go
here
 -->

two

one

two

Jmuccigr avatar Apr 29 '16 15:04 Jmuccigr

I think this would be useful also. It's very kind of you to add this enhancement.

marrtinol avatar Sep 24 '16 23:09 marrtinol

Yes, other markdown editors, even onine, show line numbers as well as striped tables for code blocks. Plz add. :-)

paulbhartzog avatar Oct 10 '16 13:10 paulbhartzog

+line numbers

grimwinoleader avatar Oct 28 '16 22:10 grimwinoleader

In the future @CarlKing5019 @paulbhartzog @grimwinoleader, please just click this thumbs up button

screen shot 2016-10-28 at 5 59 06 pm

instead of making a new comment.

aaronraimist avatar Oct 28 '16 23:10 aaronraimist

As a stop-gap alternative to adding line numbers, it would be nice to have the current line & column numbers displayed at the bottom (next to the word counts perhaps?).

This might also be a helpful stop-gap measure for #544 (vertical ruler).

Below is a small screenshot from BBEdit showing what I mean. This feature is common in many plain-text editors.

screen shot 2017-03-08 at 09 55 56

cederberg avatar Mar 08 '17 09:03 cederberg

No further updates? Such a disappointment.

reorx avatar Mar 04 '19 08:03 reorx

This is the one missing feature for me. Super useful when eg; making edits based on a pull request review. Hop to line number would be nice too.

iamthebot avatar Oct 18 '19 18:10 iamthebot

any progress in more than 5 years? it's "sine qua non" for sure. please...

dr-norton avatar Nov 30 '19 18:11 dr-norton

Let's pull a https://github.com/gkoberger/stacksort/pull/4#issuecomment-747656340 here..

iwan-uschka avatar Feb 03 '21 08:02 iwan-uschka