Hi,

I often use things like
(TODO blablabla)
in my LaTeX documents in order to mark todos. However these are not highlighted
as usual since they are not within a comment environment. Since LaTeX has no
comments which can be used within a line (like /* ... */) I don't want to use
normal comments, it would make me use a whole line for every todo and render the
text mostly unreadable.

So I wanted to ask if there is a fast and simple hack to make vim highlight
something like (TODO ...) as a comment environment with the TODO highlighted in
the TODO style.

Unfortunately I don't have the time to try this by myself, I guess my approach
would be to write a new LaTeX-highlighting file and include the old one, then
extending it with the new grammar. But I really don't have the time to try this
by myself.

If someone has done something similar before, or if someone has an idea how to
maybe even realize this through .vimrc (that would be awesome!) it would be
really of great help to me.

Regards and thanks in advance,

Marco

Reply via email to