{"id":18718499,"url":"https://github.com/highlightjs/highlightjs-robots-txt","last_synced_at":"2025-04-12T13:33:58.178Z","repository":{"id":57264186,"uuid":"213158651","full_name":"highlightjs/highlightjs-robots-txt","owner":"highlightjs","description":"robots.txt - a language grammar for highlight.js","archived":false,"fork":false,"pushed_at":"2021-04-12T23:04:40.000Z","size":18,"stargazers_count":5,"open_issues_count":1,"forks_count":10,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-09-29T04:58:18.828Z","etag":null,"topics":["highlightjs","highlightjs-syntax"],"latest_commit_sha":null,"homepage":"","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/highlightjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-06T11:46:58.000Z","updated_at":"2023-09-05T22:32:04.000Z","dependencies_parsed_at":"2022-08-25T02:51:59.790Z","dependency_job_id":null,"html_url":"https://github.com/highlightjs/highlightjs-robots-txt","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-robots-txt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-robots-txt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-robots-txt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-robots-txt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/highlightjs","download_url":"https://codeload.github.com/highlightjs/highlightjs-robots-txt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223519433,"owners_count":17158873,"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":["highlightjs","highlightjs-syntax"],"created_at":"2024-11-07T13:21:38.783Z","updated_at":"2024-11-07T13:21:39.428Z","avatar_url":"https://github.com/highlightjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# robots.txt - a language grammar for highlight.js\n\n![version](https://badgen.net/npm/v/highlightjs-robots-txt) ![license](https://badgen.net/badge/license/MIT/blue)\n![install size](https://badgen.net/packagephobia/install/highlightjs-robots-txt) ![minified size](https://badgen.net/bundlephobia/min/highlightjs-robots-txt)\n\n## Usage\n\nSimply include the Highlight.js library in your webpage or Node app, then load this module.\n\n### Static website or simple usage\n\nSimply load the module after loading Highlight.js.  You'll use the minified version found in the `dist` directory.  This module is just a CDN build of the language, so it will register itself as the Javascript is loaded.\n\n```html\n\u003cscript type=\"text/javascript\" src=\"/path/to/highlight.min.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"/path/to/robots-txt.min.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\"\u003e\n  hljs.highlightAll();\n\u003c/script\u003e\n```\n\n### Using directly from the UNPKG CDN\n\n```html\n\u003cscript type=\"text/javascript\"\n  src=\"https://unpkg.com/highlightjs-robots-txt@0.9.1/dist/robots-txt.min.js\"\u003e\u003c/script\u003e\n```\n\n- More info: \u003chttps://unpkg.com\u003e\n\n### With Node or another build system\n\nIf you're using Node / Webpack / Rollup / Browserify, etc, simply require the language module, then register it with Highlight.js.\n\n```javascript\nvar hljs = require('highlight.js');\nvar hljsRobotsTxt = require('highlightjs-robots-txt');\n\nhljs.registerLanguage(\"robots-txt\", hljsRobotsTxt);\nhljs.highlightAll();\n```\n\n\n## License\n\nHighlight.js is released under the MIT License. See [LICENSE][1] file\nfor details.\n\n### Author\n\nThomas LÉVEIL \u003cthomasleveil@gmail.com\u003e\n\n### Maintainer\n\nJosh Goebel \u003chello@joshgoebel.com\u003e\n\n\n## Links\n\n- The official site for the Highlight.js library is \u003chttps://highlightjs.org/\u003e.\n- The Highlight.js GitHub project: \u003chttps://github.com/highlightjs/highlight.js\u003e\n- Learn more about robots.txt: \u003chttps://support.google.com/webmasters/answer/6062608?hl=en\u003e\n\n[1]: https://github.com/highlightjs/highlightjs-robots-txt/blob/master/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhighlightjs%2Fhighlightjs-robots-txt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhighlightjs%2Fhighlightjs-robots-txt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhighlightjs%2Fhighlightjs-robots-txt/lists"}