The Plain-Text Editor for macOS
We would like to show you a description here but the site won’t allow us. CotEditor is a pure document-based Cocoa application written in Swift. Development Environment. MacOS 11 Big Sur; Xcode 12.4; Swift 5.3; Sandbox enabled; How to Build Build for Ad-hoc usage. For those people who just want to build and play with CotEditor locally.
It's free!
light-weight, neat, yet powerful
Why you should choose CotEditor?
Just for macOS
CotEditor is exactly made for macOS. It looks and behaves just as macOS applications should.
Rapid Launch
CotEditor launches so quick that you can write your text immediately when you want to.
Open Source
CotEditor is developed as an open-source project that allows anyone to contribute.
features
Syntax Highlighting
Colorize more than 50 pre-installed major languages like HTML, PHP, Python, Ruby or Markdown. You can also create your own settings.
Powerful Find & Replace
Super powerful find and replace using the ICU regular expression engine.
Setting via Click
There are no complex configuration files that require geek knowledge. You can access all your settings including syntax definitions and themes from a standard preferences window.
Auto Backup
You don't need to lose your unsaved data anymore. CotEditor backups your documents automatically while editing.
Outline Menu
Extract specified lines with the predefined syntax, and you can jump to the corresponding line.
Split Editor
Split a window into multiple panes to see different parts of your document at the same time.
Character Inspector
Inspect Unicode character data of each selected character in your document and display them in a popover.
Scriptable
Coteditor Reddit
Make your own macro in your favorite language, whether it is Python, Ruby, Perl, PHP, UNIX shell, AppleScript or JavaScript.
Incompatible Characters
Check and list-up the characters in your document that cannot convert into the desired encoding.
CJK Language Friendly
Estimate various file encodings accurately, toggle to vertical text mode and keep its line height correctly.
We welcome your feedback ♡
Please don't hesitate to report any bugs or feature requests to our issue tracker.
Project Page on GitHubCoteditor Alternative
#!/usr/bin/env python |
''Count Characters w/o Tags for CotEditor |
Count number of characters without HTML tags on CotEditor |
and display it in an alert window. |
This is a CotEditor script. |
%%%{CotEditorXInput=Selection}%%% |
'' |
__version__='1.1' |
__date__='2013-04-26' |
__author__='1024jp <http://wolfrosch.com/>' |
__license__='Creative Commons Attribution-NonCommercial 3.0 Unported License' |
importre |
importsys |
fromsubprocessimportPopen, PIPE |
# main -------------------------------------------------------------- |
defrun_osascript(script): |
''Run osascript.'' |
p=Popen(['osascript', '-'], stdin=PIPE, stdout=PIPE) |
stdout, stderr=p.communicate(script) |
returnstdout.rstrip() |
defdisplay(text, title=None, app='CotEditor'): |
''Display dialog.'' |
text=text.replace('', '') |
script='tell application '{}' to display dialog '{}'.format(app, text) |
script+=' with icon note buttons {{'OK'}} default button 1' |
iftitle: |
script+=' with title '+title+'' |
run_osascript(script) |
defcount_chars(text): |
''Return number of charactors without tags.'' |
text=re.sub('[nt]', ', text) |
text=re.sub(' +', ' ', text) |
text=re.sub('<(head|script|style)[ >].+</1>', ', text) |
text=re.sub('<[^>]+>', ', text) |
returnlen(unicode(text, 'utf-8')) |
if__name__'__main__': |
text=sys.stdin.read() |
length=count_chars(text) |
display(str(length) +' characters', 'Number of Characters without Tags') |