diff --git a/README.md b/README.md
index 156678d..78b87f1 100644
--- a/README.md
+++ b/README.md
@@ -12,8 +12,7 @@ Hope this extension helps you as well.
*NOTICE*
-Many report that the `List highlighted annotations` command is not working, make sure you have the file types included via `todohighlight.include`.
-
+Many report that the `List Highlighted Annotations` command is not working, make sure you have the file types included via `todohighlight.include`.
### Preview
@@ -41,7 +40,6 @@ To customize the keywords and other stuff, command + , (Wi
| todohighlight.maxFilesForSearch | number | 5120 | Max files for searching, mostly you don't need to configure this. |
| todohighlight.toggleURI | boolean | false | If the file path within the output channel not clickable, set this to true to toggle the path patten between `#` and `::`. |
-
an example of customizing configuration:
```js
@@ -113,17 +111,15 @@ an example of customizing configuration:
This extension contributes the following commands to the Command palette.
-- `Toggle highlight` : turn on/off the highlight
+- `Toggle Highlight` : turn on/off the highlight

-- `List highlighted annotations` : list annotations and reveal from corresponding file
+- `List Highlighted Annotations` : list annotations and reveal from corresponding file

+### Known Issue
-### Known issue
-
- The clickable file pattern within the output channel differs from OS platform(`#` for Mac/Windows and `::` for Linux, for details see this [issue](https://github.com/Microsoft/vscode/issues/586) ).
+The clickable file pattern within the output channel differs from OS platform(`#` for Mac/Windows and `::` for Linux, for details see this [issue](https://github.com/Microsoft/vscode/issues/586) ).
- Basically the extension auto detects the OS platform.
+Basically the extension auto detects the OS platform.
- If you find that the file path is not clickable, set `todohighlight.toggleURI` to `true` to toggle the file pattern.
-
+If you find that the file path is not clickable, set `todohighlight.toggleURI` to `true` to toggle the file pattern.
\ No newline at end of file
diff --git a/package.json b/package.json
index 0757496..59d34b1 100644
--- a/package.json
+++ b/package.json
@@ -70,12 +70,12 @@
"contributes": {
"commands": [
{
- "title": "Toggle highlight",
+ "title": "Toggle Highlight",
"category": "TODO-Highlight",
"command": "todohighlight.toggleHighlight"
},
{
- "title": "List highlighted annotations",
+ "title": "List Highlighted Annotations",
"category": "TODO-Highlight",
"command": "todohighlight.listAnnotations"
}
diff --git a/src/util.js b/src/util.js
index e1c8548..2a3ac15 100644
--- a/src/util.js
+++ b/src/util.js
@@ -8,17 +8,29 @@ var zapIcon = '$(zap)';
var defaultMsg = '0';
var DEFAULT_KEYWORDS = {
- "TODO:": {
- text: "TODO:",
+ 'TODO:': {
+ text: 'TODO:',
color: '#fff',
backgroundColor: '#ffbd2a',
overviewRulerColor: 'rgba(255,189,42,0.8)'
},
- "FIXME:": {
- text: "FIXME:",
+ 'FIXME:': {
+ text: 'FIXME:',
color: '#fff',
backgroundColor: '#f06292',
overviewRulerColor: 'rgba(240,98,146,0.8)'
+ },
+ 'INFO:': {
+ text: 'INFO:',
+ color: '#fff',
+ backgroundColor: '#4dabf7',
+ overviewRulerColor: 'rgba(77,171,247,0.8)'
+ },
+ 'NOTE:': {
+ text: 'NOTE:',
+ color: '#fff',
+ backgroundColor: '#69db7c',
+ overviewRulerColor: 'rgba(105,219,124,0.8)'
}
};
@@ -38,7 +50,7 @@ function getAssembledData(keywords, customDefaultStyle, isCaseSensitive) {
text = text.toUpperCase();
}
- if (text == 'TODO:' || text == 'FIXME:') {
+ if (text == 'TODO:' || text == 'FIXME:' || text == 'INFO:' || text == 'NOTE:') {
v = Object.assign({}, DEFAULT_KEYWORDS[text], v);
}
result[text] = Object.assign({}, DEFAULT_STYLE, customDefaultStyle, v);