Markdown 编辑效果

代码

1.命令行

$ cd /home/xxx
$ ls -la

2.代码段

module_init(hello_module_init);
module_exit(hello_module_cleanup);
MODULE_LICENSE("GPL");

折叠

1.折叠文本

<details>
    <summary>这里藏着折叠内容</summary>
    <pre>
        <xmp>
        //文本
        </xmp>
    </pre>
</details>
这里藏着折叠内容

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt;
  &lt;Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /&gt;
  &lt;ImportGroup Label="ExtensionTargets" /&gt;
&lt;/project&gt;

2.折叠代码

<details>
    <summary>这里藏着折叠内容</summary>
    <pre>
        <code> 
        //代码
        </code>
    </pre>
</details>

折叠代码中头文件尖括号会被转义,这里粗暴写成'< '

这里藏着折叠内容
 
#include< linux/kernel.h>
#include 
#include 
static int __init hello_module_init(void)
{
        printk("<0>""Hello, hello module is installed !\n");
        return 0;
}
static void __exit hello_module_cleanup(void)
{
        printk("<0>""Good-bye, hello module was removed!\n");
}
module_init(hello_module_init);
module_exit(hello_module_cleanup);
MODULE_LICENSE("GPL");

表格

项(左对齐) 描述(居中)
kernel/include 内核头文件
kernel/arch/arm/include 内核平台相关
kernel/arch/arm/include/generated 内核编译后生成的头文件放置目录
kernel/arch/arm/mach-s5p6818/include mach-xx需要根据芯片选择

图片

链接

[描述词](链接)

This is an example link.

结束

正文结束啦啦啦啦~

posted @ 2020-03-16 09:05  派大海星  阅读(211)  评论(0编辑  收藏  举报