Page 1 of 1

Open File by clicking on link inside existing file

Posted: Fri Jun 27, 2003 12:54 pm
by haggis
When editting a suite of progs written a while back, it would be useful to be able to click on the linking text in the existing file and automatically open the linked file.

Going through the current "open file" etc five step procedure - by the time I get the next file open I can't remember why I wanted to open it in the first place! My ****** store of the maximum variables got overloaded.

Qedit for DOS allows it - why doesn't Textpad - the best text edittor in Windoze?

Posted: Sat Jun 28, 2003 7:46 am
by bbadmin
You're quite right, TextPad should be able to do this - and it can! You can open any file named in a document by selecting it and typing Ctrl+Shift+G. This executes the FileGoTo command, which is not on a menu.

Keith MacDonald
Helios Software Solutions

So it does! BUT ....

Posted: Mon Jun 30, 2003 7:08 am
by haggis
Thanks for that Keith - it works ALMOST all the time.

For example ("connect.php") - highlighting connect.php works fine but:-
if the line of code says :-

include("connect.php"); it throws an error.

Any suggestions?

Haggis

Posted: Mon Jun 30, 2003 9:10 am
by bbadmin
Include statements are treated specially: if you right click one, you get an option to open the file on the context menu. However, TextPad's parser does not correctly handle the syntax you've used, so it's confused by the brackets. If you change it to the following, both TextPad and PHP will be happy:

include "connect.php";

We'll address this issue in a future release.

Keith MacDonald
Helios Software Solutions

Posted: Mon Jun 30, 2003 10:12 am
by haggis
OK Keith, thanks for that.