zoukankan      html  css  js  c++  java
  • 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>
    
    这里藏着折叠内容
    
    <?xml version="1.0" encoding="utf-8"?>
    <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
      <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
      <ImportGroup Label="ExtensionTargets" />
    </project>
    

    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.

    结束

    正文结束啦啦啦啦~

  • 相关阅读:
    golang ---cron
    Maven私库安装与配置
    Java8新特性之重复注解(repeating annotations)浅析
    String split
    如何将xml转为python中的字典
    json字符串和dict互转
    为什么空格拷贝到linux 会变成两个
    python之socket编程
    ntpdate设置
    Nginx配置ssl证书
  • 原文地址:https://www.cnblogs.com/llil/p/12501820.html
Copyright © 2011-2022 走看看