Open file to specific line number from command-line

Oxygen general issues.
earlhood
Posts: 1
Joined: Sun Sep 20, 2015 9:48 am

Open file to specific line number from command-line

Post by earlhood »

Is it possible to start Oxygen from the command-line to open a file to a specific line number?

I have a program that generates reports on XML files that includes line numbers into those files. It would be nice to open oxygen to a file and automatically move cursor to a given line number.

I can do this in Vi:

Code: Select all

vi +56 file.xml
Will open file.xml and put cursor on line 56.
Radu
Posts: 9498
Joined: Fri Jul 09, 2004 5:18 pm

Re: Open file to specific line number from command-line

Post by Radu »

Hi,

Sure, if you are using Oxygen 17.0.
You have an example here:

http://www.oxygenxml.com/doc/versions/1 ... m-cli.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply