zoukankan      html  css  js  c++  java
  • 如何在博客中使用sublimeText风格的代码样式

    1、安装sublimeText 3 

    2、安装插件sublimehighlight ,简单点其实跟安装其他ST插件是一样的,先Ctrl+Shift+P调出control panel,然后输入install package,不用输完,当输入了Install后便出来了,然后回车等待插件列表的显示,这个过程大概有个几秒钟的样子。

    3、如果第2步安装失败,退出刚才的界面重新输入Ctrl+Shift+P调出control panel,输入add repository 选中并回车,这时界面下方会出现输入repo地址的地方,将https://github.com/n1k0/SublimeHighlight/tree/python3输入后回车确定。

    4、完成第3步以后,继续按第2步操作。

    5、设置喜欢的样式,设置方法是依次点开preferences=>package settings=>sublimehighlight=>settings - user,输入

      {

        “theme" : "monokai"

      }

      样式可以在插件的GitHub主页看到,名称有:autumn,borland,bw,colorful,default,emacs,friendy,fruity,manni,monokai,mruphy,native,...

    6、编写好代码,依次点开edit=>highlight=>convert to html,此命令会将代码转成HTML形式。之后,在新出来的标签中,请将class为highlight的div直接复制,在写博客的时候直接以HTML方式编辑博客

  • 相关阅读:
    UESTC
    Education Round 8 A
    Gym
    Gym
    hdoj 1159 Common Subsequence
    UVA
    UESTC
    51Nod 1068 Bash游戏 V3 (这规律不好找)
    51Nod 1066 Bash游戏
    51Nod 1002 数塔取数问题
  • 原文地址:https://www.cnblogs.com/toloy/p/8611361.html
Copyright © 2011-2022 走看看