代码高亮预览


一种博客园代码高亮美化方案。

#include <iostrteam>
#define wyf juruo
using namespace std;

int main(int argc,char **argv){
    int numbers[20];
    float average,total;
    for (int i=0;i<=19;i++){
        //active breakpoint
        numbers[i]=i;
        total+=i;
    }
    average=total/20.0;
    cout<<"total:"<<total<<"\nAverage:"<<average;
    getch();
    return 0;
}

代码:CSS

/*适用于cpp*/

.syntaxhighlighter .preprocessor { 
    color: #f78aaf!important;
}

.syntaxhighlighter .keyword {
    font-weight: normal!important;
    color: #64B5F6!important;
}

.syntaxhighlighter .plain, .syntaxhighlighter .plain a {
    color: #fee!important;
}

.syntaxhighlighter .color1, .syntaxhighlighter .color1 a {
    color: gray!important;
}

.syntaxhighlighter .comments, .syntaxhighlighter .comments a {
    color: #8BC34A!important;
}

.syntaxhighlighter .string, .syntaxhighlighter .string a {
    color: #FF5722!important;
}

.syntaxhighlighter table td.gutter .line {
    padding: 0 .5em 0 .5em!important;
    text-align: right!important;
}

.syntaxhighlighter .line.alt1, .syntaxhighlighter .line.alt2 {
    background-color: #000!important;
}

.syntaxhighlighter a, .syntaxhighlighter div, .syntaxhighlighter code, .syntaxhighlighter table, .syntaxhighlighter table td, .syntaxhighlighter table tr, .syntaxhighlighter table tbody, .syntaxhighlighter table thead, .syntaxhighlighter table caption, .syntaxhighlighter textarea{
font-family: fari momo !important;
}

  

优质内容筛选与推荐>>
1、python-PEP8 Python 编码规范整理
2、2017 CERC
3、Spring Boot 构建WAR包
4、CodeForces - 816A Karen and Morning 解题
5、Nginx+PHP “No input file specified”错误的解决办法


长按二维码向我转账

受苹果公司新规定影响,微信 iOS 版的赞赏功能被关闭,可通过二维码转账支持公众号。

    阅读
    好看
    已推荐到看一看
    你的朋友可以在“发现”-“看一看”看到你认为好看的文章。
    已取消,“好看”想法已同步删除
    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号





    联系我们

    欢迎来到TinyMind。

    关于TinyMind的内容或商务合作、网站建议,举报不良信息等均可联系我们。

    TinyMind客服邮箱:support@tinymind.net.cn