You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my tex file ^ and _ are highlighted as red. Now I know tex isn't supported yet but I really like this color scheme so is there a way to work around that?
The text was updated successfully, but these errors were encountered:
*tex-error* *g:tex_no_error*
Tex: Excessive Error Highlighting? ~
The <tex.vim> supports lexical error checking of various sorts. Thus,
although the error checking is ofttimes very useful, it can indicate
errors where none actually are. If this proves to be a problem for you,
you may put in your <.vimrc> the following statement: >
let g:tex_no_error=1
and all error checking by <syntax/tex.vim> will be suppressed.
^ and _ are use inside a math env not recognised by $VIMRUNTIME/syntax/tex.vim:
*tex-math*
Tex: Need a new Math Group? ~
If you want to include a new math group in your LaTeX, the following
code shows you an example as to how you might do so: >
call TexNewMathZone(sfx,mathzone,starform)
You'll want to provide the new math group with a unique suffix
(currently, A-L and V-Z are taken by <syntax/tex.vim> itself).
As an example, consider how eqnarray is set up by <syntax/tex.vim>: >
call TexNewMathZone("D","eqnarray",1)
You'll need to change "mathzone" to the name of your new math group,
and then to the call to it in .vim/after/syntax/tex.vim.
The "starform" variable, if true, implies that your new math group
has a starred form (ie. eqnarray*).
In my tex file ^ and _ are highlighted as red. Now I know tex isn't supported yet but I really like this color scheme so is there a way to work around that?
The text was updated successfully, but these errors were encountered: