切换hexo+next代码高亮
主站点配置文件改成这个样子1
2
3
4
5highlight:
enable: true
line_number: true
auto_detect: false <<-----//这里改成false
tab_replace:
next主题配置文件更改1
2
3
4
5
6# Code Highlight theme
# Available value:
# normal | night | night eighties | night blue | night bright
# https://github.com/chriskempson/tomorrow-theme
# highlight_theme: normal
highlight_theme: night eighties
密码移位
1 | ch = (ch+i-'a')%26+'a'; |
not is1
2
3
4
5
6
7
if (ch+i>'z'){
ch = (ch+i-'z')+'a';
}
else{
ch = ch+i;
}