the-programmers-hangout / website

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

Adds dotenv highlight support for Prism #371

Closed Mahamed-Belkheir closed 3 years ago

Mahamed-Belkheir commented 3 years ago

Adds highlighting support for dotenv codeblocks. Fixes #367

highlighting strings after = without capturing it requires positive lookahead, which isn't supported in all browsers, so I added a check just in case, but I wasn't able to define the string settings after defining attribute and operator separately, for some, reason adding string's config afterwards wasn't working, so I had to repeat a little code in the if blocks.

veksen commented 3 years ago

thank you!