Skip to content

Instantly share code, notes, and snippets.

@lymieux
Last active May 15, 2022 18:31
Show Gist options
  • Save lymieux/9620b000721c18f20db011ba423156a3 to your computer and use it in GitHub Desktop.
Save lymieux/9620b000721c18f20db011ba423156a3 to your computer and use it in GitHub Desktop.
Colored Comments Sublime Text Identifiers and Colors
{
"rules": [
{
"name": "IMPORTANT COMMENTS",
"scope": "comments.important",
"background" : "rgba(16, 20, 29, 0.1)",
"foreground": "rgba(245, 100, 100, 1)"
},
{
"name": "QUESTION COMMENTS",
"scope": "comments.question",
"background" : "rgba(16, 20, 29, 0.1)",
"foreground": "rgba(100, 130, 245, 1)"
},
{
"name": "TODO COMMENTS",
"scope": "comments.todo",
"background" : "rgba(16, 20, 29, 0.1)",
"foreground": "rgba(245, 170, 100, 1)"
},
{
"name": "FIXME COMMENTS",
"scope": "comments.fixme",
"foreground": "rgba(245, 100, 235, 1)"
},
{
"name": "NOTES COMMENTS",
"scope": "comments.notes",
"background" : "rgba(16, 20, 29, 0.1)",
"foreground": "rgba(165, 100, 245, 1)"
},
{
"name": "EXPLANATION COMMENTS",
"scope": "comments.explanation",
"background" : "rgba(16, 20, 29, 0.1)",
"foreground": "rgba(245, 240, 100, 1)"
},
{
"name": "DESCRIPTION COMMENTS",
"scope": "comments.description",
"background" : "rgba(16, 20, 29, 0.1)",
"foreground": "rgba(100, 245, 215, 1)"
}
],
}
{
"debug": false,
"continued_matching": true,
"continued_matching_pattern": "-",
"comment_icon_enabled": true,
"comment_icon": "dots",
"disabled_syntax": [
"Packages/Text/Plain text.tmLanguage",
"Packages/Markdown/MultiMarkdown.sublime-syntax",
"Packages/Markdown/Markdown.sublime-syntax"
],
"tags": {
"Important": {
"scope": "comments.important",
"identifier": "!",
"underline": false,
"stippled_underline": false,
"squiggly_underline": false,
"outline": false,
"is_regex": false,
"ignorecase": true
},
"Question": {
"scope": "comments.question",
"identifier": "?",
"underline": false,
"stippled_underline": false,
"squiggly_underline": false,
"outline": false,
"is_regex": false,
"ignorecase": true
},
"ToDo": {
"scope": "comments.todo",
"identifier": "TODO",
"underline": false,
"stippled_underline": false,
"squiggly_underline": false,
"outline": false,
"is_regex": false,
"ignorecase": true
},
"FixMe": {
"scope": "comments.fixme",
"identifier": "FIXME",
"underline": false,
"stippled_underline": false,
"squiggly_underline": false,
"outline": false,
"is_regex": false,
"ignorecase": true
},
"Notes": {
"scope": "comments.notes",
"identifier": "~",
"underline": false,
"stippled_underline": false,
"squiggly_underline": false,
"outline": false,
"is_regex": false,
"ignorecase": true
},
"Explanation": {
"scope": "comments.explanation",
"identifier": "^",
"underline": false,
"stippled_underline": false,
"squiggly_underline": false,
"outline": false,
"is_regex": false,
"ignorecase": true
},
"Description": {
"scope": "comments.description",
"identifier": "%",
"underline": false,
"stippled_underline": false,
"squiggly_underline": false,
"outline": false,
"is_regex": false,
"ignorecase": true
}
}
}
@lymieux
Copy link
Author

lymieux commented May 15, 2022

How to install:

! The customization in these files will only occur if you have Colored Comments installed as a package !

*.sublime-color-scheme

  • In Sublime Text, open the Command Palette (Ctrl+Shift+P on Windows/Linux; ⇧⌘P on OSX) and choose UI: Customize Color Scheme
  • Note: the * should be replaced with the name of the current theme: e.g. if I have Candy theme, the file would be named candy.sublime-color-scheme
  • Place the contents of *.sublime-color-scheme in the popup file
  • Save and done !

colored_comments.sublime-settings

  • In Sublime Text, open the Command Palette (Ctrl+Shift+P on Windows/Linux; ⇧⌘P on OSX) and choose Colored Comments: Settings
  • Place the contents of colored_comments.sublime-settings in the popup file
  • Save and done !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment