Ace API Reference
    Preparing search index...

    Function hardWrap

    • Wraps lines at specified column limits and optionally merges short adjacent lines.

      Processes text within the specified row range, breaking lines that exceed the maximum column width at appropriate word boundaries while preserving indentation. When merge is enabled, combines short consecutive lines that can fit within the column limit. Automatically adjusts the end row when new line breaks are inserted to ensure all affected content is processed.

      Parameters

      • editor: Editor

        The editor instance containing the text to wrap

      • options: HardWrapOptions

        Configuration options for wrapping behavior

      Returns void