Book a Demo

Author Topic: Text editor with line positioning  (Read 4992 times)

Stringer

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Text editor with line positioning
« on: September 26, 2007, 10:35:36 pm »
I use UEStudio as my text-editor for PHP files and I was wondering, is it possible to use the line positioning feature with EA? I mean you can give the line number at the command line if you specify the filename too. It goes like this:

uestudio.exe filename.php/5
OR
uestudio.exe filename.php -l5

Where 5 is the desired line number.

Now is it possible to launch the editor from EA like that?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Text editor with line positioning
« Reply #1 on: September 27, 2007, 04:00:00 am »
Don't know. Take a look at the Custom Tools section of the menu. You can specify parameters that will be passed to the tool. Could you use this to solve your problem?
No, you can't have it!

Stringer

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Text editor with line positioning
« Reply #2 on: September 27, 2007, 04:51:17 am »
You mean the Tools|Customize and Tools there? Where the Notepad is defined by default?

That doesn't help because you cannot pass the source code filename nor line number to the tool. For some silly reason it supports only ID/GUID/etc infos.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Text editor with line positioning
« Reply #3 on: September 27, 2007, 05:07:35 am »
Yes, that's what I was thinking of.

Off hand I don't know if there's anything else you can do. I don't think defining a quoted string for your source code editor would work, since you'd likely not be able to supply a parameter at invocation time, and the quoted string might not handle run-time parameter values anyway.

Sigh...

Perhaps someone else has an insight here.
No, you can't have it!

Stringer

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Text editor with line positioning
« Reply #4 on: September 27, 2007, 11:46:02 am »
I guess I have to then fill a feature request for adding the proper parameter support to the Tools.

Anyway, another thing.. I tried to add a link to a PHP file at some element, but when I click launch-button it does nothing. What should I do to make it open at the text editor (with or without lines)? I mean I want to add links to some sources that have no classes and thus cannot be accessed thru the regular channels.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Text editor with line positioning
« Reply #5 on: September 27, 2007, 01:12:51 pm »
Off hand I don't know what you can do, or even if you can to anything at all with this.

Have you been setting the Tools | Options | Source Code Engineering | PHP | Editor field?
No, you can't have it!

Stringer

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Text editor with line positioning
« Reply #6 on: September 27, 2007, 08:42:57 pm »
Yea, but I think that is for the "View source code"-function rather than for the links.

And back to the line numbers.. You wouldn't know if there is a way to get the line number using the automation interface do you? I tried to search suchs property or function yesterday, but I really didn't find anything else but the filename.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Text editor with line positioning
« Reply #7 on: September 27, 2007, 08:58:46 pm »
The editors in the options will only open to the file, not the line.

No, line numbers are not available through the automation interface as EA doesn't store them.