• Login
Community
  • Login

HTML files wont open in Chrome

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
5 Posts 2 Posters 17.0k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G
    Giuliano Garau
    last edited by Feb 5, 2019, 7:11 AM

    Somehow after installing NOTEpad++ on windows 10 I cant open html files anymore with the chrome browser.

    First of all, there are no standard RUN shortcuts in the RUN menu anymore. If I make a chrome one, it will OPEN the browser but NOT load the file into it. ANy ideas how this can be fixed?

    1 Reply Last reply Reply Quote 0
    • M
      Meta Chuh moderator
      last edited by Meta Chuh Feb 5, 2019, 11:01 AM Feb 5, 2019, 10:50 AM

      welcome to the notepad++ community, @Giuliano-Garau

      what happens if you open cmd and paste this line:
      "%ProgramFiles(x86)%\Google\Chrome\Application\chrome.exe" "%AppData%\Notepad++\shortcuts.xml"
      into cmd, and press enter to run it.

      does it open an empty chrome or does it display your shortcuts.xml ?

      please also check that everything is set up properly in notepad++, using this guide:


      step by step guide - how to add “Launch in Chrome” to notepad++:

      • open the folder %AppData%\Notepad++\ in explorer

      • find the file shortcuts.xml and open it in notepad++ for editing.

      • copy the following line and paste (insert) it anywhere inside the <UserDefinedCommands>section

      <Command name="Launch in Chrome" Ctrl="yes" Alt="yes" Shift="yes" Key="82">chrome "$(FULL_CURRENT_PATH)"</Command>
      
      • now your shortcuts.xml should look like the screenshot below (plus your other user defined commands):

      Imgur

      • save shortcuts.xml and restart notepad++
        (exit and reopen notepad++ to activate your shortcut changes to the run menu)

      • if you now run “launch in chrome” on any file, chrome will open and display your file:

      note: your file has to be saved before you can open it in chrome.
      note: you can also use the keyboard shortcut ctrl+alt+shift+r to launch chrome with your file.

      1 Reply Last reply Reply Quote 3
      • G
        Giuliano Garau
        last edited by Feb 6, 2019, 12:09 AM

        HI Meta Chuh, thanks for the comment.

        Pasting
        “%ProgramFiles(x86)%\Google\Chrome\Application\chrome.exe” “%AppData%\Notepad++\shortcuts.xml”
        inside the command prompt doesnt do anything. Cant find the path.

        Ive followed your step by step guide but when I open notepad and press ctrl+shift+alt+r it gives the following error.

        https://ibb.co/D7ffmn5

        M 1 Reply Last reply Feb 6, 2019, 2:29 AM Reply Quote 0
        • M
          Meta Chuh moderator @Giuliano Garau
          last edited by Meta Chuh Feb 6, 2019, 2:35 AM Feb 6, 2019, 2:29 AM

          @Giuliano-Garau

          strange, “%ProgramFiles(x86)%\Google\Chrome\Application\chrome.exe” is the default folder for google chrome web browser on windows 10 64 bit.

          are you on a 32 bit windows 10 ?
          then your path should be %ProgramFiles%\Google\Chrome\Application\chrome.exe

          could you also post your notepad++ debug information here ?
          (go to the menu ? > debug infoand copy/paste the debug information here)

          could you please check where your chrome.exe is located on your machine ?
          for example if you right click on your chrome desktop icon and select properties, it will show you the target (path to chrome.exe)

          if you have found out where the exe is on your machine, you have to replace the word chrome left to "$(FULL_CURRENT_PATH)"in the shortcut.xml with your_drive:\your_path_to\chrome.exe

          1 Reply Last reply Reply Quote 3
          • G
            Giuliano Garau
            last edited by Feb 6, 2019, 5:57 AM

            Hmmm, odd. It works now. I did the same thing (copy the path ot chrome.exe) yesterday and it worked by ONLY opening Chrome and not the html page inside the browser.

            Yeah, actually chrome is not located in either of them. Im using Windows 10 64bit.

            Chrome.exe was actually located here:
            C:\Users\fine\AppData\Local\Google\Chrome\Application

            Here is my debug info:
            Notepad++ v7.6.3 (64-bit)
            Build time : Jan 27 2019 - 17:16:47
            Path : C:\Program Files\Notepad++\notepad++.exe
            Admin mode : ON
            Local Conf mode : OFF
            OS : Windows 10 (64-bit)
            Plugins : DSpellCheck.dll mimeTools.dll NppConverter.dll

            Anyway working for now, hope it will keep working otherwise I will be back . Thanks Meta Chuc :)

            1 Reply Last reply Reply Quote 2
            3 out of 5
            • First post
              3/5
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors