Page 1 of 1

Highlight Dynare Code in Matlab

PostPosted: Mon Dec 30, 2013 4:26 am
by ahnulxy
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.

Re: Highlight Dynare Code in Matlab

PostPosted: Mon Dec 30, 2013 7:34 am
by jpfeifer
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.

Re: Highlight Dynare Code in Matlab

PostPosted: Mon Dec 30, 2013 8:39 pm
by ahnulxy
jpfeifer wrote: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!

Re: Highlight Dynare Code in Matlab

PostPosted: Wed Jul 20, 2016 3:23 pm
by wmwooley
Had the same question and found this helpful blog post from Mathworks:

http://blogs.mathworks.com/community/20 ... ile-types/

Basically:

Preferences -> Language -> Add ".mod" to ".m" highlighting.