Using UltraEdit as a web editor (relative paths)

Using UltraEdit as a web editor (relative paths)

dreamx2k

    Aug 19, 2005#1

    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 :)

    61
    Advanced UserAdvanced User
    61

      Aug 19, 2005#2

      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

      119
      Power UserPower User
      119

        Aug 19, 2005#3

        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.)