Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

Opening .txt in file editor, not Firefox

  • 3 답장
  • 2 이 문제를 만남
  • 2 보기
  • 최종 답변자: cor-el

more options

Hi!

Firefox 91.0.2 on Windows 10.

In the options I have set .txt files to open in Notepad++ (see screenshot). However, this does not work. Clicking a hyperlink to a .txt file still opens it in Firefox.

How can I fix this?

Here is a link to a .txt file for testing: https://www.learningcontainer.com/wp-content/uploads/2020/04/sample-text-file.txt


Possible solutions I found were all on older versions of Firefox and I couldn't get them to work.

Thanks :)

Hi! Firefox 91.0.2 on Windows 10. In the options I have set .txt files to open in Notepad++ (see screenshot). However, this does not work. Clicking a hyperlink to a .txt file still opens it in Firefox. How can I fix this? Here is a link to a .txt file for testing: https://www.learningcontainer.com/wp-content/uploads/2020/04/sample-text-file.txt Possible solutions I found were all on older versions of Firefox and I couldn't get them to work. Thanks :)
첨부된 스크린샷

모든 댓글 (4)

more options

Perhaps I should have explained my purpose for this, in case it helps, or for possible workarounds.

I have a local website which uses .txt files for saving notes. (They are opened and processed further with Javascript). Firefox on Android opens the txt files in an external editor, where I can easily edit them and save them. But on Windows 10 I have some trouble doing this.

글쓴이 Dettol 수정일시

more options

I have "always ask" but the file opens in Firefox. Mozilla did something similar with local pdf files but there is a remedy. I can't find one for text files other than downloading the file and opening it with your editor. There may be a bug report, otherwise you can file one. https://bugzilla.mozilla.org/

more options

If the server sends the text file as text/plain then Firefox will open this file in a tab. You can possibly prefix the link with the view-source: protocol.

You can find these prefs on the about:config page to set what external viewer/editor to use.

  • view_source.editor.args
  • view_source.editor.external
  • view_source.editor.path
more options

cor-el said

If the server sends the text file as text/plain then Firefox will open this file in a tab.

Thanks for your reply.

That's what happens. I wonder why this is not configurable like with other file types.


I was able to add "view-source:" to the links but this did not seem to work. (Nor does the entire protocol seem to work. If I use the test link on http://www.javascriptkit.com/javatutors/links3.shtml nothing happens.)

Still you solved most of my problems. Using the about:config settings I am now able to open the txt file in Firefox, then use the "View Source" (Ctrl+U) option to open the txt with Notepad++.

That's a few more clicks than I'd prefer, but for now it's a decent workaround.

Still hoping for a direct solution, though.

글쓴이 Dettol 수정일시