gcode-syntax icon indicating copy to clipboard operation
gcode-syntax copied to clipboard

[feature request] automatic line numbering

Open Foadsf opened this issue 6 years ago • 2 comments

Hi @robEllenberg you addon was mentioned here on Reddit. I was wondering if you could add automatic line numbering?

Foadsf avatar Apr 04 '19 10:04 Foadsf

I'm open to the idea, though I'm not sure how to add "active" features like line numbering in Notepad++. The UDL plugin was really just for syntax highlighting (and even then is not perfect because of the syntax quirks of the specification itself).

Are you sure automatic line numbering is a necessity for your application? I've found N### style line numbers to be an anti-feature in G-code. Any modern editor (and most modern CNC controls) can show line numbers, and it's often dangerous to jump to an arbitrary numbered line with a subroutine call.

Best, Rob

On Thu, Apr 4, 2019 at 6:21 AM Foad Sojoodi Farimani < [email protected]> wrote:

Hi @robEllenberg https://github.com/robEllenberg you addon was mentioned here on Reddit https://www.reddit.com/r/CNC/comments/b9abr8/free_gcode_editors_with_automatic_line_numbering/ek3a5qz?utm_source=share&utm_medium=web2x. I was wondering if you could add automatic line numbering?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/robEllenberg/gcode-syntax/issues/5, or mute the thread https://github.com/notifications/unsubscribe-auth/ABJ6PKNYoWh91F_p8qtSz9xXqwWk1kUPks5vddIpgaJpZM4cccX_ .

robEllenberg avatar Apr 04 '19 17:04 robEllenberg

Dear @robEllenberg thanks for the reply. I have actually realized that my machine accept G-code even without the line numbers. But considering that finally I want to to share this G-code with a producer I want to be sure I have followed all the proper conventions.

Foadsf avatar Apr 05 '19 10:04 Foadsf