這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

WYSIWYG Inline Code Command

外掛說明

The WYSIWYG Inline Code Command plugin adds an “inline code” command to the
WYSIWYG (visual) post and page editor. It’s just like the “Bold” or “Italics”
commands, except that it makes your text look like code — usually, this means
that it’s drawn in a monospace font like this. The comand is accessible as a
button and with the keybinding Alt-Shift-C.

The unmodified editor does provide a pre style that’s somewhat similar, but
it’s a block style, which means that you can only apply it to whole
paragraphs. I wrote this plugin because I found that I often want to apply
code styling to shorter pieces of computer-y content, such as the
Alt-Shift-C above.

I encourage you to provide feedback about this plugin. Entries on the
compatibility matrix are especially helpful so that people can feel confident
installing it. Thanks!

The WYSIWIG Inline Code Command plugin provides precisely this one feature, so
don’t expect it to be updated very often. One issue that I’m aware but don’t
know quite how to fix is that the user-visible text describing the command in
the editor isn’t internationalized.

安裝方式

Installation is as simple as possible:

  1. Upload the plugin files to the wysiwyg-inline-code-command directory
    in your /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Edit a post or a page. Select some text, and either hit the new button
    that looks like “</>”, or press Alt-Shift-C.
  4. That’s all there is to it!

使用者評論

2018 年 11 月 26 日
Thank you, this simple plugin works fine and is saving me time. Before I had to switch to the code editor to insert a code tag.
2017 年 5 月 7 日
Keybaord shortcut no longer works and it would be nice with some easy way to apoply custom formatting (can always add CSS to .pln, I know) Other than that, works fine.
2016 年 9 月 3 日
Does one thing, and does it well. No bells and whistles, just a simple code button added to the end of the top row in the WYSIWYG editor. Saves me A TON of time, as I’m writing a bunch of technical tutorials on my blog. Thanks Peter.
閱讀全部 7 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈WYSIWYG Inline Code Command〉的開發相關工作。

參與者

將〈WYSIWYG Inline Code Command〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

2.0

  • Released on October 29, 2013.
  • No code changes; just mark “trunk” as stable so I don’t have to keep on
    tagging new versions to update the compatibility info.

1.6

  • Released on August 10, 2013.
  • No code changes; just update the readme about compatibility.

1.5

  • Released on December 11, 2012.
  • No code changes; just update the readme about compatibility.

1.4

  • Released on June 19, 2012.
  • Mark that the license is GPLv2.
  • No code changes; just update the readme about compatibility.

1.3

  • Released on December 18, 2011.
  • Add some tags suggested by WordPress.org user jsherk.
  • Update compatibility info after testing with WordPress 3.3.

1.2

  • Released on August 29, 2011.
  • No code changes; just update the readme about compatibility.

1.1

  • Released on July 15, 2011.
  • No code changes; just update the readme to be more helpful.

1.0

  • Released on June 29, 2011.
  • This is the initial release.