ArdanaLabs / Ardana-dApps

BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

Fix syntax highlighting in code blocks #52

Closed toastal closed 1 year ago

toastal commented 1 year ago

While other forges may support sh-session for syntax highlighting GitHub is not one of those forges. To get the expected highlighting you need a) console as the syntax and b) some sigil to start the line to indicated that it’s console input and not output. This commit normalizes these code blocks. Additionally, seeing the problems folks on zsh seem to have with the #, it’s better to string escape the that part of the shell so it’s compatible with bash, dash, fish, and zsh.

Also, one Nix block was missing a nix highlight.

To see a rendered preview of the Markdown on Microsoft GitHub, you can visit the branch's README: https://github.com/ArdanaLabs/Ardana-dApps/blob/readme-syntax/README.md

Closes

other changes