• 自定义博客园代码格式


    实现方式

    在设置->自定义css里面加入css代码即可。比如github风格

    /*.cnblogs_code { background-color: #f5f5f5;border:1px}
    .cnblogs_code {border-right:gray 1px solid;border-top:gray 1px solid;border-left:gray 1px solid;border-bottom:gray 1px solid;background-color:#fff;padding:2px}*/
    .cnblogs_code .hll { background-color: #ffffcc }
    .cnblogs_code .c { color: #999988; font-style: italic } /* Comment */
    .cnblogs_code .err { color: #a61717; background-color: #e3d2d2 } /* Error */
    .cnblogs_code .k { color: #000000; font-weight: bold } /* Keyword */
    .cnblogs_code .o { color: #000000; font-weight: bold } /* Operator */
    .cnblogs_code .cm { color: #999988; font-style: italic } /* Comment.Multiline */
    .cnblogs_code .cp { color: #999999; font-weight: bold; font-style: italic } /* Comment.Preproc */
    .cnblogs_code .c1 { color: #999988; font-style: italic } /* Comment.Single */
    .cnblogs_code .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
    .cnblogs_code .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
    .cnblogs_code .ge { color: #000000; font-style: italic } /* Generic.Emph */
    .cnblogs_code .gr { color: #aa0000 } /* Generic.Error */
    .cnblogs_code .gh { color: #999999 } /* Generic.Heading */
    .cnblogs_code .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
    .cnblogs_code .go { color: #888888 } /* Generic.Output */
    .cnblogs_code .gp { color: #555555 } /* Generic.Prompt */
    .cnblogs_code .gs { font-weight: bold } /* Generic.Strong */
    .cnblogs_code .gu { color: #aaaaaa } /* Generic.Subheading */
    .cnblogs_code .gt { color: #aa0000 } /* Generic.Traceback */
    .cnblogs_code .kc { color: #000000; font-weight: bold } /* Keyword.Constant */
    .cnblogs_code .kd { color: #000000; font-weight: bold } /* Keyword.Declaration */
    .cnblogs_code .kn { color: #000000; font-weight: bold } /* Keyword.Namespace */
    .cnblogs_code .kp { color: #000000; font-weight: bold } /* Keyword.Pseudo */
    .cnblogs_code .kr { color: #000000; font-weight: bold } /* Keyword.Reserved */
    .cnblogs_code .kt { color: #445588; font-weight: bold } /* Keyword.Type */
    .cnblogs_code .m { color: #009999 } /* Literal.Number */
    .cnblogs_code .s { color: #d01040 } /* Literal.String */
    .cnblogs_code .na { color: #008080 } /* Name.Attribute */
    .cnblogs_code .nb { color: #0086B3 } /* Name.Builtin */
    .cnblogs_code .nc { color: #445588; font-weight: bold } /* Name.Class */
    .cnblogs_code .no { color: #008080 } /* Name.Constant */
    .cnblogs_code .nd { color: #3c5d5d; font-weight: bold } /* Name.Decorator */
    .cnblogs_code .ni { color: #800080 } /* Name.Entity */
    .cnblogs_code .ne { color: #990000; font-weight: bold } /* Name.Exception */
    .cnblogs_code .nf { color: #990000; font-weight: bold } /* Name.Function */
    .cnblogs_code .nl { color: #990000; font-weight: bold } /* Name.Label */
    .cnblogs_code .nn { color: #555555 } /* Name.Namespace */
    .cnblogs_code .nt { color: #000080 } /* Name.Tag */
    .cnblogs_code .nv { color: #008080 } /* Name.Variable */
    .cnblogs_code .ow { color: #000000; font-weight: bold } /* Operator.Word */
    .cnblogs_code .w { color: #bbbbbb } /* Text.Whitespace */
    .cnblogs_code .mf { color: #009999 } /* Literal.Number.Float */
    .cnblogs_code .mh { color: #009999 } /* Literal.Number.Hex */
    .cnblogs_code .mi { color: #009999 } /* Literal.Number.Integer */
    .cnblogs_code .mo { color: #009999 } /* Literal.Number.Oct */
    .cnblogs_code .sb { color: #d01040 } /* Literal.String.Backtick */
    .cnblogs_code .sc { color: #d01040 } /* Literal.String.Char */
    .cnblogs_code .sd { color: #d01040 } /* Literal.String.Doc */
    .cnblogs_code .s2 { color: #d01040 } /* Literal.String.Double */
    .cnblogs_code .se { color: #d01040 } /* Literal.String.Escape */
    .cnblogs_code .sh { color: #d01040 } /* Literal.String.Heredoc */
    .cnblogs_code .si { color: #d01040 } /* Literal.String.Interpol */
    .cnblogs_code .sx { color: #d01040 } /* Literal.String.Other */
    .cnblogs_code .sr { color: #009926 } /* Literal.String.Regex */
    .cnblogs_code .s1 { color: #d01040 } /* Literal.String.Single */
    .cnblogs_code .ss { color: #990073 } /* Literal.String.Symbol */
    .cnblogs_code .bp { color: #999999 } /* Name.Builtin.Pseudo */
    .cnblogs_code .vc { color: #008080 } /* Name.Variable.Class */
    .cnblogs_code .vg { color: #008080 } /* Name.Variable.Global */
    .cnblogs_code .vi { color: #008080 } /* Name.Variable.Instance */
    .cnblogs_code .il { color: #009999 } /* Literal.Number.Integer.Long */
    

    这么做的原因

    为了最终可以使用python + markdown + xmlrpc实现博客,笔记,github同步。

  • 相关阅读:
    01.Sencha ExtJS 6
    02.Sencha ExtJS 6
    关于Jquery的delegate绑定事件无效
    细说 Form (表单)
    Rquest Request[""];Request.Form[""];Request.QueryString[""]
    一文看懂web服务器、应用服务器、web容器、反向代理服务器区别与联系
    vs 调试不进入断点
    HttpWebRequest类
    C# 利用 Windows服务模板 创建、安装与卸载Windows服务
    如何搭建win10 asp开发环境安装iis10
  • 原文地址:https://www.cnblogs.com/WeyneChen/p/6337487.html
Copyright © 2020-2023  润新知