I am trying to create a github wiki for my project. But I am unable to format a snippet from a Spring beans xml file, into this wiki. What is the proper way to do it? I tried using pre
tag, code
tag, the multiline code tag etc. But either it is not getting displayed at all or It displays everything in the same line.
There are two ways to format code in Markdown. You can either use inline code, by putting backticks (`) around parts of a line, or you can use a code block, which some renderers will apply syntax highlighting to.
Press CTRL + SHIFT + P. Select Markdown: Create Table of Contents.
not 100% sure if this is the same thing or not, but I just setup some xml snippets in my readme.md and used the
<myxml>
<someElement />
</myxml>
notation.
Replace all the less-than <
and greater-than >
symbols with <
and >
respectively, then wrap in <pre>
and <code>
as before.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With