Sublime Forum

Line numbering

#1

Hello

I need a package or anything that can make this for marked lines

0 Likes

#2

There is nothing people can do to modify line numbers iirc. There is just no API.

0 Likes

#3

The S840D language support package provides a function called “Update Block numbers”, which updates the Nxxx of the whole file.

Do you need this feature to add/update block numbers for selected lines only?

Is it for G-Code block numbers only or a general feature request.

1 Like

#4

oh I think this function is enough for me

thanks

0 Likes

#5

May star block and step size keep fixed or do you need any input / setting.

I could query for start block and step size by two input controls.

I also think about step size as a setting maybe project setting.

0 Likes

#6

Just pushed CNC S840D language support v1.3.3 with ability to renumber selected blocks as you requested.

The S840D: Add/Update block numbers command now asks for the “First Block Number”.

You can use it or leave empty.

If empty, it looks for "s840d_gcode_block_start": ... in one of ST’s settings files (syntax/user/project) or uses the default value 0. You can set "s840d_gcode_block_increment": ... to the step width for block number incrementing.

0 Likes