Open Rune-Christensen opened 1 year ago
@Rune-Christensen do you mean a setting that it removed it when you open a program in the editor or a batch functionality that removed from all files in the workspace? I would assume the latter is something that could be accomplished with scripting to get rid of all the numbers in all files and be done with it.
Hi @phaumer I mean a setting, just as there currently is a setting to choose where the line numbers should be listed; column 1, 73 or 1 and 73 Yes, I could write a script that could remove it from all files, that's not what we are looking for. Regards, Rune
Hi @Rune-Christensen,
I do not think this specific functionality must be carried by Z Open Editor.
I suggest that you consider an extension like Regex Replace on Save. This extension makes it possible to apply a transformation of the source text at the time of saving by applying regular expressions.
It may target a particular language for the selection of regular expressions to be executed. For the majority of Mainframe language, the numbering is brought by columns 73 to 80. For Cobol, the numbering is brought by columns 1 to 6.
Example of regular expression to break down a cobol line: ^(.{0,6})(.{0,66})(.{0,8})(.*)$`
Hi @FALLAI-Denis
As Z Open Editor already contains this functionality, through the unnumber function. I think it is reasonable to request more usage of the function, and enabling these features through this extension, instead of a lot of people/organisations having to implement additional functionality, through other extensions.
Regards, Rune
As user of COBOL, REXX and COBOL Check code in Git. I would like the option to always remove numbering from my code. So I am able to add code, to my Git repositories, without getting differences all over, because of new numbering in my code.