codereport / jsource

J Language Source Code. Livestream links ⬇️
https://www.youtube.com/playlist?list=PLVFrD1dmDdvfVhYLU_iKkV67X9XqCJLWe
Other
38 stars 20 forks source link

Readded syntax highlighting. #107

Closed Sebanisu closed 3 years ago

Sebanisu commented 3 years ago

Referenced: https://stackoverflow.com/a/29981184/2588183 Rows in tables have to have everything on the same line in markdown. So you can use the html PRE tag to set the language of the code block example. Since the markdown way of doing syntax highlighting requires 3+ lines.

Sebanisu commented 3 years ago

hmm I forgot that markdown has a bg color in the tables. So the bg color of the PRE block doesn't match half the rows. So i'll need to see about blocking the bg color on the tag. So don't merge yet.

Sebanisu commented 3 years ago

I'm not sure how to force github to not set the bg of something. It just kinda looks bad in when it's in a table. So I'll close this for now.

codereport commented 3 years ago

@Sebanisu Yea i actually tried to get this working as well. I came across another SO post on inline code Github syntax highlighting but it apparently only works on Github pages. Really surprised GH doesn't have support for this ... seeing there whole website is about code.