Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Sergiy Radyakin <serjradyakin@gmail.com> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
Subject | Re: st: smcl language definition file for Notepad ++? |
Date | Tue, 12 Nov 2013 19:59:49 -0500 |
Jorge, check here http://code.google.com/r/jimmygriff89-/source/browse/ but I guess it is highlighting of the do-files, not SMCL. I'd rather not write it and not use it at all, unless it is already written and well-tested. I am not sure what is the problem with -project-, but if at any point you have a control over how npp launches the code, get in there and create a simple wrapper that would call Stata twice instead of once. First to create the log file, second to translate it. At runtime your program can find out where -project- is logging you. For that you could use: log query. . log query name: <unnamed> log: c:\temp\junk.log, on log type: text . ret list macros: r(name) : "<unnamed>" r(type) : "text" r(status) : "on" r(filename) : "c:\temp\junk.log" With this information you could then log close _all, and then log using `samefilename', then execute your actual code. Finally you can actually modify -project- source code to use the log format you need. Does -project- actually USE any specifics of the smcl? It seems to me it is a matter of preference. Best, Sergiy Radyakin On Tue, Nov 12, 2013 at 4:55 PM, Jorge Eduardo Pérez Pérez <jorge_perez@brown.edu> wrote: > Dear Statalist, > > Does anyone know of a way to visualize smcl files in Notepad ++, if > not as they are shown in Stata's dofile editor, then at least without > the smcl clutter? > > I am aware of -translate- and I know I can log in text, but I am using > the user written command -project. which only logs in smcl, and my > attempts to combine -project- and -translate- are failing so far. > > Thanks! > > -------------------------------------------- > Jorge Eduardo Pérez Pérez > Graduate Student > Department of Economics > Brown University > > * > * For searches and help try: > * http://www.stata.com/help.cgi?search > * http://www.stata.com/support/faqs/resources/statalist-faq/ > * http://www.ats.ucla.edu/stat/stata/ * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/