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

Colored Comments

by TheSecEng ST3

Colored Comments is a SublimeText plugin to provide Comment Colorization

Details

Installs

  • Total 242
  • Win 145
  • Mac 47
  • Linux 50
Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 29 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20
Windows 2 5 2 4 3 3 3 1 4 2 3 2 3 1 4 1 5 2 2 4 5 5 9 4 4 7 2 8 4 2 3 6 3 6 1 6 6 8 10 3 0 0 0 0 0
Mac 1 2 1 2 0 3 0 0 1 1 1 0 0 0 0 0 0 3 10 2 2 1 3 6 2 4 4 0 1 0 2 3 4 4 1 0 0 2 4 5 0 0 0 0 0
Linux 3 0 1 2 1 2 1 1 0 2 1 1 0 1 1 1 3 2 1 1 0 0 5 4 1 2 0 1 3 0 1 0 2 0 1 2 3 1 2 1 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Colored Comments

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

NOTICE !!

If using the new verison run Generate/Regenerate Color Scheme

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

Version > 2

2020-02-21_08-52-51

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 priorty 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 precendence 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