You are viewing a single thread.
View all comments
67 points

Code? .md files on GitHub

permalink
report
reply
3 points

I’d go PostScript, since it’s Turing-complete.

permalink
report
parent
reply
12 points

I’ve been having trouble getting syntax highlighting to work on my ‘```’ fenced code blocks. I give it the right/supported language identifier, but nothing changes.

I’m using neovim with a bunch of lsp plugins and treesitter. Anyone have dotfiles with markdown code syntax highlighting working?

permalink
report
parent
reply
2 points
*

Have you installed the treeesitter grammars for those languages with :TSInstall language_name or in your treesitter config?

permalink
report
parent
reply
2 points

This is pretty much all that’s needed. The language in the block is identified via a name that follows the opening triple backtick. E.g.:

```python some carefully indented code ```

permalink
report
parent
reply
6 points
*

Are u using Mason and LSPconfig?

edit: Oh, I don’t know that getting syntax highlighting in the blocks is something i’ve seen

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 3.7K

    Monthly active users

  • 1.1K

    Posts

  • 39K

    Comments