Thanks, it worked!<div>Is there any specific per file command that has to be given for syntax high lighting like the ones which start with % ?</div><div>suresh<br><br><div class="gmail_quote">On Mon, Apr 16, 2012 at 5:21 PM, Charlie Sharpsteen <span dir="ltr"><<a href="mailto:chuck@sharpsteen.net">chuck@sharpsteen.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Mon, Apr 16, 2012 at 4:53 PM, Suresh Kumar <span dir="ltr"><<a href="mailto:suresh.amritapuri@gmail.com" target="_blank">suresh.amritapuri@gmail.com</a>></span> wrote:<br>
</div></div><div class="gmail_quote"><div><div class="h5"><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><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></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><span class="HOEnZb"><font color="#888888"><div><br></div><div>-Charlie </div>
</font></span></div><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>R Suresh Kumar,<br>Sarve bhavantu sukinaha (May everyone be happy)<br><div><div>Sarve santu niramiyaha (May everyone be without affliction)</div><div>Sarve bhadrani pashyantu (May everyone see only goodness)</div>
<div>Ma kashchit dukha bhak bhavet (Let none be the victim of suffering)</div></div><div><br></div><br>
</div>