Open File by clicking on link inside existing file

Ideas for new features

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
haggis
Posts: 3
Joined: Fri Jun 27, 2003 12:46 pm
Location: Malaysia
Contact:

Open File by clicking on link inside existing file

Post 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?
The views expressed do not necessarily concur with the views of Lengkap Matang Sdn Bhd
User avatar
bbadmin
Site Admin
Posts: 816
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Post 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
haggis
Posts: 3
Joined: Fri Jun 27, 2003 12:46 pm
Location: Malaysia
Contact:

So it does! BUT ....

Post 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
User avatar
bbadmin
Site Admin
Posts: 816
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Post 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
haggis
Posts: 3
Joined: Fri Jun 27, 2003 12:46 pm
Location: Malaysia
Contact:

Post by haggis »

OK Keith, thanks for that.
Post Reply