how do I correctly paste multi-line xml snippet to github wiki when using markdown

前端 未结 2 1860
广开言路
广开言路 2021-01-30 08:13

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 us

相关标签:
2条回答
  • 2021-01-30 08:30

    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.

    0 讨论(0)
  • 2021-01-30 08:37

    Replace all the less-than < and greater-than > symbols with &lt; and &gt; respectively, then wrap in <pre> and <code> as before.

    0 讨论(0)
提交回复
热议问题