the-programmers-hangout / website

🌳 TPH website
https://theprogrammershangout.com
MIT License
102 stars 67 forks source link

Create custom support for syntax highlighting .env files for prism #367

Closed veksen closed 3 years ago

veksen commented 4 years ago

.env files are a simple key value delimited by =:

A regex would be: /^\s*([\w.-]+)\s*=\s*(.*)?\s*$/

Could look at https://github.com/PrismJS/prism/blob/master/components/prism-erb.js for implementation example, and then imported at the top of this file: https://github.com/the-programmers-hangout/website/blob/master/src/components/Markdown/index.tsx.

axiw commented 4 years ago

I can work on this if no one shows interest in TPH.

Mahamed-Belkheir commented 3 years ago

can I be assigned to this?