AI助手支持GPT4.0
Codeblocks Extended with PrismJS was born of a personal need for a lightweight code highlighter, with special functionality.
使用PrismJS扩展的代码块诞生于个人对具有特殊功能的轻量级代码突出显示的需求。
Many of the other PrismJS based plugins in the repository were either outdated, or were lacking features that I was looking for.
存储库中的许多其他基于PrismJS的插件要么已经过时,要么缺少我一直在寻找的功能。 p>
Features:
功能: p>
classes, and replacing special characters with their HTML safe equivalents.“自定义文本编辑器”按钮用于以最常用的 code>和 code>类包装所选文本,并用其HTML安全等效项替换特殊字符。 li>li>Custom Visual Editor / TinyMCE dropdown button, with the most common languages to wrap selected text.“自定义视觉编辑器” /“ TinyMCE”下拉按钮,其中包含用于包装所选文本的最常用语言。 li>Since this works via wrapping and tags with classes, you can use all custom class settings that PrismJS offers.由于这是通过将 code>和 code>标记与类一起包装而起作用的,因此您可以使用PrismJS提供的所有自定义类设置。 li>No shortcodes to mess with, so you don’t have to worry about losing whitespace between editor modes.没有短代码可弄乱,因此您不必担心在编辑器模式之间丢失空格。 li>No settings page needed: Just activate it and go!无需设置页面:只需激活它即可! li>
code>和 code>类包装所选文本,并用其HTML安全等效项替换特殊字符。 li>li>Custom Visual Editor / TinyMCE dropdown button, with the most common languages to wrap selected text.“自定义视觉编辑器” /“ TinyMCE”下拉按钮,其中包含用于包装所选文本的最常用语言。 li>Since this works via wrapping and tags with classes, you can use all custom class settings that PrismJS offers.由于这是通过将 code>和 code>标记与类一起包装而起作用的,因此您可以使用PrismJS提供的所有自定义类设置。 li>No shortcodes to mess with, so you don’t have to worry about losing whitespace between editor modes.没有短代码可弄乱,因此您不必担心在编辑器模式之间丢失空格。 li>No settings page needed: Just activate it and go!无需设置页面:只需激活它即可! li>
code>类包装所选文本,并用其HTML安全等效项替换特殊字符。 li>li>Custom Visual Editor / TinyMCE dropdown button, with the most common languages to wrap selected text.“自定义视觉编辑器” /“ TinyMCE”下拉按钮,其中包含用于包装所选文本的最常用语言。 li>Since this works via wrapping and tags with classes, you can use all custom class settings that PrismJS offers.由于这是通过将 code>和 code>标记与类一起包装而起作用的,因此您可以使用PrismJS提供的所有自定义类设置。 li>No shortcodes to mess with, so you don’t have to worry about losing whitespace between editor modes.没有短代码可弄乱,因此您不必担心在编辑器模式之间丢失空格。 li>No settings page needed: Just activate it and go!无需设置页面:只需激活它即可! li>
li>
tags with classes, you can use all custom class settings that PrismJS offers.
code>和 code>标记与类一起包装而起作用的,因此您可以使用PrismJS提供的所有自定义类设置。 li>No shortcodes to mess with, so you don’t have to worry about losing whitespace between editor modes.没有短代码可弄乱,因此您不必担心在编辑器模式之间丢失空格。 li>No settings page needed: Just activate it and go!无需设置页面:只需激活它即可! li>
code>标记与类一起包装而起作用的,因此您可以使用PrismJS提供的所有自定义类设置。 li>No shortcodes to mess with, so you don’t have to worry about losing whitespace between editor modes.没有短代码可弄乱,因此您不必担心在编辑器模式之间丢失空格。 li>No settings page needed: Just activate it and go!无需设置页面:只需激活它即可! li>
ul>
For a full list of languages supported and more information on this plugin’s use, please check out the FAQ.
有关所支持语言的完整列表以及有关此插件使用的更多信息,请查看常见问题解答。 p>
Note: This does NOT auto-detect the language.
注意:这不会自动检测语言。
Most plugins that do so brute force the languages or require file extensions, resulting in a much heavier plugin.
多数这样做的插件会强行使用语言或需要文件扩展名,从而导致插件重得多。
The decision was made to keep this as light-weight as possible.
决定使它尽可能轻巧。 p>
Note 2: This is designed to work with the Classic Editor.
注2:此功能旨在与经典编辑器一起使用。
It does not currently work in Gutenberg blocks.
目前在古腾堡(Gutenberg)街区无法使用。 p>
Thanks to Mike @ WP Bullet for the banner and icon.
感谢Mike @ WP项目符号作为横幅和图标。 p>
/wp-content/plugins/prism-js
/ wp-content / plugins / prism-js code>目录,或直接通过WordPress插件屏幕安装插件。 li>Activate the plugin through the ‘Plugins’ screen in WordPress通过WordPress中的“插件”屏幕激活插件 li>That’s it!就是这样! li>
ol>
原文出处:http://www.sanshu.cn/a/7760.html
群主管理都是支付大佬