Env Highlighter Pro

All plugins

By Sanjeet Kumar

Version 4.1.0

Env Highlighter Pro A CodeMirror 6 powered .env toolkit for Acode: 31 themes, real diagnostics, secret masking, reference badges, smart autocomplete and copy/export commands. Version License Features - Native CodeMirror 6 .env language support: comments, export , quoted and multi-line values, $VAR / ${VAR} / ${VAR:-default} references, URLs and connection strings, numbers, booleans and null - 31 themes - Diagnostics with messages : underlined text shows what is wrong (hover or tap) - Secret masking : values of secret-looking variables are hidden until your cursor is on them. Detection looks at every word of the name ( SECRET , TOKEN , PASSWORD , KEY , URL , DSN , ...), skips public variables ( NEXT PUBLIC , EXPO PUBLIC , PUBLISHABLE KEY ), and also recognises secret-looking values such as redis://:pw@host , JWTs and AWS / GitHub / Stripe / Slack tokens - Reference badges showing how often each variable is used ( ${NAME} / $NAME ) - Context-aware autocomplete: variable names, ${REF} to variables in the same file, common values - Commands to copy a variable's name or value and to export the file as JSON, YAML, CommonJS or TypeScript - Compare the file with its .env.example Auto Activation The plugin activates for: - .env - .env.local , .env.production , .env.development , .env.test , .env.staging - .env.example , .env.sample , .env.template , .env.dist - any other .env. file (for example .env.development.local ) and .env Code and data files that merely look similar ( .env.json , .env.ts , ...) are left alone. Commands - Copy ENV Variable Name - Copy ENV Variable Value - Copy ENV as JSON - Copy ENV as YAML - Copy ENV as JavaScript Module - Copy ENV as TypeScript Module - Toggle Secret Value Masking - Compare with .env.example Exports contain the value as a program would read it: surrounding quotes are removed and \n is expanded inside double quotes. If a variable is defined twice the last definition wins. Diagnostics | Severity | Problem | | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | | Error | Invalid KEY=value syntax | | Error | Unclosed quote | | Warning | Duplicate variables | | Warning | Empty assignment | | Info | Value with spaces but no quotes | | Info | Reference to a variable that is not defined in the file (not reported when a…