Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

语法高亮问题 #201

Open
HectorJiang opened this issue Mar 25, 2020 · 3 comments
Open

语法高亮问题 #201

HectorJiang opened this issue Mar 25, 2020 · 3 comments

Comments

@HectorJiang
Copy link

能否自定义语法高亮(某个配置文件),或者是能够与第三方库很好的结合,如hightlight.js,prisim.js等。

@snailjustgo
Copy link

snailjustgo commented Jul 18, 2020

有这个功能的, 使用Wiz.Editor.md编辑器,代码块的语言类型后面加一个,d4,比如:```python,d4 ...代码... ``` 就是monokai样式,还有其他的样式,可以参考为知自己的笔记里面的代码块样式选择,百度贴吧有解答:https://tieba.baidu.com/p/5303866527

@snailjustgo
Copy link

代码块添加样式
样式效果

@snailjustgo
Copy link

snailjustgo commented Jul 18, 2020

这个方式的好处就是,除了代码高亮以外,在为知笔记“夜间模式”下也可以正常显示高亮
样式效果夜间高亮
但是,好像有一个BUG,有时候这种高亮的设置方式,会失效,可能是和为知的代码有冲突

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants