Ashim,
what you are saying tells me that you are using the black default background for your results windows. As -h smcl- points out, you cannot rely on that being the case for everybody. Still, when I switch to the black background for both the results and the viewer window (see Edit- General Preferences), I do get both colors rendered correctly.
********
log using newlog, name(mylog) replace
di " { red : Hello } "
di " { green : Hello } "
di in red "Hello"
di in green "Hello"
log close mylog
view newlog.smcl
********
Best,
Martin
-------- Original-Nachricht --------
> Datum: Wed, 24 Dec 2008 11:33:14 +0530
> Von: "Ashim Kapoor" <[email protected]>
> An: [email protected]
> Betreff: st: colors in smcl
> Hello everyone,
>
> I am trying to put colors in my output.
>
> When I do --> di " { red : Hello } " and then -- > di " { green : Hello }
> "
>
> My text box ie the results window DOES show me colors , but when I log
> the results to a smcl file , I get ONLY red color. I do not get any
> green color. Any tips ?
>
> Thank you,
> Ashim.
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
--
Martin Weiss
Hackersteigle 3
72076 Tübingen
00497071/793535
00491784597218
Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL
für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/