This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Hierdie gesprek is in die argief. Vra asseblief 'n nuwe vraag as jy hulp nodig het.

What is the HTML code for the Firefox to open an HTML file not in the browzer but in the notepad?

  • 4 antwoorde
  • 8 hierdie probleem
  • 1 view
  • Laaste antwoord deur toolfree

more options

Firefox opens any HTML file from a location at my machine in Firefox window by <a href="//C:\Documents and Settings\Home\Desktop\File.html">. But I'd like to edit this file in the Notepad. There should be some protocol like "edit:" or "notepad:" I thought.

Simply adding these words to the line <a href="edit://C:\Documents and Settings\Home\Desktop\File.html"> causes an Alert message: "Firefox doesn't know how to open this address, because the protocol (edit) isn't associated with any program." Shall I add a new protocol? Please help.

Firefox opens any HTML file from a location at my machine in Firefox window by <a href="//C:\Documents and Settings\Home\Desktop\File.html">. But I'd like to edit this file in the Notepad. There should be some protocol like "edit:" or "notepad:" I thought. Simply adding these words to the line <a href="edit://C:\Documents and Settings\Home\Desktop\File.html"> causes an Alert message: "Firefox doesn't know how to open this address, because the protocol (edit) isn't associated with any program." Shall I add a new protocol? Please help.

All Replies (4)

more options

Sorry, I can't follow your train of thought.
Firefox displays HTML files - to see the source code from within Firefox, right-click the page and select View Page Source. If you want to use Notepad instead of the internal source viewer, see these articles.
http://kb.mozillazine.org/View_source.editor.external
http://kb.mozillazine.org/View_source.editor.path

more options

Thank you the-edmeister, works like charm being set up for all web-pages. The View_Source choice option has added a clue, but haven't ultimately solved my problem. Here is the situation: when from a web-page I click a link to an XLS file it opens through MS Excel where I can edit and save new file. The question is: how can I open from Firefox (a web-page) an HTML or TXT file so that it won't be opened in Firefox as a web-page but in a way that I can edit and save it. Is there a choice of "Open with" for the file in Firefox which I can implement in HTML code or some other method for this? Thank you!

more options

Firefox is not an HTML editor. If you need to edit the code of a web page then you need to use a text editor like Notepad or an HTML editor like KompoZer (http://kompozer.net/). Files that are send a text/html are always rendered as web pages, so you need to use View > Page Source to inspect or edit the code. For the latter you need to set the above mentioned prefs to make View > Page Source use that external program.

See also:

more options

Got it. The last question I guess woould be how to open the EXE file through Firefix in a Run mode, not in a Save, or Download? Thanks a lot for your input, it realy helps.