One solution could be to write the code without line numbers and then write a simple Python script to add line numbers. I want the editor that If I remove a line from the middle or add new ones it automatically updates line numbers. This is the most annoying issue with gcode writing.
Unfortunately the available FOSS ones are either for simulation or they are plugins / addons for the existing text editors to add syntax highlighting.
Pages are full of advertisement teams suggesting users to download 30day trials of their expensive software.
Searching the internet for Free g-code editors, does not bring many helpful results. Piracy of any kind is not permitted and may cause a permanent ban Other subreddits you may be interested in: Meme posts that are not funny may result in a permanent ban and possible curse to post author. Memes are not permitted, unless they are CNC related AND funny. Please use the stickied sales and services megathread. Sales and or services posts are not permitted. Final decision is made by the community by way of reporting. Other considerations that may cause the removal of the post including lack of engagement with the community or the author has a history of self promotion. Posts that do not meet this criteria will be removed without question. Posts of self promotion MUST include original content directly from the post author and have been created with reasonable effort. Name calling or belittling will not be tolerated and may result in a permanent ban. Please be respectful of others when posting. If it appears the author has done little or no research it may be removed for low effort. Posters are also expected to have done some basic research on their own. Post authors are required to stay engaged with the community.
Any posts without this information may be removed and only restored when the information is supplemented. You must include as much useful information as possible when asking for help or advice. Examples of this include unsafe instructions and unsafe modes of machine operation. No posts or comments that encourages unsafe acts.