mikaeljorhult / brackets-todo

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

Custom colors for custom settings #66

Closed gmaggio closed 10 years ago

gmaggio commented 10 years ago

Just a wishlist: option to add custom colors for the custom tags in the .todo custom settings.

mikaeljorhult commented 10 years ago

Thank you for the suggestion. While a good idea this will need some changes to the way the .todofile is parsed so it will probably take some time to implement. Working on it though!

cyrakuse commented 10 years ago

good idea

anzhihun commented 10 years ago

Good idea. Tags maybe look as:

{
    "tags":[
        {"name":"TODO", "color":"#f0f0f0"},
        {"name":"NOTE", "color":"#ff00f0"}
    ]
}
mikaeljorhult commented 10 years ago

Yes, that's probably the best way to do it. Will start looking at it as soon as 0.6.0 is out.

mikaeljorhult commented 10 years ago

This feature is now available in master branch and will be in the next release.

There's two ways of using it, either by the syntax that @anzhihun suggested above or by adding it to the tag name after a colon character. The colon syntax may also be used in the settings dialog.

{
    "tags": [
        { "name": "TODO", "color": "#d95" },
        { "name": "FIXME", "color": "#c95353" }
    ]
}
{
    "tags": [
        "TODO:#d95",
        "FIXME:#c95353"
    ]
}