{"id":15350871,"url":"https://github.com/junichi11/netbeans-color-codes-preview","last_synced_at":"2025-04-14T23:41:01.569Z","repository":{"id":28893246,"uuid":"32417945","full_name":"junichi11/netbeans-color-codes-preview","owner":"junichi11","description":"Show colors in an editor's sidebar","archived":false,"fork":false,"pushed_at":"2021-10-10T04:53:04.000Z","size":2571,"stargazers_count":32,"open_issues_count":5,"forks_count":9,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-28T11:43:01.946Z","etag":null,"topics":["colors","netbeans","netbeans-plugin"],"latest_commit_sha":null,"homepage":"https://netbeans-vm.apache.org/pluginportal/catalogue/?id=24","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/junichi11.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"junichi11"}},"created_at":"2015-03-17T20:19:11.000Z","updated_at":"2025-03-15T20:57:51.000Z","dependencies_parsed_at":"2022-09-03T07:41:33.550Z","dependency_job_id":null,"html_url":"https://github.com/junichi11/netbeans-color-codes-preview","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junichi11%2Fnetbeans-color-codes-preview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junichi11%2Fnetbeans-color-codes-preview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junichi11%2Fnetbeans-color-codes-preview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junichi11%2Fnetbeans-color-codes-preview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/junichi11","download_url":"https://codeload.github.com/junichi11/netbeans-color-codes-preview/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248981257,"owners_count":21193143,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["colors","netbeans","netbeans-plugin"],"created_at":"2024-10-01T11:59:31.277Z","updated_at":"2025-04-14T23:41:01.547Z","avatar_url":"https://github.com/junichi11.png","language":"Java","funding_links":["https://github.com/sponsors/junichi11"],"categories":[],"sub_categories":[],"readme":"# NetBeans Color Codes Preview Plugin [![Build Status](https://travis-ci.org/junichi11/netbeans-color-codes-preview.svg?branch=master)](https://travis-ci.org/junichi11/netbeans-color-codes-preview)\n\nThis plugin shows a color codes preview in an editor's sidebar.\n\n![screenshot](images/netbeans-color-codes-preview-screenshot.png)\n\n## Disable/Enable\n\nUncheck/Check `View \u003e Show Colors`\n\n## Downloads\n\n- https://github.com/junichi11/netbeans-color-codes-preview/releases\n\n## Supported color patterns\n\n- Hex color code (e.g. `#fff` `#000000`)\n- Css rgb/rgba values (e.g. `rgb(0, 0, 0)`, `rgb(50%, 0%, 100%)`, `rgba(255,255,255, 0.8)`)\n- Css hsl/hsla values (e.g. `hsl(0, 100%, 50%)`, `hsla(120, 100%, 50%, 0.5)`)\n- Named colors (e.g. `red`, `blue`)\n- Java Color class colors (e.g. `Color.black`, `new Color(100, 100, 100)`, `new Color(0, 0, 255, 255)`)\n\n## Multiple colors\n\n- Show top two colors in a sidebar if there are multiple colors in a line.\n- If you want to check all colors, please click a specific rectangle. They will be shown as a list.\n\n## Change a color using a color chooser\n\n![changing-colors](images/netbeans-color-codes-preview-changing-colors.gif)\n\n- Click a colored rectangle\n- Click a color value of a list\n- Select a new color in the color chooser\n- An old color value will be changed to new one with the same format(Hex and CSS)\n\n### NOTE\n\nIf \"GTK look and feel\" is used, an alpha value is not available. So, in that case, this plugin doesn't show the color chooser for `new Color(r, g, b, a)`.\n\n## Generate color codes\n\nYou can generate color codes via a code generator(\u003ckbd\u003eAlt\u003c/kbd\u003e + \u003ckbd\u003eIns\u003c/kbd\u003e).\n\n1. Run a code generator(\u003ckbd\u003eAlt\u003c/kbd\u003e + \u003ckbd\u003eIns\u003c/kbd\u003e)\n2. Choose `Color...`\n3. Choose the format you expect (e.g. `new Color(r, g, b)`)\n4. Choose a color\n5. Click the OK button\n6. A color code is generated at the caret position\n\n![generate-color-codes](images/netbeans-color-codes-preview-generate-color-code.gif)\n\n## Options\n\nTools \u003e Options \u003e Miscellaneous \u003e Color Codes Preview\n\n### Hex and CSS colors\n\n![screenshot-options](images/netbeans-color-codes-preview-options.png)\n\n#### Regex for enabled mime-types\n\nDefault value is `^text/(x-)?(css|less|sass|scss)$`.\nIf you would like to disable/enable some mime-types, please change the default regex.\nThis pattern is used when the plugin checks a mime-type.\n\nIf you would like to enable xml files, please add `|.*xml`. i.e. `^text/(x-)?(css|less|sass|scss|.*xml)$`\n\n#### Resolve Sass and Less Variables\n\nThis option is `false` by default. If you would like to resolve Sass and Less variables, please check it.\n\n**NOTE:** The simplest cases only e.g. `$green: #0f0;`\n\n#### Named Colors\n\nThis option is `false` by default. If you would like to show named colors, please check it.\n\n### Java Color class colors\n\n#### NOTE\n\nIf you would like to show colors of `Color.decode(\u003chex\u003e)` e.g. `Color.decode(\"#000000\")`, Please add `java` to \"Regex for enabled mime-types\" of Hex and CSS e.g. (`^text/(x-)?(css|less|sass|scss|java)$`)\n\n## Contributing\n\n### Bugs \u0026 New Features\n\nIf you have some requests, problems, and more, first of all, please submit them to [Issues](https://github.com/junichi11/netbeans-color-codes-preview/issues).\nPlease don't create PRs soon. I'll request creating PRs if I need your help.\n\n### Typos\n\nIf you find typos or incorrect English, please let me know. If you would like to create a PR for fixing them, please do that.\n\n## NOTE\n\n- Colors may be shown if they are not color codes. e.g. \"#feature\" contains `#fea`. This plugin recognizes it as a hex color code.\n- If you use the GTK Look and Feel, you cannot change an alpha value in the color chooser.\n- Hsl or hsla color values may not be changed correctly when you use the color chooser. (There may be 1% errors.)\n- Doesn't recognize the following Java Color case: `new Color(0.25f, 0.50f, 0);`, in such a case, please add `f`. i.e. `0f` or `1f`.\n\n## Donation\n\n\u003ca href=\"https://github.com/sponsors/junichi11\"\u003ehttps://github.com/sponsors/junichi11\u003c/a\u003e\n\n## License\n\n[Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunichi11%2Fnetbeans-color-codes-preview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjunichi11%2Fnetbeans-color-codes-preview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunichi11%2Fnetbeans-color-codes-preview/lists"}