jupyter / help

:sparkles: Need some help or have some questions? Please visit our Discourse page.
https://discourse.jupyter.org
291 stars 97 forks source link

file type associations #168

Open mdering opened 7 years ago

mdering commented 7 years ago

hi jupyter I use the editor functionality pretty extensively. Currently when you open a file of some extensions, it automatically highlights the syntax. For my .m files it uses mathematica, but I'd like it to use octave instead, by default. How can I change this?

takluyver commented 7 years ago

The 'language' menu in the editor lets you pick the highlighting language. For now, you'll need to change it each time you open a file. When notebook 5.1 is out, it will remember changes you make for all files with the same extension (jupyter/notebook#2418).

mdering commented 7 years ago

I noticed .m files are associated with octave and Mathematica but it always defaults to Mathematica because it comes first. A way to edit this would be great On Thu, May 11, 2017 at 6:44 AM Thomas Kluyver notifications@github.com wrote:

The 'language' menu in the editor lets you pick the highlighting language. For now, you'll need to change it each time you open a file. When notebook 5.1 is out, it will remember changes you make for all files with the same extension (jupyter/notebook#2418 https://github.com/jupyter/notebook/pull/2418).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jupyter/help/issues/168#issuecomment-300752694, or mute the thread https://github.com/notifications/unsubscribe-auth/ABME7vUDzOWH3NCCieNi8NSwZibPOxbvks5r4uZ4gaJpZM4NXIpm .

--

Matt

takluyver commented 7 years ago

I think the mechanism coming in 5.1 should work for that.