Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Instructions #34

Open
jalexray opened this issue Jun 18, 2021 · 11 comments
Open

Installation Instructions #34

jalexray opened this issue Jun 18, 2021 · 11 comments

Comments

@jalexray
Copy link

Hi, how do I get this set up? I installed via Package Manager and expected to run Colored Comments: Generate Color Scheme, but don't have that command available.

@Amparose
Copy link

Amparose commented Jun 20, 2021

I am facing this issue as well. This is all that shows up after installation:

image

EDIT: Hmm maybe it isn't needed any more? My TODOs seem to be highlighted after a restart.

@TerminalFi
Copy link
Owner

TerminalFi commented Jun 20, 2021 via email

@Amparose
Copy link

Amparose commented Jul 7, 2021

Sorry. I’m on vacation. I need to push a update to the repo. What you want is to override current color scheme.

Hello, any movement on this? I'd love to be able to colour my TODOs properly. Seems broken in ST4.

@Amparose
Copy link

Amparose commented Sep 1, 2021

I just tried installing this again fresh in ST4 and there still isn't a Colored Comments: Generate Color Scheme in the command palette as per the initial instructions. It still does weird, unhelpful highlighting.

@Amparose
Copy link

@TheSecEng any news on this? I'd love to be able to use this with ST4...

@TerminalFi
Copy link
Owner

The plug-in works. The command you need is Colored Comments: Override Current Color Scheme

we no longer automatically generate the color scheme for you as it can cause issues.

This will open a edit window. I comment the rules you want to use and save

@Amparose
Copy link

Awesome! That works and looks like I misunderstood your previous response to this.

@akaydev-coder
Copy link

Hell I tried to setup Colored Comments for about 2 years. It lacks each time in functionality ( only white background no text decoration ) and I got myself frustrated because it could be a really useful thing. .,.. The bad days are over now! Thanks for 4.0.0 and this Thread (#34)
Your solution/update for ST4 is really comfortable
Thanks

@rohit-kumar-j
Copy link

@leveltrauma can you share these settings. I am not able to figure this out. 😅

@akaydev-coder
Copy link

@leveltrauma can you share these settings. I am not able to figure this out. 😅

uh long time ago @rohit-kumar-j
Screenshot 2022-04-28 201021

I see no special settings only personalized but the menu and the way it works in te background has changed. See Colored Options:

Screenshot 2022-04-28 201233

@hozza
Copy link

hozza commented Nov 2, 2023

I also had issues on install too, when I generated with Colored Comments: Override Current Color Scheme as explained above the comments were not displayed correctly (invisible until highlighted).

I'm using the One Dark type theme called "Theme - One" on ST4 Build 4152.

The generated/overridden/new .sublime-color-scheme file used an rgba value not found in the master theme file for the background of each rule, and the comment color variables used region.* (e.g. var(region.reddish)) but did this not exist either in the main theme file.

Workaround:
I changed the "background" under rules to the same var referenced in the master theme var(--background) and changed the color variable names to match the master also e.g. var(--redish). See my One Dark/Theme One settings below.

Potential solutions:
I'm not sure if this is specific to this theme or a Colored Comments generation/install issue.

  • Perhaps Colored Comments is not actually generating theme matching colors anymore and only providing some defaults for you to manually edit? If so some install instructions could be updated or just name it "manual color settings" etc.
  • If the theme-based auto generation does not work sometimes, perhaps ship with some default colors hard coded rather than vars.
{
	// http://www.sublimetext.com/docs/3/color_schemes.html
	"variables": {
		"important_comment": "var(--redish)",
		"deprecated_comment": "var(--purplish)",
		"question_comment": "var(--cyanish)",
		"todo_comment": "var(--greenish)",
		"fixme_comment": "var(--bluish)",
		"undefined_comment": "var(--accent)",
	},
	"globals": {
		// "foreground": "var(green)",
	},
	"rules": [
		{
			"name": "IMPORTANT COMMENTS",
			"scope": "comments.important",
			"foreground": "var(important_comment)",
			"background": "var(--background)",
		},
		{
			"name": "DEPRECATED COMMENTS",
			"scope": "comments.deprecated",
			"foreground": "var(deprecated_comment)",
			"background": "var(--background)",
		},
		{
			"name": "QUESTION COMMENTS",
			"scope": "comments.question",
			"foreground": "var(question_comment)",
			"background": "var(--background)",
		},
		{
			"name": "TODO COMMENTS",
			"scope": "comments.todo",
			"foreground": "var(todo_comment)",
			"background": "var(--background)",
		},
		{
			"name": "FIXME COMMENTS",
			"scope": "comments.fixme",
			"foreground": "var(fixme_comment)",
			"background": "var(--background)",
		},
		{
			"name": "UNDEFINED COMMENTS",
			"scope": "comments.undefined",
			"foreground": "var(undefined_comment)",
			"background": "var(--background)",
		},
	],
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants