X
Tap here to go to the mobile version of the site.

Safely share files online with encrypted links that “self-destruct.” Try Firefox Send.

Give hackers a swift kick in the cookies. See if your data has been affected by a breach with Firefox Monitor. Try it now.

Access your history, passwords and open tabs wherever you are with Sync. Connect a second device.

Support Forum

Can I specify how text files (.txt) are opened in Firefox 62.0.3?

Posted

I don't see an option for specifying how text files are opened. I do see instructions for what looks like a wider range of file types in this article: https://support.mozilla.org/en-US/kb/applications-panel-set-how-firefox-handles-files, but think it must be from a previous version of Firefox. Screenshot below shows my available options.

Can anyone help?

I don't see an option for specifying how text files are opened. I do see instructions for what looks like a wider range of file types in this article: https://support.mozilla.org/en-US/kb/applications-panel-set-how-firefox-handles-files, but think it must be from a previous version of Firefox. Screenshot below shows my available options. Can anyone help?
Quote

Additional System Details

Installed Plug-ins

  • Shockwave Flash 31.0 r0

Application

  • User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0

More Information

jscher2000
  • Top 10 Contributor
8098 solutions 66179 answers

Since text is a web-native format, Firefox normally will display it in a tab unless a website instructs Firefox to handle it as a download (Content-Disposition: attachment) or the site doesn't identify it using the text/plain content type.

What is it that you want to do?

Also, could you try attaching the screenshot again? It didn't work the first time.

Since text is a web-native format, Firefox normally will display it in a tab unless a website instructs Firefox to handle it as a download (Content-Disposition: attachment) or the site doesn't identify it using the text/plain content type. What is it that you want to do? Also, could you try attaching the screenshot again? It didn't work the first time.
Was this helpful to you?
Quote

Question owner

Sorry, here's the screen shot again. I am trying to get text files to open in Notepad ++. If they open in the native format columns are not lining up properly and the file is very hard to read.

Sorry, here's the screen shot again. I am trying to get text files to open in Notepad ++. If they open in the native format columns are not lining up properly and the file is very hard to read.
Was this helpful to you?
Quote
jscher2000
  • Top 10 Contributor
8098 solutions 66179 answers

Helpful Reply

Hmm, I think you may need to save and open them from disk.

Hmm, I think you may need to save and open them from disk.
Was this helpful to you? 1
Quote

Question owner

Well, that's disappointing. Thanks for your help.

Well, that's disappointing. Thanks for your help.
Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
16921 solutions 152808 answers

If a file isn't lining up properly then this can mean that a proportional font is used to display the file and not a fixed font or that there are tab characters in the file that aren't expanded like is expected. You can pref a link with the view-source: protocol to force opening a text file in a Firefox tab or use "View Page Source" in the context menu. You can specify to use an external source viewer by modifying some prefs on the about:config page.

You can find these prefs on the about:config page to set what external viewer/editor to use if you invoke "View Page Source".

Text files send as text/plain are always opened in a Firefox tab and would require to use the right-click context menu (Save Link As) if you would want to save the file.

If a file isn't lining up properly then this can mean that a proportional font is used to display the file and not a fixed font or that there are tab characters in the file that aren't expanded like is expected. You can pref a link with the view-source: protocol to force opening a text file in a Firefox tab or use "View Page Source" in the context menu. You can specify to use an external source viewer by modifying some prefs on the <b>about:config</b> page. You can find these prefs on the <b>about:config</b> page to set what external viewer/editor to use if you invoke "View Page Source". * view_source.editor.args * http://kb.mozillazine.org/view_source.editor.external * http://kb.mozillazine.org/view_source.editor.path Text files send as text/plain are always opened in a Firefox tab and would require to use the right-click context menu (Save Link As) if you would want to save the file.
Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.