jgclark / vscode-todo-highlight

VSCode Extension to highlight TODOs etc.
MIT License
102 stars 22 forks source link

Latex is not supported #65

Closed albertopasqualetto closed 1 year ago

albertopasqualetto commented 1 year ago

In Latex comments are started by %. This is not handled in your extension, please add the support. Thanks.

jgclark commented 1 year ago

LaTeX is not in the initial set of supported file types. Have you added whatever extensions you're using for LaTeX files in the settings? If you have, then please give some examples of what you're expecting to happen, and (if relevant) examples where the extension is currently breaking with LaTeX-style comments.

On Fri, 13 Jan 2023 at 16:41, Alberto Pasqualetto @.***> wrote:

In Latex comments are started by %. This is not handled in your extension, please add the support. Thanks.

— Reply to this email directly, view it on GitHub https://github.com/jgclark/vscode-todo-highlight/issues/65, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMYESRT3MTOZXP4I6R32C3WSGATRANCNFSM6AAAAAAT2TFBEE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- -- Jonathan

albertopasqualetto commented 1 year ago

What I am expecting is that in % TODO something "TODO" IS highlighted like in other languages.

This is not happening in any case (but if I add .tex extension in acceped ones in settings, I see that if I write // TODO ... or # TODO ... then "TODO" is highlighted and I think it should not).

jgclark commented 1 year ago

It shouldn't matter whether this is behind a % or anything else. From memory the default to highlight is TODO: not just TODO. Please try that? You can change this to TODO by adding "todohighlight.keywords": [ ...] sections in the settings.

On Sat, 14 Jan 2023 at 22:58, Alberto Pasqualetto @.***> wrote:

What I am expecting is that in % TODO something "TODO" IS highlighted like in other languages.

This is not happening in any case (but if I add .tex extension in acceped ones in settings, I see that if I write // TODO ... or # TODO ... then "TODO" is highlighted and I think it should not).

— Reply to this email directly, view it on GitHub https://github.com/jgclark/vscode-todo-highlight/issues/65#issuecomment-1382955354, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMYESXUSCAFKBOFN64PZLDWSMVP7ANCNFSM6AAAAAAT2TFBEE . You are receiving this because you commented.Message ID: @.***>

-- -- Jonathan

albertopasqualetto commented 1 year ago

Ok, so probably I was using another extension without knowing its behavior. In fact if I add ":", it works, thanks 👍🏻