opening html files in UE, but using the Browser Preview?

opening html files in UE, but using the Browser Preview?

601
Advanced UserAdvanced User
601

    Feb 06, 2006#1

    Is there a way that I can have UE open .html files, but also use the Browser Preview to open files in my default browser? As it is now, when I choose that option, it just opens another file in UE.

    Thanks,
    John

    10
    Basic UserBasic User
    10

      Feb 06, 2006#2

      You probably know much of the following, but I'll provide all the info regarding this just in case. As you know, in your case UltraEdit is associated with HTML files, and this includes affecting the built-in Show File in Browser feature (as you've seen).

      There's an easy way to do what you want, it just takes lots of steps, which I'll outline for you here.

      UE's customized tools solve this problem. You will need to configure a customized tool for each browser you'd like your open file to open in. To do this, go to Advanced, Tool Configuration. For Command Line, give path and filename for the browser you want this tool to use. The hardest one to find is, of course, IE, which I'll provide here:

      "c:\program files\internet explorer\iexplore.exe" "%f"

      The %f tells your tool's command line to open UE's active file. If you look up Command Line in UE's help, there's a lot more info regarding this there.

      Then you have a lot of options. Fortunately, you only need to use a few in this case. Provide a Menu Item Name (IE Browser, for example), check the Windows Program box and the Save Active File box (if I'm working on a file, I want my changes saved before I check out the page in a browser).

      Click the Insert button on the right and that will put your entry in the area at the bottom of the dialog box. If you click the OK button, the dialog box closes but your tool configuration is not saved.

      You can customize the appearance of the toolbar icon by using the Advanced feature to point the tool to an icon. If you can't make .ico files, it appears you can provide a bitmap instead (I have made my own .ico files so I can only guess at the bitmap feature).

      601
      Advanced UserAdvanced User
      601

        Feb 07, 2006#3

        Thank you! This works great, and it's even better than the built in Preview feature because it doesn't create a temporary file.