Join the AMA (Ask Me Anything) with Firefox leadership team to talk about Firefox priorities in 2024. Mark your calendar! Thursday, June 13, 17:00 - 19:00 UTC.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

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

  • 4 trả lời
  • 8 gặp vấn đề này
  • 6 lượt xem
  • Trả lời mới nhất được viết bởi 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.

Tất cả các câu trả lời (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.