mikaeljorhult / brackets-todo

Brackets/Edge Code extension that displays all TODO comments in current document or project.
144 stars 37 forks source link

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

Closed nicolo-ribaudo closed 9 years ago

nicolo-ribaudo commented 9 years ago

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?

anzhihun commented 9 years ago

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?

nicolo-ribaudo commented 9 years ago

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...

anzhihun commented 9 years ago
    /* 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.

mikaeljorhult commented 9 years ago

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

mikaeljorhult commented 9 years ago

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