Highlight Dynare Code in Matlab

I have searched the net but I can not find any help about this? Any body can give me some help. I have saw some guy had posted a xml file for highlighting in Notepad++, but not for dynare in matlab.

The preference in Matlab seems not support non-native language highlighting in Matlab.

I am not aware of an easy way. While Matlab has expanded the highlighting to other languages in recent versions, there still is no custom syntax highlighting.

Thank you very much for your reply!
There is a little weird that Matlab not allow custom syntax highlighting!

Had the same question and found this helpful blog post from Mathworks:

blogs.mathworks.com/community/20 … ile-types/


Preferences -> Language -> Add “.mod” to “.m” highlighting.