Skip to content
Advertisement

Configuring Notepad++ to run php on localhost?

I am trying to get the option Run->Launch With Firefox; to open the file I am currently viewing in Notepad++ at http://127.0.0.1:8080/currentfile.php, but instead it just opens to current file directory in Firefox.. I’ve tried to edit the shortcut xml file in the Notepad++ directory, I’ve shut Notepad++ down and edited the XML file with regular Notepad, and when I start Notepad++ back up it does not show the settings I entered.. How can I edit the settings to load localhost rather than the file directory in Firefox?

Advertisement

Answer

well two things

  1. you edited the wrong file , i’m guessing you are using windows vista/7 so real preferences files are in C:UsersuserAppDataRoamingNotepad++

  2. i don’t think that notepad++ has a variable that contains only half of the address

meaning : the variable used now is $(FULL_CURRENT_PATH) == file:///C:/server/htdocs/pages/example.php

so you don’t have any variable that contains only this pages/example.php.

so i think it’s impossible

but just keep the page open and refresh after editing

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement