Robots.txt Syntax Highlighting Extension for VS Code
![Rating](https://vsmarketplacebadges.dev/rating-short/spences10.robots-txt.svg)
This extension provides syntax highlighting for robots.txt files in Visual Studio Code, making it easier to read and write them.
Read the blog post on Making a robots.txt syntax highlighter for VS Code for more information.
![robots-example-image](https://github.com/spences10/robots-txt-syntax-highlighting/raw/HEAD/.github/assets/robots-example-image.png)
Features
- Syntax highlighting for standard robots.txt directives including User-agent, Disallow, Allow, Sitemap, and Host.
- Highlights comments starting with #.
- Added snippets for common directives.
Supported Directives
This extension supports the following robots.txt directives:
User-agent : Identifies the robot the rule applies to.
Disallow : Specifies a URL path that a robot is not allowed to request.
Allow : Specifies a URL path that a robot is allowed to request.
Sitemap : Specifies the URL of a sitemap for the website.
Host : Specifies the preferred domain for the website.
Publishing
Set package version with npm
npm version patch # major 1.0.0 | minor 0.1.0 | patch 0.0.1
vsce package
vsce publish
For details on getting a personal access token check here.
| |