博客高亮代码及使用OpenLiveWriter修改之前博客


简述:  最近查阅前辈资料的时候,看到写的博客很有条理,回头看下自己的乱做麻花,然后来时研究; 他们的代码看起来很漂亮然后我就查资料,在网页版上一直没法出来像他们的格式,后查资料看来的使用客户端工具才能实现,然后查找资料完成了高亮代码配置方法。下面是配置的步骤防止重装系统后忘记怎么设置做此记录:

1. 下载安装 OpenLiveWriterSetup    http://openlivewriter.org/

2. 下载 Memento.OLW_V1.0.0.0.7z  插件   https://files.cnblogs.com/files/memento/Memento.OLW_V1.0.0.0.7z

3. 请将压缩包(Memento.OLW_V1.0.0.0.7z)里的文件拷贝到 C:\Users\用户文件夹\AppData\Local\OpenLiveWriter\app-0.6.0.2\Plugins

网页编辑器是这样的如果设置行号会一起复制过来,觉得有些不便捷。

  1 添加配置文件:
  2 server {
  3     listen 80;
  4     server_name abcd.hujiang.com;        #记得添加Dns解析
  5     rewrite ^(.*) https://$server_name$1 permanent;
  6     }
  7 server {
  8         listen       443;
  9         server_name  abcd.hujiang.com;
 10         ssl on;
 11         ssl_certificate   /usr/local/nginx/crt_ssl/www.sunpear.top.crt;
 12         ssl_certificate_key  /usr/local/nginx/crt_ssl/sunpear.top.key;
 13         ssl_session_timeout 5m;
 14         ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
 15         ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
 16         ssl_prefer_server_ciphers on;
 17 location / {
 18 proxy_read_timeout 300;
 19 proxy_pass https://mail.hujiang.com:443;
 20 proxy_set_header Host $host;
 21 proxy_set_header X-Forwarded-For $remote_addr;
 22 proxy_set_header "Request URL" "";
 23 }
 24 }
添加配置文件:
server {
    listen 80;
    server_name abcd.hujiang.com;        #记得添加Dns解析
    rewrite ^(.*) https://$server_name$1 permanent;
    }
server {
        listen       443;
        server_name  abcd.hujiang.com;
        ssl on;
        ssl_certificate   /usr/local/nginx/crt_ssl/www.sunpear.top.crt;
        ssl_certificate_key  /usr/local/nginx/crt_ssl/sunpear.top.key;
        ssl_session_timeout 5m;
        ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_prefer_server_ciphers on;
location / {
proxy_read_timeout 300;
proxy_pass https://mail.hujiang.com:443;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header "Request URL" "";
}
}


参考自http://www.cnblogs.com/memento/p/5314257.html  感谢Memento 的文章



使用OpenLiveWriter修改之前博客
1.打开 Open recent post

image_thumb1

2.选择来自与博客

image_thumb




posted on 2017-10-18 17:47  sunpear  阅读(592)  评论(0编辑  收藏  举报