mikaeljorhult / brackets-todo

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

JS + HTML comments? #70

Closed tomByrer closed 10 years ago

tomByrer commented 10 years ago

How do I add the ability to add HTML comments to JS please? I tried this:

"prefix": "(?:\\/\\*|\\/\\/|#)|(?:<!--) *@?(",
"suffix": "):? *(.*?) ?(?=\\*/|\\n|$|(?=-->))"
mikaeljorhult commented 10 years ago

If you put the following code in your .todo the extension recognize both HTML and JavaScript comments.

{
    "regex": {
        "prefix": "(?:\\/\\*|\\/\\/|<!--) *@?(",
        "suffix": "):? *(.*?) ?(?=\\*/|-->|\\n|$)"
    }
}