Hi Prism team,
I would like to request support for syntax highlighting of .env files (environment variable configuration files).
Why This Feature Is Useful
.env files are widely used in:
Node.js
Python
Docker
PHP / Laravel
Frontend frameworks (Next.js, Nuxt, Vite)
CI/CD pipelines
Having syntax highlighting would improve readability by visually distinguishing:
Keys
Values
Comments (# comment)
Variable expansions (${VAR})
Proposed Approach
A new language definition such as:
prism-env
or
dotenv
Suggested Highlighting Rules
Keys: KEY_NAME
Assignment operator: =
Values: strings, numbers, booleans
Comments: lines starting with #
Variable references: ${VAR_NAME}