{"id":42672549,"url":"https://github.com/surdu/selector-to-tag","last_synced_at":"2026-01-29T11:03:14.576Z","repository":{"id":28763126,"uuid":"32285350","full_name":"surdu/selector-to-tag","owner":"surdu","description":":hourglass_flowing_sand: Atom package that allows you to create HTML tag elements using CSS selectors in HTML files","archived":false,"fork":false,"pushed_at":"2023-03-05T13:37:31.000Z","size":161,"stargazers_count":45,"open_issues_count":3,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-22T22:27:48.263Z","etag":null,"topics":["atom","atom-editor","atom-package","hacktoberfest"],"latest_commit_sha":null,"homepage":"https://atom.io/packages/selector-to-tag","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/surdu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-15T21:35:33.000Z","updated_at":"2023-02-08T01:33:11.000Z","dependencies_parsed_at":"2023-01-14T09:31:42.446Z","dependency_job_id":null,"html_url":"https://github.com/surdu/selector-to-tag","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/surdu/selector-to-tag","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surdu%2Fselector-to-tag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surdu%2Fselector-to-tag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surdu%2Fselector-to-tag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surdu%2Fselector-to-tag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/surdu","download_url":"https://codeload.github.com/surdu/selector-to-tag/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surdu%2Fselector-to-tag/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28876674,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T10:31:27.438Z","status":"ssl_error","status_checked_at":"2026-01-29T10:31:01.017Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["atom","atom-editor","atom-package","hacktoberfest"],"created_at":"2026-01-29T11:02:52.617Z","updated_at":"2026-01-29T11:03:14.563Z","avatar_url":"https://github.com/surdu.png","language":"JavaScript","funding_links":["https://ko-fi.com/surdu"],"categories":[],"sub_categories":[],"readme":"# Selector to Tag\n\n[![Actions Status](https://github.com/surdu/selector-to-tag/workflows/Tests/badge.svg)](https://github.com/surdu/selector-to-tag/actions)\n[![Buy me a coffee](https://raw.githubusercontent.com/surdu/surdu/master/ko-fi.svg)](https://ko-fi.com/surdu)\n\nSelector to Tag is an [Atom editor](https://atom.io/) package that allows you to create HTML tag elements using CSS selectors in HTML files.\n\nJust type a CSS selector and press \u003ckbd\u003eTAB\u003c/kbd\u003e :\n\n![Demo animation](https://cloud.githubusercontent.com/assets/11520795/6700058/1b18986a-cd11-11e4-9d6a-848b808197c6.gif)\n\n## Supported selectors\n\nFor now the following selectors are possible:\n\nSelector          | Output\n------------------|------\n`foo`             | `\u003cfoo\u003e\u003c/foo\u003e` (when `Solve Plain Tags` option is enabled (default `true`))\n`foo#bar`         | `\u003cfoo id=\"bar\"\u003e\u003c/foo\u003e`\n`#foo`            | `\u003cdiv id=\"foo\"\u003e\u003c/div\u003e`\n`.foo`            | `\u003cdiv class=\"foo\"\u003e\u003c/div\u003e`\n`foo.bar`         | `\u003cfoo class=\"bar\"\u003e\u003c/foo\u003e`\n`foo.bar.baz`     | `\u003cfoo class=\"bar baz\"\u003e\u003c/foo\u003e`\n`foo#bar.baz`     | `\u003cfoo id=\"bar\" class=\"baz\"\u003e\u003c/foo\u003e`\n`foo#bar.baz.qux` | `\u003cfoo id=\"bar\" class=\"baz qux\"\u003e\u003c/foo\u003e`\n\n## Options\n\n - **File Extensions** - comma separated file extensions in which this package should be active *(Default: \"htm, html, kit, shtml, tmpl, tpl, xhtml\")*\n\n - **Only On HTML Grammar** - extension solves tags in any file that have the HTML grammar active. `File extensions` option will be ignored if this is enabled *(Default: false)*\n\n - **Solve Plain Tags** - this will indicate if this package should also solve to tags when there is no id or class specified in the selector. *(Default: true)*\n\n - **Close Self-Closing Tags** - Add a backslash before the end of self-closing tags. For example `\u003clink\u003e` will be solved to `\u003clink/\u003e` *(Default: false)*\n\n - **Expand Block Tags To Multiple Lines** - Puts the cursor and end tag on new lines. *(Default: false)*\n\n - **Block-Level Elements** - If \"Expand block tags to multiple lines\" is checked, these tags will count as block tags. *(Default: address, article, aside, audio, blockquote, canvas, dd, div, dl, fieldset, figcaption, figure, footer, form, header, hgroup, hr, main, nav, noscript, ol, output, p, pre, section, table, tfoot, ul, video)*\n\n## Support\n\nIf you have any sugestions for other selectors or sugestions in general, please submit an issue on GitHub.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurdu%2Fselector-to-tag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsurdu%2Fselector-to-tag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurdu%2Fselector-to-tag/lists"}