MattiasPernhult / vscode-todo

Lists TODO:s in the project
Other
44 stars 19 forks source link

Feature Request: Syntax Highlighting #27

Open shaneparsons opened 8 years ago

shaneparsons commented 8 years ago

Syntax highlighting is a key feature this plugin needs. Handling it the same way IDEs like PhpStorm do would be awesome.

The following might be of use:

TextMate grammar injections Extensions can now contribute TextMate grammars that inject new rules into the existing grammars used for syntax highlighting. This makes it possible to add colorization inside string literals or comments, such as highlighting of URLs or TODO markers across multiple languages.

"grammars": [
  {
    "scopeName": "source.todo",
    "path": "./syntaxes/todo.tmLanguage",
    "injectTo": [  "source.js", "source.ts" ]
  }
]

From: https://code.visualstudio.com/Update (version 1.2.0)

graywolf336 commented 7 years ago

This would be awesome to have 👍