zoukankan      html  css  js  c++  java
  • markdown 常用语法 (在macdown内使用正常)

     

    顺便附上 MacDown的官网,我觉得MacDown挺好用的,推荐给大家!

     

     

    #一级标题

    ##二级标题

    ###三级标题

    ####四级标题

    #####五级标题

    ######六级标题

     

    ***

     

    ###使用分割线

    ***

     

    ###使用*加空格 来使用无序列表

     

    * 1

     

    * 2

     

    * 3

     

    ***

    ###用数字加.加空格 来使用有序列表

     

    1. 1

    2. 2

    3. 3

    4. 4

     

    ***

    ###使用引用

    > 引用需要使用>和空格

     

    ***

    ###插入链接

    [baidu](http://baidu.com)

     

    ***

    ###插入在线图片

    ![icon](https://www.baidu.com/img/bd_logo1.png)

     

    ***

    ###使用粗体、斜体

    **这就是粗体**

    *这就是斜体*

    ***这就是斜粗体***

     

     

    ***

    ##Task list

    * [x] finished
    * [ ] unfinished

    ~~使用删除线~~


    ***
    ###使用代码框

    #####这种不支持代码的语法高亮
    ~~~
    @IBAction func showMessage(){

    let alertController = UIAlertController(title: "welcome to my first app", message: "hello world", preferredStyle: UIAlertControllerStyle.Alert)

    alertController.addAction(UIAlertAction(title: "OK", style: UIAlertActionStyle.Default, handler: nil))

    self.presentViewController(alertController, animated: true, completion: nil)

    }
    ~~~


    ```objectivec  <--- 这里输入需要高亮的语言的名称就可以高亮了,但是还要到设置里启用语言高亮选项才行
    @IBAction func showMessage(){

    let alertController = UIAlertController(title: "welcome to my first app", message: "hello world", preferredStyle: UIAlertControllerStyle.Alert)

    alertController.addAction(UIAlertAction(title: "OK", style: UIAlertActionStyle.Default, handler: nil))

    self.presentViewController(alertController, animated: true, completion: nil)

    }
    ```

    如果需要使用语法高亮,这个文档有必要看看: 点击查看文档 - 该页的Syntax Highlighting部分可查看支持高亮的语法以及名称


    注意事项:

    任务清单和代码高亮都需要开启设置选项才行,如图:

     如果删除线没有正常显示,那就打开设置开启该选项(如图,选项:Strikethrough)。但是建议全部开启!


     

  • 相关阅读:
    登陆跳转回原来页面
    magento获取当前浏览器的url和对url判断处理
    Magento获取购物车所有信息
    magento查询商品库存
    金额转换成0.00的形式
    Magento网站运行原理解析
    linux下如何禁用root账户直接登陆
    web前端常用的10个jQuery特效总结
    js函数
    网站css
  • 原文地址:https://www.cnblogs.com/ficow/p/5431609.html
Copyright © 2011-2022 走看看