Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: smcl language definition file for Notepad ++?


From   Jorge Eduardo Pérez Pérez <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: smcl language definition file for Notepad ++?
Date   Tue, 12 Nov 2013 21:54:17 -0500

Thanks. Now that Robert Picard kindly pointed out my silly mistake
trying to use -translate-, I guess I'll use that. But the option of
modifying -project- also seems attractive now that I know there isn't
a simpler solution.

Regards,
--------------------------------------------
Jorge Eduardo Pérez Pérez
Graduate Student
Department of Economics
Brown University


On Tue, Nov 12, 2013 at 7:59 PM, Sergiy Radyakin <[email protected]> wrote:
> 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
> <[email protected]> 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/

*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index