Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update README.md#222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
wumpz merged 1 commit intojava-diff-utils:masterfrommb720:patch-1
Oct 6, 2025
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletionsREADME.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -20,7 +20,7 @@ The main reason to build this library was the lack of easy-to-use libraries with

## GPG Signature Validation

Thegpg singing key in [KEYS] is used for this project's artifacts.
TheGPG signing key in [KEYS] is used for this project's artifacts.

## API

Expand All@@ -30,18 +30,18 @@ Javadocs of the actual release version: [Javadocs java-diff-utils](https://java-

Look [here](https://github.com/java-diff-utils/java-diff-utils/wiki) to find more helpful information and examples.

These two outputs are generated using java-diff-utils. The source code can also be foundat the*Examples* page:
These two outputs are generated using java-diff-utils. The source code can also be foundon the[Examples](https://github.com/java-diff-utils/java-diff-utils/wiki/Examples) page:

**Producing a one liner including all difference information.**

```Java
```java
// Create a configured DiffRowGenerator
DiffRowGenerator generator = DiffRowGenerator.create()
.showInlineDiffs(true)
.mergeOriginalRevised(true)
.inlineDiffByWord(true)
.oldTag(f -> "~") //introduce markdown style for strikethrough
.newTag(f -> "**") //introduce markdown style for bold
.oldTag(f -> "~") // Introduce markdown style for strikethrough
.newTag(f -> "**") // Introduce markdown style for bold
.build();

// Compute the differences for two test texts
Expand All@@ -54,9 +54,9 @@ System.out.println(rows.get(0).getOldLine());

This is a test ~sentence~**for diffutils**.

**Producing a side byside view of computed differences.**
**Producing a side-by-side view of computed differences.**

```Java
```java
DiffRowGenerator generator = DiffRowGenerator.create()
.showInlineDiffs(true)
.inlineDiffByWord(true)
Expand All@@ -83,15 +83,15 @@ for (DiffRow row : rows) {
## Main Features

* Computing the difference between two texts.
* Capableto handle more than plain ASCII. Arrays orList of any type thatimplementshashCode() and equals() correctly can be subject to differencing using this library
*patch and unpatch the text with the given patch
*parsing the unified diff format
*producing human-readable differences
*inline difference construction
* Capableof handling more than plain ASCII. Arrays orlists of any type thatimplement `hashCode()` and`equals()` correctly can be subject to differencing using this library
*Patch and unpatch the text with the given patch
*Parsing the unified diff format
*Producing human-readable differences
*Inline difference construction
* Algorithms:
* MyersStandard Algorithm
* Myersstandard algorithm
* Myers with linear space improvement
* HistogramDiff using JGitLibrary
* HistogramDiff usingtheJGitlibrary

### Algorithms

Expand All@@ -102,7 +102,7 @@ But it can easily be replaced by any other which is better for handling your tex

## Source Code conventions

Recently a checkstyle process was integrated into the build process. java-diff-utils follows thesun java format convention. There are noTABs allowed. Use spaces.
Recently a checkstyle process was integrated into the build process. java-diff-utils follows theSun Java format convention. There are notabs allowed. Use spaces.

```java
public static <T> Patch<T> diff(List<T> original, List<T> revised,
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp