网站建设中,中国大陆地区请使用VPN访问,欢迎提建议,关注LSKR Mastodon

Google blogger Prism代码转换工具

Prism代码转换,提供代码高亮和行号直接转换工具
对于prism.js在goolge blogger中使用,我们提供了一个小工具,一键完成,代码的语义修改和代码包裹,直接复制到blogger中即可。

前提条件

我们知道Google blogger支持通过调用相关的脚本和修改一定的设置,可以实现prism.js 修饰代码,实现对代码的行号和高亮功能。
每次我们使用时候,代码需要先转义(避免出现html符号被转义),然后添加pre和code进行包裹。
基于上面的需求,写了一个小工具:
  1. 转义代码
  2. 使用支持特定语言来包裹代码
  3. 实现自动换行功能
地址:https://www.lksr.net/p/prismjs-inserts-html-code-wrapping-tool.html   


发表评论

Cookie Consent
我们使用 Cookie 来了解您如何使用我们的网站并提升您的体验。这包括个性化内容和广告。
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.