On Mon, Apr 16, 2012 at 4:53 PM, Suresh Kumar <span dir="ltr"><<a href="mailto:suresh.amritapuri@gmail.com">suresh.amritapuri@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi<div><br></div><div>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">TexWorks Version 0.5 r.952 (Debian) on Ubuntu 12.04. Syntax high lighting not working. When I open the file, for a second, I see colored words but it vanishes soon to give me a plain black and white text file. White background and black letters. </p>


<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><br></p><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">~/.TexWorks/configuration/syntax-pattern.txt is attached.</p>


<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><br></p><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">Any suggestions?</p><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">


<br></p><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">thanks</p><span class="HOEnZb"><font color="#888888"><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">suresh</p>

</font></span></div></blockquote><div><br></div><div>I've seen this happen before due to per-file settings. In other words, TeXworks remembers some settings, such as syntax higlighting, on a per-file basis. So, you open the file and it is highlighted by default but then the per-file settings are loaded which cause the highlighting to vanish.</div>

<div><br></div><div>Possible solution: open the file and then check the Format->Syntax Coloring menu to make sure highlighting is indeed enabled.</div><div><br></div><div>-Charlie </div></div><br>