Page 1 of 1

Syntax Highlighting for Dynare

PostPosted: Fri Jun 26, 2009 8:17 pm
by htret
One thing I have found really helpful in making large .mod files more readable and hence easier to work with, is to use an editor with syntax highlighting and code folding enabled to recognize the Dynare commands and keywords. The editor that I have used is Notepad++, which among other features, has a simple interface to design a new scheme for syntax highlighting for a new language. I've used that interface to design such a scheme, and thought I'd pass it on since I think others could find it quite useful too.

If this sounds interesting to you, take a look at the attached .zip file, try it out, and let me know what you think!

Best,

Håkon Tretvoll

Re: Syntax Highlighting for Dynare

PostPosted: Tue Dec 28, 2010 12:07 pm
by yajin
hi Håkon Tretvoll
It's very helpful. Thanks a lot.
yajin

Re: Syntax Highlighting for Dynare

PostPosted: Tue Jan 11, 2011 11:54 am
by SébastienVillemot
Note that there is also an Emacs mode for Dynare, included in the unstable version.

Re: Syntax Highlighting for Dynare

PostPosted: Thu Mar 13, 2014 11:53 am
by CristianB
Hello Hakon,
Thanks for sharing this. Do you have an updated version of the syntax highlighting scheme ?
I'm interested in code folding in particular, and in being able to fold specified bits of the code (for example I want to group parameters or variables). A problem I found is that the code folding keywords are not uniquely specified (for instance I have a piece of text like "endo_names" and the it identifies this as "Folder-" keyword). Thanks!
Best,
Cristian