[wordpress插件] ACE Editor for WPWP的ACE编辑器

wordpress 插件 文章 2020-01-25 23:00 664 0 全屏看文

AI助手支持GPT4.0

评分

90

90

描述

This plugin adds an advanced code editor to the post content box on post.php and post-new.php.

此插件在post.php和post-new.php的帖子内容框中添加了一个高级代码编辑器。

A third tab is added alongside Visual and HTML modes and you can toggle between the three.

在视觉和HTML模式旁边添加了第三个选项卡,您可以在这三种模式之间切换。

NOTE: Visual Mode tends to eat up most/all of any special formatting.

注意:视觉模式往往会消耗掉所有/所有特殊格式。

If you want to use ACE I’d suggest disabling Visual mode completely.

如果您想使用ACE,建议您完全禁用Visual模式。

You can do this easily yourself under Users -> Your Profile -> ‘Disable the visual editor when writing’.

您可以在“用户”->“您的个人资料”->“在编写时禁用视觉编辑器”下轻松地自己完成此操作。

You can also do it for all users and for specific post types only.

您也可以仅对所有用户和特定帖子类型执行此操作。

See the accompanying file no-visual.php for an example.

有关示例,请参见随附的文件no-visual.php。

Not all features work in Internet Explorer v8 and earlier.

并非所有功能都可以在Internet Explorer v8和更低版本中使用。

This does not work in full screen mode.

这在全屏模式下不起作用。

Yet.

Features

功能

    • Syntax highlighting
    • 语法突出显示

    • Tabbing
    • 贴标签

    • Line numbers
    • 行号

    • Auto closing of tags and quotes
    • 自动关闭标签和引号

    • Line highlighting
    • 突出显示行

    • Default theme is TextMate
    • 默认主题为TextMate

    • Fixed-width, soft wrap, adjustable height
    • 固定宽度,软包,高度可调

    • Remembers your last used mode and loads it up on initial page view
    • 记住您上一次使用的模式并将其加载到初始页面视图中

    ACE Editor can do quite a bit more.

    ACE编辑器可以做更多的事情。

    If you have integration ideas, let me hear about it

    如果您有整合的想法,请让我听到

    Todo

    Todo

      • make height of editor consistent when toggling between modes
      • 在模式之间切换时,使编辑器的高度一致

      • deal with auto_p?

      • 用auto_p处理?

        (might help preserve formatting from Visual mode)

      • (可能有助于保留可视模式下的格式)

      • make it work in full screen mode
      • 使其在全屏模式下工作

      • allow users to set their ACE preferences on their profile screen
      • 允许用户在个人资料屏幕上设置其ACE偏好设置

安装步骤

See Installing Plugins.

请参见安装插件

    1. Download the zip from here or from Github and drop it into your site's wp-

    2. 从此处或从 Github 下载zip并将其拖放到站点的wp-

      content/plugins directory.

    3. 内容/插件目录。

    4. Navigate to your site’s Admin->Plugins section (wp-admin/plugins.php) and activate the plugin.
    5. 导航到您网站的“管理员”->“插件”部分(wp-admin / plugins.php)并激活插件。

    6. Go edit a post/page/custom-post-type, or add a new one, and look for the ACE tab next to the Visual and HTML Mode tabs at the top right of the content editor box.

    7. 开始编辑帖子/页面/自定义帖子类型,或添加一个新的帖子/页面/自定义帖子类型,然后在内容编辑器框右上角的“视觉和HTML模式”选项卡旁边查找“ ACE”选项卡。

      If you don’t see the Visual tab, that’s great!

      如果您没有看到“视觉”标签,那就太好了!

      It means you or someone else disabled Visual Mode.

      这意味着您或其他人禁用了可视模式。

      That’ll make toggling between modes a much more pleasant experience (see more in release notes).

    8. 这样一来,在各种模式之间切换会带来更加愉悦的体验(请参阅发行说明中的​​更多内容)。

下载地址

https://downloads.wordpress.org/plugin/ace-editor-for-wp.0.7.1.zip

https://downloads.wordpress.org/plugin/ace-editor-for-wp.0.7.1.zip

-EOF-

AI助手支持GPT4.0