stratum-mining / stratumprotocol.org

Website for the Stratum V2 bitcoin mining protocol
https://stratumprotocol.org
MIT License
13 stars 20 forks source link

Improve code boxes highlighting #145

Closed pavlenex closed 1 year ago

pavlenex commented 1 year ago

Currently code is not rendered properly.

Preview

We have to add that so that code tutorials visibility is better. Good example is what LDK does or what BTCPay Server does

joshr4 commented 1 year ago

Code highlighting can be enabled by adding a language after the markdown triple backticks - https://prismjs.com/#supported-languages

I only see code snippets in your recent PR - https://github.com/stratum-mining/stratumprotocol.org/pull/142

Abhijay007 commented 1 year ago

@pavlenex any assistance required on this one? or is it gonna covered in one of your open PRs?

pavlenex commented 1 year ago

@Abhijay007 I just got help from @dennisreimann on this one ,he suggested this, which I'll now add in my PR #142

code {
  font-size: .9em;
  background-color: #282c34;
  padding: .2em .4em;
  border-radius: .5em;
}