Ace API Reference
    Preparing search index...

    Module src/ext/diff

    Provides side-by-side and inline diff view capabilities for comparing code differences between two versions. Supports visual highlighting of additions, deletions, and modifications with customizable diff providers and rendering options. Includes features for synchronized scrolling, line number alignment, and various diff computation algorithms.

    Components:

    • InlineDiffView: Single editor view showing changes inline with markers
    • SplitDiffView: Side-by-side comparison view with two synchronized editors
    • DiffProvider: Configurable algorithms for computing differences

    Usage:

    const diffView = createDiffView({
    valueA: originalContent,
    valueB: modifiedContent,
    inline: false // or 'a'/'b' for inline view
    });

    Interfaces

    DiffModel
    DiffViewOptions
    IDiffProvider

    Functions

    createDiffView