Using UltraEdit as a web editor (relative paths)

Help with setting up and configuring custom user tools in UltraEdit (based on command line input)

Using UltraEdit as a web editor (relative paths)

Postby dreamx2k » Thu Aug 18, 2005 7:47 pm

Hi everyone :)

This is my first post on this forum and I don't know if anyone has come up with this yet, but I was trying to set up UltraEdit as a web editor to work together with my web server.

The reason I switched to UltraEdit some time ago was that my older editor didn't support any Unicode. However, it had this neat option to set up an external http server, making it easier for web developers to try and run their scripts using a web server installed on their system. Basically what this programme did was that when you pressed a "run"-button it would automatically call the default browser on your system and insert the host name and the path to the file for you. This is, if you have Apache running on "http://localhost", this editor would add something similar to "/private/projects/script.php". The way it did that was to use the DocumentRoot specified in the Apache config file and deduct it from the whole file path.

As this was a very handy feature, I tried to set up UltraEdit to do this for me, using the tool configuration menu - and this is right where I'm stuck at the moment. Is there a way to set up calling of an external programme by specifying a relative path? Also, do you know if there is a way to have your browser run stuff in the same window? Because testing lots of different scripts gets a bit messy at times :P I'm using UltraEdit32 10.20+ and my web server is running on http://localhost. Any help would be greatly appreciated!

Thanks :)
dreamx2k
 

Re: Using UltraEdit as a web editor (relative paths)

Postby bobh » Fri Aug 19, 2005 7:06 am

You can open a specific browser with this command:
Code: Select all
start /B netscp.exe "http://localhost"

Not sure about the best way to set the project directory, though. You might want to use an environment variable which can be accessed with the "%Env:" command.

HTH
User avatar
bobh
Advanced User
Advanced User
 
Posts: 59
Joined: Tue Dec 28, 2004 12:00 am

Re: Using UltraEdit as a web editor (relative paths)

Postby mjcarman » Fri Aug 19, 2005 11:44 am

dreamx2k wrote:Do you know if there is a way to have your browser run stuff in the same window? Because testing lots of different scripts gets a bit messy at times


That's browser-dependent. I'm 99.999% certain you can't do this in IE. In Firefox you can choose between getting a new window, a new tab in the current window, or reusing the current tab/window. I don't know about other browsers (Opera, Maxthon, etc.)
User avatar
mjcarman
Power User
Power User
 
Posts: 123
Joined: Thu Feb 10, 2005 12:00 am


Return to Custom User Tools/Tool Configuration