This extension provides syntax highlighting for requirements.txt and constraints.txt files in the Zed code editor.
It leverages the tree-sitter-requirements grammar to ensure accurate and visually appealing syntax highlighting.
It also support TODO highlighting using the Comment extension.
Zed does not (yet ?) support registering globs from extensions, so you will need to put these lines in your settings.json :
{
"file_types": {
"Python constraints": [
"*constraints*.txt"
],
"Python requirements": [
"**/requirements/*.{in,txt}",
"*requirements*.{in,txt}"
]
}
}This should cover the most common cases.
If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.
This extension is licensed under the MIT License.