A free and open source plain-text editor for your Mac

CotEditor for Mac

CotEditor for Mac

  -  17.5 MB  -  Open Source
CotEditor for Mac is an open-sourced, Cocoa-based plain-text editor for macOS. It supports syntax highlighting, powerful find-and-replace with OniGmo (regular expression engine), and other small goodies for coding. It can handle also CJK languages well.

CotEditor is exactly made for macOS. It looks and behaves just as macOS applications should. CotEditor for macOS launches so quickly that you can write your text immediately when you want to. The app is developed as an open-source project that allows anyone to contribute.

Features and Highlights

Syntax Highlighting
Colorize more than 50 pre-installed major languages like HTML, PHP, Python, Ruby, or Markdown. You can also create your own settings.

Split Editor
Split a window into multiple panes to see different parts of your document at the same time.

Powerful Find & Replace
Super powerful find and replace using the ICU regular expression engine.

Character Inspector
Inspect Unicode character data of each selected character in your document and display them in a popover.

Setting via Click
There are no complex setting files that require geek knowledge. You can access all your settings including syntax definitions and themes from a normal preferences window.

Scriptable
Make your own macro in your favorite language, whether it is Python, Ruby, Perl, PHP, UNIX shell, AppleScript, or JavaScript.

Auto Backup
You don't need to lose your unsaved data anymore. Cot Editor for Mac backups your documents automatically while editing.

Incompatible Characters
Check and list-up the characters in your document that cannot be converted into the desired encoding.

Outline Menu
Extract specified lines with the predefined syntax and you can jump to the corresponding line.

CJK Language Friendly
Estimate various file encodings accurately, toggle to vertical text mode and keep its line-height correctly.

Note: Requires 64-bit processor.

  • CotEditor 5.0.7 Screenshots

    The images below have been resized. Click on them to view the screenshots in full size.

    CotEditor 5.0.7 Screenshot 1
  • CotEditor 5.0.7 Screenshot 2
  • CotEditor 5.0.7 Screenshot 3
  • CotEditor 5.0.7 Screenshot 4
  • CotEditor 5.0.7 Screenshot 5

What's new in this version:

New Features:
- Add title and timestamp options to the AppleScript’s write to console command

Improved:
- Provide more Unicode information about the selected character in the document inspector
- Prevent the console from hiding when the app goes into the background
- Optimize the file browser’s performance when expanding a folder containing a large number of items
- Improve the trimming of whitespaces in the extracted outline labels
- Modify the syntax highlighting rule to extract strings in the form of “begin-end” string pairs, even if one of those is escaped
- Adjust the editor’s initial scroll position
- [trivial] Update the layout of the Donation settings pane
- [trivial] Update the User Guide

Fixed:
- Fix an issue that the shortcut key for cycling through windows was not functioning correctly for certain input modes
- Fix an issue that the end point of a selection shifted after a hanging indent on a wrapped line when the line endings are CRLF and the selection is expanded using the Shift-↑ or Shift-↓ shortcuts
- Fix an issue that the insertion point rarely jumped to the nearest outline item when the outline inspector is shown