system requirements: macOS 15 and later
Compatibility Changes
- Introduce CotEditor Syntax, a new syntax definition format. The legacy YAML-based syntax definition format is now deprecated, and user-created syntaxes are automatically migrated on first launch.
New Features
- Adopt smarter syntax parsing powered by tree-sitter for multiple built-in syntaxes, improving syntax highlighting and outline extraction in C, C#, C++, CSS, Go, HTML, Java, JavaScript, Kotlin, LaTeX, Lua, Makefile, Markdown (outline extraction only), PHP, Python, Ruby, Rust, Scala, Shell Script, SQL, Swift, and TypeScript.
- Display symbolic icons next to outline items.
- Allow collapsing outline items in the Outline inspector for tree-sitter-based and structured document syntaxes.
- Add the “Wrap Lines” option to the Outline inspector.
- Make smart indentation aware of the current syntax.
- Expand comment delimiter settings in syntax definitions, allowing multiple delimiters and related options.
- Add detailed delimiter settings for strings, characters, and indentation to syntax definitions.
- Add the Multiline option to highlighting rules in syntax definitions so matches can span multiple lines.
- Show the current position in search results in the Find field while navigating between matches, for example, “2/5”.
- Add
CurrentLineandReplaceCurrentLineto the UNIX script input/output keywords for editing the current line in the editor. - Add Bulgarian localization (thanks to Miroslav Dragoev!).
Improvements
- Update the inspector’s appearance on macOS Tahoe 26.
- Improve the syntax-highlighting algorithm for legacy regex-based parsing.
- Update built-in syntaxes.
- Use the user’s window size setting for the Zoom action, if available.
- Improve word selection and related editing actions to treat commas as word delimiters.
- Improve general text-editing performance.
- Hide line numbers in the window titlebar area when the navigation bar is hidden on macOS Tahoe 26.
- [trivial] Improve stability when handling file change conflicts.
- [trivial] Adjust the About CotEditor window.
- [trivial] Rename the Recolor All command to “Reset Syntax Analysis” and move it to the Format menu.
- [trivial] Remove the Restore Defaults button in the syntax editor.
- [trivial] Tweak colors of the default Anura theme.
- [non-AppStore ver.] Update Sparkle from 2.9.0 to 2.9.1.
Fixes
- Fix incorrect syntax parsing in some built-in syntaxes.
- Fix an issue where the default file extension in the Save dialog was .txt for syntaxes with a file extension not registered in the system.
- Fix an issue where TSV multiple replace definitions could fail to overwrite an existing definition when re-imported.
- Fix an issue where TSV multiple replace definitions could not import empty replacement strings.
- Fix an issue where key bindings imported from a settings archive could be lost after relaunching the app.
- Fix issues in the file browser where items could point to the wrong location after being moved or renamed.
- Fix an issue in the file browser where replacing a file with a folder, or vice versa, could leave the displayed state outdated.
- Fix an issue in the file browser where newly created or duplicated items could fail to become selected immediately in some folders.
- Fix issues where the Script menu could become outdated after changes in the Scripts folder.
- Fix an issue where line reordering commands could insert extra blank lines in documents using CRLF line endings.
- Fix an issue where AppleScript could return an unclear error when a folder document had no current document.
- Fix an issue where requesting a zero-length text range via AppleScript could return an unintended character.
- Fix an issue where some decimal setting values could use the wrong number format and be reset unexpectedly in certain locale configurations.
- [trivial] Fix an issue where a renamed setting could become deselected if surrounding whitespace in the new name is trimmed.
- [trivial] Fix some typos in localizations and user guides.
Full Changelog: 6.2.6...7.0.0