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

CotEditor for Mac

CotEditor for Mac

  -  17.2 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.

How to Use
  • Open CotEditor from your Applications folder
  • Create a new file or open an existing one
  • Choose your preferred syntax style from the toolbar
  • Customize appearance via Preferences
  • Use search and replace for quick editing
  • Enable auto-save or version control if needed
  • Save your file in your desired format
  • Use scripts for advanced automation
  • Check updates regularly for new features
System Requirements

macOS 10.15 (Catalina) or later

Intel or Apple Silicon (Universal app)

At least 50 MB of free disk space

4 GB RAM or more recommended

Internet connection for updates (optional)

PROS
  • Lightweight and fast performance
  • Native macOS look and feel
  • Excellent syntax highlighting
  • Supports scripting with AppleScript
  • No ads, open-source, and free
CONS
  • Limited advanced IDE features
  • No built-in FTP or SSH support
  • Few third-party plugins available
  • Basic autocomplete functionality
  • Mac-only, no cross-platform version
Note: Requires 64-bit processor.

Why is this app published on FileHorse? (More info)
  • CotEditor 6.1.0 Screenshots

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

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

What's new in this version:

New Features:
- Introduce the filter feature in the file browser
- Introduce the “Insert comment delimiters after indent” option to the Edit settings pane
- Revert the “Append a space to comment delimiter” option to the Edit settings pane
- Add Russian localization

Improved:
- Improve the algorithm to comment out block comments
- Ignore .git folders in the file browser
- Prevent moving focus to the editor when selecting a document in the file browser
- Update the Verilog syntax to support SystemVerilog
- Update the Swift syntax
- [trivial] Adjust the layout of the Settings window
- [trivial] Update the Unicode block name list
- [dev] Update the build environment to Xcode 26.1

Fixed:
- Fix an issue where the counts in the status bar are occasionally unavailable when the document is opened
- Fix an issue where the text fields in sheet dialogs don’t get focus when they appear