使用markdown时如何将多行xml代码段正确粘贴到github wiki [英] how do I correctly paste multi-line xml snippet to github wiki when using markdown

查看:335
本文介绍了使用markdown时如何将多行xml代码段正确粘贴到github wiki的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为我的项目创建一个github Wiki.但是我无法将Spring bean xml文件中的代码片段格式化为该wiki.正确的做法是什么?我尝试使用pre标记,code标记,多行代码标记等.但是它根本没有显示或在同一行中显示了所有内容.

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.

推荐答案

不能100%地确定这是否相同,但是我只是在我的readme.md中设置了一些xml片段,并使用了

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>
```

符号.

这篇关于使用markdown时如何将多行xml代码段正确粘贴到github wiki的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆