2

Documentation clearly states that code block inside sentence marked using `backticks`.

```Language_Name_Here
For for multi-line block we can use triple backticks

```

But how I can specify language name for embedded block of code? Like <XmlNode Prop="Value" />? I just want to prettify my readme.md to look like this inside sentence:

<XmlNode Prop="Value" />

Looks like the same question related to stackowerflow itself. "language-all" comment is not working for embedded code blocks.

1 Answer 1

1

It does not appear to me that this is possible. The spec refers to this as an info string for the code fence (aka fenced code block). The spec for code spans (inline code like you are asking about) does not support info strings.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.