Przeszukaj pomoc

Unikaj oszustw związanych z pomocą.Nigdy nie będziemy prosić Cię o dzwonienie na numer telefonu, wysyłanie SMS-ów ani o udostępnianie danych osobowych. Zgłoś podejrzaną aktywność, korzystając z opcji „Zgłoś nadużycie”.

Learn More

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

  • 4 odpowiedzi
  • 8 osób ma ten problem
  • 6 wyświetleń
  • Ostatnia odpowiedź od 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.

Wszystkie odpowiedzi (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.