Highlight Dynare Code in Matlab

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Highlight Dynare Code in Matlab

Postby ahnulxy » Mon Dec 30, 2013 4:26 am

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.
ahnulxy
 
Posts: 43
Joined: Thu May 10, 2012 7:24 am

Re: Highlight Dynare Code in Matlab

Postby jpfeifer » Mon Dec 30, 2013 7:34 am

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.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Highlight Dynare Code in Matlab

Postby ahnulxy » Mon Dec 30, 2013 8:39 pm

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!
ahnulxy
 
Posts: 43
Joined: Thu May 10, 2012 7:24 am

Re: Highlight Dynare Code in Matlab

Postby wmwooley » Wed Jul 20, 2016 3:23 pm

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.
wmwooley
 
Posts: 1
Joined: Wed Jul 20, 2016 3:20 pm


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 9 guests