TheOdinProject / theodinproject

Main Website for The Odin Project

Home Page:http://www.theodinproject.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chore: Additional Prism language support

MaoShizhong opened this issue · comments

Checks

  • I have thoroughly read and understand The Odin Project Contributing Guide
  • The title of this issue follows the Chore: brief description of chore format, e.g. Chore: Lesson complete button does not update on click
  • Would you like to work on this issue?

Chore description

#4498 added EJS to our Prism support languages, as we were previously missing it.
I was thinking about any other languages we would reasonably see in code blocks in our curriculum that have Prism support but aren't added to our supported languages list.

At least in Node land, it would be reasonable for us to see .env file snippets when we revamp the relevant lessons. This would require the properties language to appropriately highlight. The below snippet can be pasted into the Prism test drive playground using the properties language.

foo=bar
blip=blop

Additional languages that may be reasonable for us to add to the PrismJS languages array:

  • JSON
  • YAML
  • Bash

Acceptance criteria

  • Add any combination of the above languages to the PrismJS languages array in .babelrc

Additional Comments

No response

I agree on all fronts. I'm particularly surprised bash isn't currently highlighted, which is something I've somehow not noticed before your post 😆 . There are snippets with the bash language set all over the curriculum.

those all sound like solid additions to me too @MaoShizhong. I thought we definitely had bash as well 😆