Dear Sebastian,

I have noticed this behaviour. When you use raw TeX code inside a
LaTeX document, the _(underscore) and ^ and @ are highlighted with a
red background. I think the syntax highlighting of the LaTeX files
expects these special characters to appear only inside math
environment such as $$ or \begin{equation} \end{equation}.

All being said, I don't have any solution for that. I just let them be
with the red backgrounds.

Peace,
Hooman

On 5/3/07, Sebastian Menge <[EMAIL PROTECTED]> wrote:
> Hi
>
> Im using the package xy-pic for drawing some diagrams. The TeX-code
> looks like this:
>
> \centerline{
> \xymatrix{
>   E \ar@/^/[r]^s \ar@/_/[r]_t & V
>   } }
>
> or
>
> \centerline{
> \xymatrix{
>   & S \times I \ar@/_/[dl]_t \ar[dl]_{\pi_1} \ar[d]^{\pi_2} \ar[dr]^o& \
> \
>   S  & I & O
>   } }
>
>
> Syntax highlighting gets wrong for this: I get a lot of ugly characters
> with red background (looks like errorenous code). This occurs at "@" and
> "_".
>
> Oh, while i write a get an idea. Inside \xymatrix  is math-text.
> Probably latex-suite does not recognize this and treats it as standard
> text !?
>
> How can i change that?
>
> Sebastian.
>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Vim-latex-devel mailing list
> Vim-latex-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vim-latex-devel
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

Reply via email to