[wordpress插件] APH Prism Syntax HighlighterAPH Prism语法荧光笔

wordpress 插件 文章 2020-02-19 18:00 537 0 全屏看文

AI助手支持GPT4.0

评分
74
描述

Prism is one of the most popular syntax highlighters that widely used by a lot of blog or websites, some of them are popular websites, such as Mozilla, drupal, and SitePoint.

Prism是许多博客或网站广泛使用的最受欢迎的语法突出显示工具之一,其中一些是受欢迎的网站,例如Mozilla,drupal和SitePoint。

One reason why a lot of websites prefer to use this highlighter is because it’s ability to do custom builds of the language highlighter and plugins you want to be used

许多网站偏爱使用此荧光笔的原因之一是因为它可以为您要使用的语言荧光笔和插件进行自定义构建

This plugin helps you to do all of those tasks and bring this code highlighter to your WordPress easily, provided with many features and user-friendly GUI, make it handy and easy to use.

此插件可帮助您完成所有这些任务,并将此代码荧光笔轻松地带到WordPress,具有许多功能和用户友好的GUI,使其易于使用。

** Features.

**功能。

**

**

    • Simple and easy to use
    • 简单易用

    • All possible syntax languages
    • 所有可能的语法语言

    • Full GUI, don’t need to hardcode parameters
    • 完整的GUI,无需对参数进行硬编码

    • Easy to make a custom build.

    • 易于进行自定义构建。

      Choose your own language, theme, and some plugins easily

    • 轻松选择自己的语言,主题和一些插件

    • Custom container max-height.

    • 自定义容器的最大高度。

      Useful when displaying long code.

    • 显示长代码时很有用。

    • Easy to add custom CSS.

    • 易于添加自定义CSS。

      Useful for responsive design.

    • 对于响应式设计很有用。

    • Easy to edit code that has been written in tinyMCE text editor (screenshot 4)
    • 易于编辑用tinyMCE文本编辑器编写的代码(屏幕截图4)

    • Write and Edit code in place.

    • 就地编写和编辑代码。

      The textarea of code editor, support tab, and back tab, so you can directly edit or write your code, rather than switch back to your code editor.

    • 代码编辑器的文本区域,“支持”选项卡和“后退”选项卡,因此您可以直接编辑或编写代码,而不必切换回代码编辑器。

    • Load script on demand, load javascript and CSS file of prism highlighter only when needed
    • 按需加载脚本,仅在需要时加载棱镜高亮的javascript和CSS文件

    • Ability to override global options and use individual options for each code block
    • 能够覆盖全局选项并为每个代码块使用单独的选项

    • Support TinyMCE Visual mode and Text Mode (Quick Tags), it also supports the Quick tags used in the admin comment page (screenshot 5)
    • 支持TinyMCE可视模式和文本模式(快速标记),它还支持在管理员注释页面(屏幕截图5)中使用的快速标记

    • Use similar pattern with APH Syntax Highlighter and APH语法突出显示器

      https://wordpress.org/plugins/crayon-syntax-highlighter/" title="Crayon Syntax Highlighter">Crayon Syntax Highlighter plugins, so your code will still work using those plugins

    • https://wordpress.org/plugins/crayon-syntax-highlighter/“ title =” Crayon Syntax Highlighter“> Crayon Syntax Highlighter 插件,因此您的代码仍然可以使用这些插件

    • Language added: Light plain and dark plain
    • 添加语言:浅色和深色

    How To Use

    使用方法

    After installing the plugin, go to the admin setting Settings > Prism Highlighter to configure the global setting including the highlighter languages you want to load, theme, etc.

    安装插件后,进入管理设置“设置”>“ Prism Highlighter”以配置全局设置,包括要加载的荧光笔语言,主题等。

    In the TinyMCE menu (add or edit post or page), there is a new button that can be used to pop up the code editor, simply copy-paste your code and fill in some options

    在TinyMCE菜单(添加或编辑帖子或页面)中,有一个新按钮可用于弹出代码编辑器,只需复制粘贴代码并填写一些选项即可

    This new button also can be found at the quick tags of comment editor in the Admin Edit Comments page.

    此新按钮也可以在“管理编辑评论”页面的评论编辑器快速标签中找到。

    This quick tag appears when you edit or reply a comment.

    当您编辑或回复评论时,将显示此快速标记。

安装步骤

Install & activate the plugin.

安装并激活插件。

Modify some options in the settings page to suits your need.

修改设置页面中的一些选项以适合您的需求。

下载地址
https://downloads.wordpress.org/plugin/aph-prism-highlighter.1.3.1.zip
-EOF-

AI助手支持GPT4.0