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.

    结束

    正文结束啦啦啦啦~

  • 相关阅读:
    Hibernate缓存机制
    如何建立索引
    数据库索引及基本优化入门
    索引优化-2
    索引优化-1
    Linux基本命令参数
    Spring 依赖注入(控制反转)介绍
    Linux的软连接和硬连接
    聚簇索引(Clustered Index)和非聚簇索引 (Non- Clustered Index)
    常见和链表相关的算法
  • 原文地址:https://www.cnblogs.com/llil/p/12501820.html
Copyright © 2011-2022 走看看