jupyter / notebook

Jupyter Interactive Notebook
https://jupyter-notebook.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11.78k stars 5k forks source link

[feature request] clicking on matlab .m files should open them with syntax highlighting #3642

Open renxida opened 6 years ago

renxida commented 6 years ago

As titled; notebook info:

About Jupyter Notebook
Server Information:

You are using Jupyter notebook.

The version of the notebook server is 5.0.0 and is running on:

Python 3.6.2 |Anaconda, Inc.| (default, Sep 22 2017, 02:03:08) 
[GCC 7.2.0]

Current Kernel Information:

Matlab Kernel

Notes:

  1. Now, I understand that us matlab people are usually too stupid, busy, or lazy to use Jupyter notebook, but from the standpoint of an ignorant user like me, implementing this should be relatively simple. Unless, of course, it is not. I hope there aren't any deep technical issues or legal issues preventing us from doing this?
  2. If you are on the jupyter notebook project or are looking at this issue because you want to contribute, you are an awesome human being and deserve to be proud of yourself.
evanr70 commented 4 years ago

Just wanted to follow this up. Is there a convenient way to change default syntax highlighting based on file extension in the text editor? I'm not particularly concerned with default behavior, I'd just like to be able to set {".m": "octave"} somewhere in the text editor options.