如何在Github Wiki中设置JSON块的样式? [英] How to style a JSON block in Github Wiki?

查看:73
本文介绍了如何在Github Wiki中设置JSON块的样式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以很好地格式化Github Wiki中的代码/c JSON代码(首选Markdown)?

Is there a way to nicely format/style JSON code in Github Wiki (i.e Markdown preferred)?

这种颜色很少(或加粗)且缩进正确的东西:

Something like this with few colors (or bold) and correct indentation:

http://www.freeformatter.com/json-formatter.html#广告输出

推荐答案

可以使用以下块代码语法来应用某些颜色语法丰富功能

Some color-syntaxing enrichment can be applied with the following blockcode syntax

```json
Here goes your json object definition
```

注意::这不会美化json表示形式.为此,以前可以依赖外部服务,例如 jsbeautifier.org ,然后将经过修饰的结果粘贴到Wiki.

Note: This won't prettify the json representation. To do so, one can previously rely on an external service such as jsbeautifier.org and paste the prettified result in the wiki.

这篇关于如何在Github Wiki中设置JSON块的样式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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