More accurate highlighting, smarter commenting, and improved editor behavior, all powered by a redesigned syntax engine and definition format.
Powered by tree-sitter, where it matters most
Many major built-in syntaxes now use tree-sitter, a modern structure-based parser that enables deeper and more reliable language awareness.
Outline with depth
Icons make structure easier to scan, and tree-sitter–based syntaxes now support collapsible outlines that reflect hierarchy.
CotEditor 7.0.0-beta.2
release:
Improvements
non-AppStore ver.: Update Sparkle from 2.9.0 to 2.9.1.
beta: Tweak outline item icons.
beta: Optimize the outline extraction algorithm.
beta: Optimize the regex-based syntax highlighting algorithm.
beta: Improve the Python outline to extract class variables.
beta: Add missing localizations.
beta: Update tree-sitter-rust to 0.24.2.
Fixes
Fix an issue where re-importing a TSV file to overwrite an existing multiple replace definition could fail.
beta: Fix outline extraction in the LaTeX and Swift syntaxes.
CotEditor 7.0.0-beta
release:
This version contains some specific changes that may require manual migration by users. See Important changes on CotEditor 7.0 for details.
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 CurrentLine and ReplaceCurrentLine to the UNIX script input/output keywords for editing the current line in the editor.
Add Bulgarian localization (thanks to Miroslav Dragoev!).
Improvements
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 general text-editing performance.
Hide line numbers in the window titlebar area when the navigation bar is hidden on macOS Tahoe 26.
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.
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.
Known Issues
The text added to CotEditor 7.0.0 are not yet localized to Czech and Polish.