iterative / example-repos-dev

Source code and generator scripts for example DVC projects
https://dvc.org/doc
21 stars 13 forks source link

Syntax highlighting for dvc.lock and .dvc files #72

Closed skshetry closed 3 years ago

skshetry commented 3 years ago

We should add syntax highlighting for dvc.lock and .dvc files as an yaml file. We can do so by using .gitattributes to force Linguist to highlight as such in Github.

The following text should be kept in .gitattributes:

*.dvc linguist-language=YAML
dvc.lock linguist-language=YAML

See https://github.com/skshetry/example-get-started/blob/e67562ec1983bbcee0e5282227d0d47564c54eb2/dvc.lock for an example.

Until we add the dvc.lock and .dvc to the linguist for syntax highlighting those files automatically.