HTML files wont open in Chrome
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?
welcome to the notepad++ community, @Giuliano-Garau
what happens if you open cmd and paste this line:
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
find the file
shortcuts.xmland open it in notepad++ for editing.
copy the following line and paste (insert) it anywhere inside the
<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):
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+rto launch chrome with your file.
HI Meta Chuh, thanks for the comment.
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.
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
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
"$(FULL_CURRENT_PATH)"in the shortcut.xml with
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:
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 :)