搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Is editing a locally available html file possible from within Firefox ?

more options

I use FF 45.0 to open a locally available and rather simple static html file. Everything displays well. I can view the document's html source within firefox, but can I edit it ? If so how exactly ?

I use FF 45.0 to open a locally available and rather simple static html file. Everything displays well. I can view the document's html source within firefox, but can I edit it ? If so how exactly ?

被選擇的解決方法

Once upon a time, the Mozilla Suite included an HTML editor, along with an email program. But when Firefox was split out from the suite into a stand-alone browser, that feature was not included with Firefox.

Regarding the debugger, it sure would be convenient if I could edit during debugging. I don't know whether anyone is planning to add that. Is it included in the Firebug extension? http://getfirebug.com/

從原來的回覆中察看解決方案 👍 1

所有回覆 (8)

more options

Note: I am NOT asking about html, rather about the FF functionality to edit that file.

more options

Hey!

If you right click with your mouse and go to inspect element, you will be able to view the code. Within the style editor you can edit the stylesheet. There is also a debugger where you can edit html files.

The edits you make within this function on Firefox will not change the local file and will also not be saved. This function is available on any website you visit.

Regarding a function within Firefox that changes local files, I am not sure it exists. I personally haven't found it yet.

Hope this helps!

由 Laura92 於 修改

more options

Thanks Laura. I was familiar with the "Inspect Element" capability. I really wonder why the debugger mode does not directly allow at least minor edits (and immediate rendering on screen) of a locally opened html file. After all it can be done with JS relying on the scratchpad.

.. or I'm missing something completely...

Let's see if somebody can wisen me up on that. Cheers. -ced.

more options

Hi Cbhihe,

Even though a browse has the debugging functionality (and many plugins to support this), (use F12 BTW, it's the shortcut to those tools), the application is called a "Browser" because it does just that - a Read Only tool to access the web, even if the file is local to your computer.

If you want to make changes while actively viewing the HTML file, you can use Adobe Dreamweaver, or similar tools, as it was designed for such an occasion.

Hopefully this helps!

more options

選擇的解決方法

Once upon a time, the Mozilla Suite included an HTML editor, along with an email program. But when Firefox was split out from the suite into a stand-alone browser, that feature was not included with Firefox.

Regarding the debugger, it sure would be convenient if I could edit during debugging. I don't know whether anyone is planning to add that. Is it included in the Firebug extension? http://getfirebug.com/

more options

professordns said

"... the application is called a "Browser" because it does just that - a Read Only tool to access the web, even if the file is local to your computer." "If you want to make changes while actively viewing the HTML file, you can use Adobe Dreamweaver, or similar tools, as it was designed for such an occasion."

Thanks, I really didn't know. Very helpful and completely wrong in the case of FF of course. Sorry, I don't do pay-ware, much less Adobe-ware. I do FOSS exclusively.

由 Cbhihe 於 修改

more options

jscher2000 said

Once upon a time, the Mozilla Suite included an HTML editor, along with an email program. But when Firefox was split out from the suite into a stand-alone browser, that feature was not included with Firefox. ...

@jscher: That is exactly what I remembered. I had used that html editor and found it very handy for small editing adjustement.

As for Firebug, I plan on not having it anywhere close to my boxes. I am in the process of torifying my setup. In that area add-ons are generally an iffy proposition and FF's config. gives enough of a headache already.

Thanks.

more options

Cbhihe said

Sorry, I don't do pay-ware, much less Adobe-ware. I do FOSS exclusively.

Maybe: http://www.bluegriffon.org/