mikaeljorhult/brackets-todo

Is there a way to set custom tags only for a file?

Closed this issue · 5 comments

I'm sorry if my question is not clever...

I would use different settings for different files.
For example, I have a .css file that should use the /* @#TODO This is a comment */ syntax and a .js file that should use the // ...TODO... This is another comment syntax...

Or is better if I use a regex that matchs both comments?

As I know brackets-todo doesn't support it directly now. Maybe you can change prefix regex of settings to match both. But it will be difficult. Why do you use different comment syntax?

That's because I start using the /* @TODO: something */ syntax in my css files, but I'd like to use a JSDoc-like syntax in my JavaScript files...

    /* TODO: TEST */
    /* @#TODO: TEST */
    /* @TODO: TEST */

should be matched by default without modifing any regex. You can try it. Do you have other syntax comments? Maybe I can give you some prefix regex to match them.

Did you get this to work the way you want @nicolo-ribaudo?

Closing this for now. Please reopen if it's still an issue.