步骤:
1, 在matlab命令行中运行prefdir, 获取matlab.prf文件所在路径
2, 打开matlab.prf所在路径, 找到matlab.prf文件, 作备份
3, 将以下内容添加到matlab的matlab.prf文件中
https://github.com/scheckley/matlab-monokai
Editor.VariableHighlighting.Color=C-
ColorsText=C-
Colors_M_SystemCommands=C-
Editorhighlight-lines=C-
Colors_M_Warnings=C-
Colors_M_Strings=C-
Editor.NonlocalVariableHighlighting.TextColor=C-
Colors_HTML_HTMLLinks=C-
Colors_M_Comments=C-
Colors_M_Errors=C-
Colors_M_UnterminatedStrings=C-
ColorsBackground=C-
Colors_M_Keywords=C-
Color_CmdWinWarnings=C-
ColorsMLintAutoFixBackground=C-
Colors_M_Keywords=C-
Editorhighlight-lines=C-
Editorhighlight-caret-row-boolean-color=C- ColorsUseSystem=Bfalse
重启MATLAB即可。
附:
备份pri文件
#MATLAB Preferences
#Tue Dec :: CST
ReplaceSearchText19=Sdw
ReplaceSearchText18=S\u00A0
ReplaceSearchText17=ShFig
ReplaceSearchText16=Sii
ReplaceSearchText15=Sdouble
ReplaceSearchText14=Scharslice
ReplaceSearchText13=Swide
ReplaceSearchText12=Sfigure
ReplaceSearchText11=ScharacterImage(:,:,i)
ReplaceSearchText10=S11
ReplaceSearchText=Sxz
EditorNamedBufferOption=I2
DataStatistics.XLocation=I20
LimitSearchToSelection=Bfalse
ReplaceWordWrap=Btrue
ReplaceText20=S
RLWidthB2_VE_2014b_1_1=I130
RLWidthB2_VE_2014b_1_0=I130
RLWidthB2_WB_2014b_1_1=I130
RLWidthB2_WB_2014b_1_0=I130
CommandWindowClearConfirmation=Btrue
PathBrowserBounds=R509
RLHiddenB2_VE_2014b_1=I8184
RLPrevInitB2_VE_2014b_1=Btrue
mlint-configurations-list=SC:\\Users\\pp\\AppData\\Roaming\\MathWorks\\MATLAB\\R2016a\\MLintDefaultSettings.txt
ReplaceText19=S
ReplaceText18=S
ReplaceText17=S
ReplaceText16=S
ReplaceText15=S
ReplaceText14=S
RLHiddenB2_WB_2014b_1=I16376
ReplaceText13=S
ReplaceText12=S
ReplaceText11=S
ReplaceText10=S
ReplaceMatchCase=Btrue
MatlabExitConfirm=Bfalse
DocumentsDetailViewerSize=I302
CommandWindowShowStartupMessage=Bfalse
RLOrderB2_VE_2014b_1=S0::
RLPrevInitB2_WB_2014b_1=Btrue
ReplaceWholeWord=Bfalse
ReplaceText9=S
ReplaceSearchText9=Scp
ReplaceText8=S
ReplaceSearchText8=Smatch
ReplaceText7=S
ReplaceSearchText7=S32768
ReplaceText6=S
ReplaceSearchText6=S32767
ReplaceText5=S
RLOrderB2_WB_2014b_1=S0::
DataStatistics.YLocation=I40
ReplaceSearchText5=Sr2br_r2dit_trig_impl
ReplaceText4=S
ReplaceText3=S
ReplaceSearchText4=SemxEnsureCapacity
ReplaceText2=Stempbw
ReplaceSearchText3=SB
ReplaceSearchText2=S\u00A0\u00A0
DocumentsDetailViewerRatio=J4633542436565071403
DocumentsDetailViewerCollapsed=Bfalse
ReplaceText=S
EditorMRU8=SD:\\Program Files\\MATLAB\\R2016a\\bin\\test\\psdNew.m
EditorMRU7=SD:\\Program Files\\MATLAB\\R2016a\\bin\\test\\test.m
EditorMRU6=SD:\\Program Files\\MATLAB\\R2016a\\bin\\test\\testbiye\\analysisSingal\\\u56FE\u4F20\u4FE1\u53F7\u8BC6\u522B\u65B9\u6848\\wifi_yk_tc3.m
EditorMRU5=SD:\\Program Files\\MATLAB\\R2016a\\bin\\test\\fft32.m
EditorMRU4=SD:\\Program Files\\MATLAB\\R2016a\\bin\\test\\testData.m
EditorMRU3=SD:\\Program Files\\MATLAB\\R2016a\\bin\\test\\testbiye\\analysisSingal\\\u53C2\u6570\u8BBE\u7F6E.txt
EditorMRU2=SD:\\Program Files\\MATLAB\\R2016a\\bin\\test\\testbiye\\analysisSingal\\\u56FE\u4F20\u4FE1\u53F7\u8BC6\u522B\u65B9\u6848\\\u4EFF\u771F\\fangan1.m
EditorMRU1=SD:\\Program Files\\MATLAB\\R2016a\\bin\\test\\testbiye\\analysisSingal\\\u56FE\u4F20\u4FE1\u53F7\u8BC6\u522B\u65B9\u6848\\\u4EFF\u771F\\fangan3.m
RLPrevInitB2_null=Btrue
ReplaceSearchText20=Simagebw