问题
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.
回答1:
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
```xml
<myxml>
<someElement />
</myxml>
```
notation.
回答2:
Replace all the less-than < and greater-than > symbols with < and > respectively, then wrap in <pre> and <code> as before.
来源:https://stackoverflow.com/questions/9751548/how-do-i-correctly-paste-multi-line-xml-snippet-to-github-wiki-when-using-markdo