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

DiffCheck – Compare two text files

外掛說明

DiffCheck allows you to display side-by-side comparisons of two text files.

This plugin is ultra-lightweight (7KB) and uses WordPress’s already built-in revision function.

NEW! The plugin now supports Gutenberg and you can use the “DiffCheck” block to compare two texts.

How to compare two files?

On the post edit screen add DiffCheck block and inside it paste the text to be compared in two text areas.

How to compare two files using shortcodes?

To display difference between two files use the [diff_check] shortcode and pass attributes:

To compare 2 texts use text1 and text2 attributes:

[diff_check text1="This is the first text area. It will be compared to the second text area." text2="This is the second text area. It will be compared to the first text area."]

To compare two text files use file1 and file2 attributes:

[diff_check file1="https://plugins.club/demo/wp-content/plugins/my-plugin/text1.txt" file2="https://plugins.club/demo/wp-content/plugins/my-plugin/text2.txt"]

螢幕擷圖

適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

  • Diff Check

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈DiffCheck – Compare two text files〉的開發相關工作。

參與者

變更記錄

1.2

  • Added support for Cyrillic in gutenberg block – reported by @bsmolyanov
  • Fixed CSS issue with wrong class names – reported by @bsmolyanov
  • Added CSS to style the rows that have no diff

1.1

  • Added gutenberg block

1.0

The first stable public version.