Importing/Exporting color themes for the MATLAB editor

Amelio Vazquez-Reina picture Amelio Vazquez-Reina · Aug 9, 2011 · Viewed 9.9k times · Source

Is there a way (maybe undocumented?) of importing/exporting color themes for the MATLAB editor?

As an example, I would like to import the Zenburn color scheme in MATLAB.

Answer

scottclowe picture scottclowe · Nov 12, 2015

I got so annoyed by the lack of a colour scheme/theme import and export facility in MATLAB when trying to move my own custom made theme between my MATLAB installations, I went and made a package which does just this.

The end result, called MATLAB Schemer, is rather comprehensive. In addition to the main colours described in Alexandre Chabot's post, it will also import and export editor colours, the status of toggleable settings such as right-hand line limit and cell mode, and the colours for syntax highlighting in other languages supported by MATLAB (C, C++, Java, XML, HTML, some Simulink things). Additionally, if a MATLAB-only theme is imported, it will be generalised to apply the theme in the other languages too.

It is available on the MATLAB FileExchange and on GitHub.

I implemented a few color schemes myself, but did not implement the Zenburn scheme. Since this post is from a few years ago now, I assume you have long ago resolved your problem of setting MATLAB to use colours from the Zenburn theme. If so, you could create a Zenburn theme by exporting the colour preferences you currently have simply by running schemer_export() in the MATLAB terminal. You could also share it by adding it to the repository of colour schemes.

I hope this is helpful (if not to you than to somebody else at least).