ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Colored Comments

Colored Comments is a SublimeText plugin to provide Comment Colorization

Details

  • 3.0.6
    3.0.3
  • github.​com
  • github.​com
  • 2 weeks ago
  • 3 hours ago
  • 5 years ago

Installs

  • Total 5K
  • Win 3K
  • Mac 825
  • Linux 930
Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2
Windows 0 2 2 0 0 0 0 0 1 0 3 0 1 1 0 0 0 1 1 1 0 0 0 0 1 0 0 1 0 0 0 0 1 1 0 2 0 0 0 0 3 0 0 0 1 2
Mac 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 1 0 0 0 1 1 1 0 1 0 0 0 2 0 0 0 1 1 0 0 0 0 1 1 0 2 0 0 1 0 0 1 1 0 0 0 0 0
012345Jun 16Jun 13Jun 10Jun 7Jun 4Jun 1May 29May 26May 23May 20May 17May 14May 11May 8May 5May 2Jun 16 Linux: 0 Mac: 1 Windows: 0Jun 15 Linux: 0 Mac: 0 Windows: 2Jun 14 Linux: 0 Mac: 0 Windows: 2Jun 13 Linux: 0 Mac: 0 Windows: 0Jun 12 Linux: 0 Mac: 0 Windows: 0Jun 11 Linux: 0 Mac: 0 Windows: 0Jun 10 Linux: 0 Mac: 0 Windows: 0Jun 9 Linux: 0 Mac: 0 Windows: 0Jun 8 Linux: 1 Mac: 0 Windows: 1Jun 7 Linux: 0 Mac: 0 Windows: 0Jun 6 Linux: 0 Mac: 0 Windows: 3Jun 5 Linux: 0 Mac: 0 Windows: 0Jun 4 Linux: 1 Mac: 0 Windows: 1Jun 3 Linux: 1 Mac: 0 Windows: 1Jun 2 Linux: 1 Mac: 0 Windows: 0Jun 1 Linux: 0 Mac: 0 Windows: 0May 31 Linux: 1 Mac: 0 Windows: 0May 30 Linux: 0 Mac: 0 Windows: 1May 29 Linux: 0 Mac: 0 Windows: 1May 28 Linux: 0 Mac: 0 Windows: 1May 27 Linux: 2 Mac: 0 Windows: 0May 26 Linux: 0 Mac: 0 Windows: 0May 25 Linux: 0 Mac: 1 Windows: 0May 24 Linux: 0 Mac: 0 Windows: 0May 23 Linux: 1 Mac: 0 Windows: 1May 22 Linux: 1 Mac: 1 Windows: 0May 21 Linux: 0 Mac: 0 Windows: 0May 20 Linux: 0 Mac: 1 Windows: 1May 19 Linux: 0 Mac: 1 Windows: 0May 18 Linux: 0 Mac: 0 Windows: 0May 17 Linux: 1 Mac: 0 Windows: 0May 16 Linux: 1 Mac: 0 Windows: 0May 15 Linux: 0 Mac: 0 Windows: 1May 14 Linux: 2 Mac: 0 Windows: 1May 13 Linux: 0 Mac: 0 Windows: 0May 12 Linux: 0 Mac: 0 Windows: 2May 11 Linux: 1 Mac: 0 Windows: 0May 10 Linux: 0 Mac: 0 Windows: 0May 9 Linux: 0 Mac: 0 Windows: 0May 8 Linux: 1 Mac: 1 Windows: 0May 7 Linux: 1 Mac: 1 Windows: 3May 6 Linux: 0 Mac: 0 Windows: 0May 5 Linux: 0 Mac: 0 Windows: 0May 4 Linux: 0 Mac: 0 Windows: 0May 3 Linux: 0 Mac: 0 Windows: 1May 2 Linux: 0 Mac: 0 Windows: 2Jun 16 Linux: 0 Mac: 1 Windows: 0Jun 15 Linux: 0 Mac: 0 Windows: 2Jun 14 Linux: 0 Mac: 0 Windows: 2Jun 13 Linux: 0 Mac: 0 Windows: 0Jun 12 Linux: 0 Mac: 0 Windows: 0Jun 11 Linux: 0 Mac: 0 Windows: 0Jun 10 Linux: 0 Mac: 0 Windows: 0Jun 9 Linux: 0 Mac: 0 Windows: 0Jun 8 Linux: 1 Mac: 0 Windows: 1Jun 7 Linux: 0 Mac: 0 Windows: 0Jun 6 Linux: 0 Mac: 0 Windows: 3Jun 5 Linux: 0 Mac: 0 Windows: 0Jun 4 Linux: 1 Mac: 0 Windows: 1Jun 3 Linux: 1 Mac: 0 Windows: 1Jun 2 Linux: 1 Mac: 0 Windows: 0Jun 1 Linux: 0 Mac: 0 Windows: 0May 31 Linux: 1 Mac: 0 Windows: 0May 30 Linux: 0 Mac: 0 Windows: 1May 29 Linux: 0 Mac: 0 Windows: 1May 28 Linux: 0 Mac: 0 Windows: 1May 27 Linux: 2 Mac: 0 Windows: 0May 26 Linux: 0 Mac: 0 Windows: 0May 25 Linux: 0 Mac: 1 Windows: 0May 24 Linux: 0 Mac: 0 Windows: 0May 23 Linux: 1 Mac: 0 Windows: 1May 22 Linux: 1 Mac: 1 Windows: 0May 21 Linux: 0 Mac: 0 Windows: 0May 20 Linux: 0 Mac: 1 Windows: 1May 19 Linux: 0 Mac: 1 Windows: 0May 18 Linux: 0 Mac: 0 Windows: 0May 17 Linux: 1 Mac: 0 Windows: 0May 16 Linux: 1 Mac: 0 Windows: 0May 15 Linux: 0 Mac: 0 Windows: 1May 14 Linux: 2 Mac: 0 Windows: 1May 13 Linux: 0 Mac: 0 Windows: 0May 12 Linux: 0 Mac: 0 Windows: 2May 11 Linux: 1 Mac: 0 Windows: 0May 10 Linux: 0 Mac: 0 Windows: 0May 9 Linux: 0 Mac: 0 Windows: 0May 8 Linux: 1 Mac: 1 Windows: 0May 7 Linux: 1 Mac: 1 Windows: 3May 6 Linux: 0 Mac: 0 Windows: 0May 5 Linux: 0 Mac: 0 Windows: 0May 4 Linux: 0 Mac: 0 Windows: 0May 3 Linux: 0 Mac: 0 Windows: 1May 2 Linux: 0 Mac: 0 Windows: 2Jun 16 Linux: 0 Mac: 1 Windows: 0Jun 15 Linux: 0 Mac: 0 Windows: 2Jun 14 Linux: 0 Mac: 0 Windows: 2Jun 13 Linux: 0 Mac: 0 Windows: 0Jun 12 Linux: 0 Mac: 0 Windows: 0Jun 11 Linux: 0 Mac: 0 Windows: 0Jun 10 Linux: 0 Mac: 0 Windows: 0Jun 9 Linux: 0 Mac: 0 Windows: 0Jun 8 Linux: 1 Mac: 0 Windows: 1Jun 7 Linux: 0 Mac: 0 Windows: 0Jun 6 Linux: 0 Mac: 0 Windows: 3Jun 5 Linux: 0 Mac: 0 Windows: 0Jun 4 Linux: 1 Mac: 0 Windows: 1Jun 3 Linux: 1 Mac: 0 Windows: 1Jun 2 Linux: 1 Mac: 0 Windows: 0Jun 1 Linux: 0 Mac: 0 Windows: 0May 31 Linux: 1 Mac: 0 Windows: 0May 30 Linux: 0 Mac: 0 Windows: 1May 29 Linux: 0 Mac: 0 Windows: 1May 28 Linux: 0 Mac: 0 Windows: 1May 27 Linux: 2 Mac: 0 Windows: 0May 26 Linux: 0 Mac: 0 Windows: 0May 25 Linux: 0 Mac: 1 Windows: 0May 24 Linux: 0 Mac: 0 Windows: 0May 23 Linux: 1 Mac: 0 Windows: 1May 22 Linux: 1 Mac: 1 Windows: 0May 21 Linux: 0 Mac: 0 Windows: 0May 20 Linux: 0 Mac: 1 Windows: 1May 19 Linux: 0 Mac: 1 Windows: 0May 18 Linux: 0 Mac: 0 Windows: 0May 17 Linux: 1 Mac: 0 Windows: 0May 16 Linux: 1 Mac: 0 Windows: 0May 15 Linux: 0 Mac: 0 Windows: 1May 14 Linux: 2 Mac: 0 Windows: 1May 13 Linux: 0 Mac: 0 Windows: 0May 12 Linux: 0 Mac: 0 Windows: 2May 11 Linux: 1 Mac: 0 Windows: 0May 10 Linux: 0 Mac: 0 Windows: 0May 9 Linux: 0 Mac: 0 Windows: 0May 8 Linux: 1 Mac: 1 Windows: 0May 7 Linux: 1 Mac: 1 Windows: 3May 6 Linux: 0 Mac: 0 Windows: 0May 5 Linux: 0 Mac: 0 Windows: 0May 4 Linux: 0 Mac: 0 Windows: 0May 3 Linux: 0 Mac: 0 Windows: 1May 2 Linux: 0 Mac: 0 Windows: 2

Readme

Source
raw.​githubusercontent.​com

Colored Comments

The Colored Comments plugin was designed to help create more readable comments throughout your code. It was heavily inspired by Better Comments by aaron-bond

Global Settings

The following are global settings for ColoredComments - continued_matching - If enabled, the same match as the previous line will be applied to the next line if prefixed with a -

# TODO Highlighted as a TODO
# - This will also be highlighted as a TODO (Prefixed with a -)
# This will be an unhighlighted comment
# ! This is another comment
# - and again, continued highlighting

Version 2+

2020-03-06_21-11-38

New Highlights

Add new tags easily with the following format. Keep in mind the following:

  • identifiers: These can be plaintext or regex patterns. If they are regex be sure to set the is_regex property to true
  • is_regex: Set this to true if your identifier is a regex
  • priority: This setting is critical if you want to prioritize tag settings. Default: 2147483647
    • This should be used if there are multiple tags that could match on the same thing. An example of this would be "identifier": "*" and "identifier": "[\\*]?[ ]?@param" could both match on * @param because one is less precise. To avoid these conflicts you can give the [\\*]?[ ]?@param a higher priority such as "-1", Negative values get higher priority than positive values. If two or more tags get the same priority, they are treated as first come first serve type of matching.
  • scope: Are built in colors from your current theme. Scope takes precedence over Color
  • underline: Sublime API setting for region draws
  • stippled_underline: Sublime API setting for region draws
  • squiggly_underline: Sublime API setting for region draws
  • outline: Sublime API setting for region draws
  • color: Custom text colors
    • name: This is used when generating the scope for the color scheme
    • foreground: This is the text color
    • background: This is the background of the region, generally you'll want this to be your themes background color slightly changed background if your themes background is "rgba(1, 22, 38, 0.0)" this should be set like "rgba(1, 22, 38, 0.1)" for best results

Scope Examples

Taken from Sublime MiniHTML Reference

  • region.background
  • region.foreground
  • region.accent
  • region.redish
  • region.orangish
  • region.yellowish
  • region.greenish
  • region.cyanish
  • region.bluish
  • region.purplish
  • region.pinkish

Example Tag

"Important":
        {
            "identifier": "!",
            "underline": false,
            "stippled_underline": false,
            "squiggly_underline": false,
            "outline": false,
            "color":
            {
                "name": "important",
                "foreground": "#cc0000",
                "background": "rgba(1, 22, 38, 0.1)"
            },
        }

Contributors