halo-sigs / plugin-highlightjs Goto Github PK
View Code? Open in Web Editor NEW集成 highlight.js 为文章提供代码块高亮渲染
Home Page: https://halo.run/store/apps/app-sqpgf
License: GNU General Public License v3.0
集成 highlight.js 为文章提供代码块高亮渲染
Home Page: https://halo.run/store/apps/app-sqpgf
License: GNU General Public License v3.0
I clone the source code and intend to put zig.min.js in the directory to build the jar file, but it shows insufficient permissions. I don't know much about java and front-end knowledge, I'll put the link to the zig.min.js file I found below, Can this language be supported?
https://github.com/fwx5618177/highlightjs-zig/blob/master/dist/zig.min.js
halo 2.2 版本中,进入插件设置界面,点击保存,无反应,不生效,代码不高亮。
使用的是默认的 earth 主题
启用插件后,看到js文件引用成功输出至HTML页面,但代码高亮未生效。
通过代码注入的方式添加 <script>hljs.highlightAll();</script>
后成功渲染。
不知道是不是因为 1.x 迁移的文章的缘故
文章内容代码部分如下:
<pre><code>some code...
some code...
</code></pre>
会让代码块多出横向滚动条,而且鼠标放在横向滚动条上时会鬼畜。点击复制按钮又会莫名出现竖向滚动条。
使用的主题是Walker
代码块高亮主题atom-one-dark
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.