[wordpress插件] CodeColorer comaptiblity with “Markdown for WordPress and bbPress”CodeColorer与“ Markdown for WordPress and bbPress”的兼容性

wordpress 插件 文章 2020-03-26 20:20 474 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

This plugin automatically wraps Markdown code blocks (indented by 4 spaces or a tab)

此插件自动包装Markdown代码块(以4个空格或一个制表符缩进)

in CodeColorer tags.

在CodeColorer标签中。

You can also specify what language the given snippet uses, by using

您还可以使用
指定给定代码段使用的语言

the following syntax:

以下语法:

    :ruby:    

 :ruby:    

class Foo < Bar    

Foo类<酒吧    

end

结束

That is, the name of the language, as you’d use it when creating a CodeColorer block,

即语言的名称,如您在创建CodeColorer块时所使用的,

enclosed by two colons on the very first line of the code snippet.

在代码段的第一行中,两个冒号将其括起来。

The source code repository can be found over at

可在以下位置找到源代码存储库

GitHub.

GitHub

安装步骤

This section describes how to install the plugin and get it working.

本节介绍如何安装插件并使其正常工作。

    1. Upload plugin folder to the /wp-content/plugins/ directory
    2. 将插件文件夹上传到 / wp-content / plugins / 目录

    3. Make sure you have codecolorer and markdown-for-wordpress-and-bbpress installed
    4. 确保已安装 codecolorer markdown-for-wordpress-and-bbpress

    5. Activate the plugin through the ‘Plugins’ menu in WordPress
    6. 通过WordPress中的“插件”菜单激活插件

下载地址
https://downloads.wordpress.org/plugin/codecolorer-markdown.zip
-EOF-

AI助手支持GPT4.0