Comments (6)
在hexo的配置文件里highlight的配置是true吗?上下篇的功能可以自己定制。
from huno.
from huno.
vim 下面的是效果,只有第一行显示行号
from huno.
解决了。。我的代码快没有指定 语言。 指定了语言就ok了 麻烦您了
from huno.
1、清除浏览器缓存看看。
2、高亮配置不要在theme的_config.yml
中配置,huno不支持这种配置。应该在hexo的_config.yml
中配置。hexo的_config.yml
默认启用了高亮:
highlight:
enable: true
line_number: true
auto_detect: true
tab_replace:
除非是你这边要使用其他的高亮方法。
3、可否把markdown博客中代码那一块截个图?用firebug把生成网页中显示代码的那部分html看看有什么问题?
生成的html是:
<table>
<tbody>
<tr>
<td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td>
<td class="code"><pre><span class="line"><span class="keyword">var</span> i = <span class="number">0</span>;</span><br><span class="line"><span class="keyword">var</span> log = <span class="function"><span class="keyword">function</span>(<span class="params"></span>) </span>{</span><br><span class="line"> <span class="built_in">console</span>.log(<span class="built_in">arguments</span>);</span><br><span class="line">};</span><br></pre></td>
</tr>
</tbody>
</table>
from huno.
谢谢! 我没有指定语言
from huno.
Related Issues (20)
- 您好~.~ 想问下主题相关的归档页面问题 HOT 1
- 关于标签 HOT 1
- fancybox支持相关 HOT 2
- 作者你好,问下github地址在哪里配置?
- 请问一下huno的头像logo如何设置呀? HOT 2
- 请问如何隐藏侧边栏?
- __('category_title')
- 侧边栏问题 HOT 1
- 如何添加Gitment评论呀 HOT 1
- 关于自己设定的问题 HOT 2
- 移动端兼容性问题
- 许可协议? HOT 3
- favicon和logo文件需要放在哪个目录才能渲染出来? HOT 1
- 关于不能显示新文章发布的问题(非缓存、浏览器问题) HOT 1
- 请问如何设置多语言? HOT 1
- 本人是小白 想请教怎么更改hexo字样呢
- 如何引入一个全局音乐播放器
- demo
- 老哥,你的huno's demo被劫持了 HOT 2
- 翻页样式重复问题 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from huno.