[wordpress插件] CodeMirror for CodeEditorCodeMirror for CodeEditor

wordpress 插件 文章 2020-03-26 23:00 473 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Just another code syntaxhighligher for the theme and plugin editor with CodeMirror. This plugin can highlight sourcecodes in the theme/plugin editor and provide a useful toolbar.

Features

  • Highlight sourcecodes in theme and plugin editor on the dashboard.
  • Based on Marijn Haverbeke’s “CodeMirror” JavaScript library.
  • Built-in 10 themes.
  • Useful toolbar which includes searcheplace features.
  • Full-screen editing.
  • Auto-complete.
  • Easy to configure features through the setting panel.
  • Localization: English(Default), 日本語(Japanese, UTF-8).

Support languages

  • PHP
  • CSS
  • Javascript
  • (X)HTML

Recommended plugin

Just another code syntaxhighligher for the theme and plugin editor with CodeMirror. This plugin can highlight sourcecodes in the theme/plugin editor and provide a useful toolbar.

Features

  • Highlight sourcecodes in theme and plugin editor on the dashboard.
  • Based on Marijn Haverbeke’s “CodeMirror” JavaScript library.
  • Built-in 10 themes.
  • Useful toolbar which includes searcheplace features.
  • Full-screen editing.
  • Auto-complete.
  • Easy to configure features through the setting panel.
  • Localization: English(Default), 日本語(Japanese, UTF-8).

Support languages

  • PHP
  • CSS
  • Javascript
  • (X)HTML

Recommended plugin

安装步骤

Installation

安装

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

    3. Activate the plugin through the “Plugins” menu in WordPress.
    4. 通过WordPress中的“插件”菜单激活插件。

    5. If you need, go to “Settings” -> “CodeMirror for CE” to configure.
    6. 如果需要,请转到“设置”->“ CodeMirror for CE”进行配置。

    Usage

    用法

      • You can select a theme, run search and replace on the toolbar.
      • 您可以选择主题,运行搜索并在工具栏上进行替换。

      • Place the cursor in the textarea and press “Esc” or “F11” key to chage to the “fullscreen mode”.
      • 将光标置于文本区域,然后按“ Esc”或“ F11”键切换到“全屏模式”。

      • Press “Ctrl” – “Space” to activate Auto-omplete.
      • 按“ Ctrl”-“空格”以激活自动完成。

      • Press “Ctrl” – “Z” to undo the previous change.
      • 按“ Ctrl”-“ Z”撤消上一次更改。

      • Press “Ctrl” – “Y” to redo.
      • 按“ Ctrl”-“ Y”重做。

      • Press “Shift” – “Tab” to reset line indentation to default.
      • 按“ Shift”-“ Tab”将行缩进重置为默认值。

      • Press “Ctrl/Cmd” – “[” to reduce line indentation.
      • 按“ Ctrl / Cmd”-“ [”以减少行缩进。

      • Press “Ctrl/Cmd” – “]” to increase line indentation.
      • 按“ Ctrl / Cmd”-“]”增加行缩进。

      You can also use following shortcuts to search and replace.

      您还可以使用以下快捷方式进行搜索和替换。

        • Search: Press Ctrl-F / Cmd-F
        • 搜索:按Ctrl-F / Cmd-F

        • Find next: Press Ctrl-G / Cmd-G
        • 查找下一个:按Ctrl-G / Cmd-G

        • Find previous: Press Shift-Ctrl-G / Cmd-Option-G
        • 查找上一个:按Shift-Ctrl-G / Cmd-Option-G

        • Replace: Shift-Ctrl-F / Cmd-Option-F (Run this after searching.)
        • 替换:Shift-Ctrl-F / Cmd-Option-F(搜索后运行。)

        • Replace all: Shift-Ctrl-R / Shift-Cmd-Option-F (Run this after searching.)
        • 全部替换:Shift-Ctrl-R / Shift-Cmd-Option-F(搜索后运行。)

        Note: “Search & replace” by shortcut and “Auto-omplete” can’t work in the “fullscreen mode”.

        注意:通过快捷方式“搜索并替换”和“自动完成”在“全屏模式”下不起作用。

下载地址
https://downloads.wordpress.org/plugin/codemirror-for-codeeditor.0.5.6.1.zip
-EOF-

AI助手支持GPT4.0