Why Nostr? What is Njump?
2024-08-16 07:16:23

Terence Eden on Nostr: An #HTML question for you fine folk. Should the `lang` attribute be used to indicate ...

An #HTML question for you fine folk.

Should the `lang` attribute be used to indicate computer programming languages?

For example
`<code lang="python">…</code>`

I know that the spec says it should be a valid BCP 47 language tag. But I wonder if that limitation is still useful.

What other semantic ways are there of indicating the programming language of a code snippet?
Author Public Key
npub1x595mggkh492xtl25nfk5j4xnd2yuscfgmp2n7s6csanxsn99vlq5egect