Skip to content

Marking up code blocks for unsupported languages #170

Closed Answered by hamishwillee
hamishwillee asked this question in Code examples
Discussion options

You must be logged in to vote

The consensus appears to be:

  • We allow any language supported by prism except for the blocklist (blockslist is currently just WebIDL).
  • We don't add "all languages" by default. Someone has to "want" them and be willing to document them.
  • Users can request a new language via a Yari PR, noting:
    • the language and identifier used on MDN.
      • Identifier should match Github - we're trying to be close to GFM.
      • If there are two possible identifiers, the most common contraction should be documented (and enforced) on MDN.
      • The identifier should be added to the alias list even if prism already supports it "natively". This allows the list of identifiers to be inferred from the alias list.
    • a link to the la…

Replies: 4 comments 14 replies

Comment options

You must be logged in to vote
1 reply
@queengooborg
Comment options

Comment options

You must be logged in to vote
2 replies
@hamishwillee
Comment options

@hamishwillee
Comment options

Comment options

You must be logged in to vote
11 replies
@wbamberg
Comment options

@Josh-Cena
Comment options

@hamishwillee
Comment options

@teoli2003
Comment options

@hamishwillee
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by hamishwillee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants