mikaeljorhult / brackets-todo

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

HTML Comment Syntax not working? #88

Closed versedi closed 9 years ago

versedi commented 10 years ago

Good Morning, I've edited .todo by Brackets down-right corner options button.

I've edited lines into: "regex": { "prefix": "(?:)" }

Reloaded Brackets, but extension can't detect HTML comments markups anyway. When I use those classic ones everything still works.

I've tried to edit C:\Users\user\AppData\Roaming\Brackets\extensions\user\mikaeljorhult.brackets-todo\unitest-files.todo unfortunately without any luck.

Any ideas what could cause that? Anyone else having problems with HTML Comment syntax with Todo?

mikaeljorhult commented 10 years ago

It should work if you create a file with the name .todo in your project folder with the following code:

{
    "regex": {
        "prefix": "(?:<!--) *(",
        "suffix": "):? *(.*?) ?(?=-->)"
    }
}
sampathsris commented 10 years ago

I too am wondering why HTML comments are ignored. Can't we support this out of the box?

le717 commented 10 years ago

I wondered this since I first installed the extension a few months ago. I'm with @sampathsris, can HTML comments be supported by default?

mikaeljorhult commented 9 years ago

@bbodine1's pull request is now merged with master so HTML comment syntax will be recognized by default as of next version.

le717 commented 9 years ago

Thank you!

versedi commented 9 years ago

Thank you! Good job!