Този сайт ще има ограничена функционалност, докато се извършва тече неговата поддръжка. Ако дадена статия не може реши проблема ви и искате да зададете въпрос, нашата общност е готова да ви помогне на @firefox в Twitter и /r/firefox в Reddit.

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

How to add new MIME-type

  • 2 отговора
  • 1 има този проблем
  • 2 изгледи
  • Последен отговор от cor-el

more options

I have a one-off problem I hope someone can help me with. I use an old version of Firefox (3.6.28) because I use TiddlyWiki (v2.8.1) which is a self-modifying html file. TW uses javascript to write to local disk, which has been deemed unsafe and those features removed in modern builds.

I use these files to keep all of my development notes in one place. In my notes I have links to various code fragments, mainly in Python. When I click on those links, Firefox opens the file in another tab and displays it as text.

I'd like to add a MIME-type to Firefox to tell it to open .py files using Sublime Text. Is there a way to do that?

Paul

I have a one-off problem I hope someone can help me with. I use an old version of Firefox (3.6.28) because I use TiddlyWiki (v2.8.1) which is a self-modifying html file. TW uses javascript to write to local disk, which has been deemed unsafe and those features removed in modern builds. I use these files to keep all of my development notes in one place. In my notes I have links to various code fragments, mainly in Python. When I click on those links, Firefox opens the file in another tab and displays it as text. I'd like to add a MIME-type to Firefox to tell it to open .py files using Sublime Text. Is there a way to do that? Paul

Всички отговори (2)

more options

Unfortunately for here is firefox End user forum that can only can help with newer version of firefox not older versions because of security problems. If your using a specific MIME you should contact the site or creator to give further assistance to using it.

more options

If you set .py files in Windows File Explorer to open by default with Sublime Text then Firefox would offer this choice in an open with dialog. With links to local files this can be more challenging because there is no server involved that can send a file with a specific MIME (content) type. Maybe use server software and localhost.

Note that you can use the Scratchpad to take notes.