导入/导出MATLAB编辑器的颜色主题 [英] Importing/Exporting color themes for the MATLAB editor

查看:222
本文介绍了导入/导出MATLAB编辑器的颜色主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否存在导入或导出MATLAB编辑器颜色主题的方法(也许未记录?)?

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

举例来说,我想在MATLAB中导入 Zenburn 配色方案.

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

推荐答案

颜色设置保存在 matlab.prf 文件中.您可以找到它的位置,但运行命令:

The color settings are saved in the matlab.prf file. You can find its location but running the command:

prefdir

有许多行以颜色开头,例如:

There are a number of lines that start with the word Colors, for example:

ColorsBackground=C-16506839
ColorsMLintAutoFixBackground=C-3454186
ColorsText=C-8153962
ColorsUseMLintAutoFixBackground=Btrue
ColorsUseSystem=Bfalse
Colors_HTML_HTMLLinks=C-7102047
Colors_M_Comments=C-10981771
Colors_M_Errors=C-2346449
Colors_M_Keywords=C-8021760
Colors_M_Strings=C-13983336
Colors_M_SystemCommands=C-7613747
Colors_M_UnterminatedStrings=C-2935166
Colors_M_Warnings=C-27648

您可以将这些行另存为主题",然后与他人共享.他们只需将 Colors * 行替换为您的行即可.

You can save those lines as your "theme" and then share them with others. They just have to replace the Colors* lines with yours.

我建议在某些文本编辑器中打开 matlab.prf 文件,然后对行进行排序,以使其更容易选择感兴趣的行.

I would recommend opening the matlab.prf file in some text editor and then sorting the lines to make it easier to select only the lines of interest.

这篇关于导入/导出MATLAB编辑器的颜色主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆