Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Sykje yn Support

Mij stipescams. Wy sille jo nea freegje in telefoannûmer te beljen, der in sms nei ta te stjoeren of persoanlike gegevens te dielen. Meld fertochte aktiviteit mei de opsje ‘Misbrûk melde’.

Mear ynfo

Dizze konversaasje is argivearre. Stel in nije fraach as jo help nedich hawwe.

Opening .txt in file editor, not Firefox

  • 3 antwurd
  • 2 hawwe dit probleem
  • 2 werjeftes
  • Lêste antwurd fan 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 :)
Keppele skermôfbyldingen

Alle antwurden (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.

Bewurke troch Dettol op

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.

Bewurke troch Dettol op