Smultron

An elegant and powerful text editor that is easy to use

Smultron is a great text editor

Use Smultron 9 to create or edit any text document. Everything from a web page, a note or a script to any single piece of text or code.

Since Smultron 9 is easy to use, quick and uses powerful technologies like auto save, it helps you to do what you want to do without getting in your way. So you can save time and get things done. Use Smultron 9 for all your text needs.

Download and price

DownloadDownload Smultron 9

Buy for $10 in Smultron Store >

Smultron Store

or in Mac App Store >

Mac App Store

Compare versions

Video

New in Smultron 9

The new Smultron 9 is refined and the best ever Smultron

FAQ

I just bought a license for Smultron 8, can I upgrade to version 9?
A license bought on or after August 1, 2016 is eligible for a free upgrade. Contact us with proof of purchase and we’ll send you a new license. If you have bought Smultron 8 before that date you need to buy Smultron 9 in Mac App Store or get an upgrade license.
Which languages is it available in?
English, Arabic, Chinese (Simplified), Chinese (Traditional), Danish, Dutch, Finnish, French, German, Greek, Hebrew, Italian, Japanese, Korean, Norwegian, Portuguese, Russian, Spanish and Swedish
Is version 9 a paid upgrade?
Yes, if you have an earlier version you either need to get an upgrade license in Smultron Store or buy the app from Mac App Store.
Is there a demo version?
Download the app and you’ll have all the functionality except that you can’t save a document until you buy a license.
How do I buy a license?
You can either buy it from Mac App Store or buy it from the Smultron Store (if you download the app you can also buy it from within the app by choosing Purchase... from the Smultron 9 menu to use the secure built-in store).
I cannot update my app bought from Smultron Store, what is wrong?
Because of security measures in macOS you have to move the app at least once before you can update it. So if for instance you downloaded the app to the Downloads folder on your Mac, quit the app and then just move it to the /Applications folder and then you can update it.
How do I register the license?
Choose License... from the Smultron 9 menu and input the exact values you received in the confirmation mail.
How do I reopen the open documents when Smultron starts?
Smultron uses the system setting to decide if it should reopen the documents or not when it starts. So if you uncheck the “Close windows when quitting an app“ checkbox in System Preferences - General then the documents will reopen automatically. If you only want Smultron to remember its open documents use this command in Terminal:
defaults write com.peterborgapps.Smultron9 NSQuitAlwaysKeepsWindows -bool true
Tabs?
By default Smultron opens documents in tabs. You can change this in Preferences - General. If you turn off the setting that it should automatically open documents in tabs, Smultron will use the system setting that can be changed in System Preferences - Dock. If you want to merge all open windows or move a tab to its own window you can do it in the Window menu.
Is VAT included in the EU price?
Yes. And if you are registered as a company in EU and have a valid VAT ID you can buy it without VAT on the Smultron Store.
Can I change the file extension a particular syntax uses?
Yes, you can do that in Preferences - Advanced. Choose the syntax in the menu and then add or change the extension in the text field next to the menu (a space between each extension and no dots).
How do I assign a keyboard shortcut any menu item?
You do this in System Preferences - Keyboard - Shortcuts. Choose App Shortcuts and then press + and then choose Smultron 9 and write the exact name of the snippet or command.
How do I change a keyboard shortcut?
You do this in System Preferences - Keyboard - Shortcuts. Choose App Shortcuts and then press + and then choose Smultron 9 and write the exact name of the menu item and choose a new shortcut.
Why does it insert an extra space when pasting some text?
That is a standard system feature which is there to help you with pasting text. But you can turn it off by deselecting Smart Copy/Paste in the Edit menu, under Substitutions
Why does it replace some of the text I write with another character?
That is a standard system feature which is there to help you write those characters. But you can turn it off if you want in the Edit menu, under Substitutions just deselect Text Replacement. What exactly is replaced is decided by System Preferences - Keyboard - Text.
How can I open “hidden” files?
When you are in the standard open dialog just press Command and Shift and a dot.
How do I change the language Smultron uses?
The language used is determined by your system setting in System Preferences - Language & Region. If you only want to change the language that Smultron uses to e.g. English you can do this by writing this command in Terminal:
defaults write com.peterborgapps.Smultron9 AppleLanguages '(en)'
Is there a command line utility?
There isn’t a command line utility available for Smultron 9 but you can use standard commands to do the same thing (and more). Use e.g.:
open -a /Applications/Smultron\ 9.app /path/to/file
open -a /Applications/Smultron\ 9.app /open/all/in/this/folder/*
Which code languages have syntax coloring?
ActionScript, Active4D, Ada, AMPL, Apache, AppleScript, Arduino, Assembler x86, Assembler MIPS, Assembler PPC, ASP - JavaScript, ASP - VB, ASP.NET - C#, ASP.NET - VB, AWK, Batch, C, C++, C#, Ceylon, Clojure, Cobol, CoffeeScript, ColdFusion, Csound, CSS, CUDA, D, Dart, Diff, Dylan, Eiffel, Elm, Erlang, eZ Publish, F#, Final Cut Pro XML, Fortran, Fountain, FreeFem++, GEDCOM, GIFT, GNU Assembler, Go, Groovy, Hack, Haskell, Header, HTML, IDL, Java, JavaFX, JavaScript, JSON, JSP, Julia, Kotlin, LaTeX, LESS, Lilypond, Lisp, Logtalk, LSL, Lua, Make, Markdown, MathProg, Matlab, Metal, MetaPost, MEL, Metaslang, Multi User Forth, MySQL, Nemerle, NEURON, nginx, Nim, Notation3, Objective Caml, Objective-C, Ox, PARI/GP, Pascal, PDF, Perl, PHP, Plist, PostScript, PowerShell, Processing, Prolog, Python, R/S-PLUS, RHTML, Ruby, Rust, SAS, Sass/SCSS, Scala, Scheme, Servoy JavaScript, SGML, Shell, Smalltalk, SML, SQL, Stata, Strings, Stylus, SuperCollider, SVG, Swift, Tcl/Tk, TorqueScript, Turtle, Udo, UnityScript, VB, Verilog, VHDL, WebAssembly, Xcode config, XLIFF, XML, XQuery, YAML, Zimbu

Compare

Mac App Store Smultron Store
Price US$ 10 US$ 10
Upgrade price US$ 7 (from a previously bought version of Smultron)
Site license US$ 100
Buy with Apple-ID
Buy without Apple-ID
Audited by Apple
iCloud Drive
EULA Apple Peter Borg Apps

Some Features

iCloud
Smultron has full support for storing your documents in iCloud so you can access them on all your computers.
Documents
With the Documents toolbar icon you can show all open documents in a pop over window and you can in it reorder the documents. If you want to have it shown all the time (and resize it) you can click and hold anywhere in the background of the pop over and drag it.
Compare
With the Compare feature in the Tools menu you can compare two open documents, that has been saved at least once. The changes will appear both color coded and with a symbol at the beginning of the change: green and a “+” for added lines, red and a “-” for deleted lines, yellow and a “•” for changed lines.
Text folding
If you temporarily don’t want to see a part of the document you can select it and choose Fold in the Text menu. This replaces the selected text with a symbol (but only on the screen, the document still has all your text). Choose Unfold after placing the cursor next to the symbol to see the whole text again.
View in full screen
You can edit the document in full screen by choosing “Enter Full Screen” in the View menu (nothing else will be visible but you can show the menu bar by moving your mouse to the top of the screen).
Functions
You can see a list of all the functions in your document in the Tools menu or with the toolbar item and go directly to that function.
Snippets
Snippets are pieces of text that you use often or want easy access to. Include a %%s in the text and it will be replaced by the current selection. Include a %%c and the cursor will be placed at that position after the snippet has been inserted.
Close tag
This tries to find the correct tag to close by calculating the number of tags that has been closed and opened so it will find the last tag that hasn’t been closed. Note that this feature only works with tags surrounded by < and >.
Preview
With this you can preview the content of the current document. You can choose to open it in Smultron or in the app that has been chosen in the system (using Info in Finder) for that kind of document.
Commands
You can run commands from within Smultron if you e.g. want to compile some code or validate an HTML document. The result from the command is shown or inserted into the text if inline has been chosen. There are some special code that you can include in your command: %%p to get the full path of the current document, %%d for the directory, %%s outputs the selected text to a temporary file and replaces that code with the path, %%t is replaced by the path to a writeable temporary directory.
Comment or uncomment
Inserts a single-line comment character(s) e.g. // for a PHP-document at the beginning of the line or removes any existing comment. The menu item is only available if the language uses a single-line comment.
Invisible characters
Shows a symbol for characters that are usually not seen, e.g. space, tab and new-line.
Remove needless whitespace
Removes any possible spaces or tabs after the text and before the line break.

Preferences

General
  • Auto complete: decides if Smultron should show complete suggestions automatically after a delay and whether it should include standard words for your language, like for instance “computer” rather than just words from the current programming language
  • Show in status bar: decides if position and number of words should be shown in the status bar along with number of characters
  • Documents: sets whether documents should by standard open in tabs (you can change it afterwards on an individual basis in the Window menu) and if Command plus number should use the current tab order or the order used in Documents
  • Indent new lines automatically: this gives a new line the same indentation as the previous line
  • File name extension: this is used to automatically give a new document a file extension
  • Converts line endings when saving: this converts all the line endings in the document to the chosen type when the document is saved
Themes

Here you first decide at the top which theme you want to change. Then you can change the background color for both the text part of the document and the line numbers. Then you can change the color of the text and the color when highlighting the current line and the selection and for invisible characters (when shown) and then also for all syntax types. At the bottom you can change the font for the text and line numbers. All changes are immediately updated in any open document.

Advanced
  • Autosave: decides if Smultron should automatically save the document regularly, turning this off means that some features such as Versions will stop working
  • UTF-8 BOM: this includes a UTF-8 BOM for documents when using the UTF-8 text encoding
  • Use spaces instead of tabs: sets whether when, for instance pressing the tab key, the number of spaces under Tab width should be inserted rather than a tab character
  • Open document with text encoding: setting this always opens documents with the specified text encoding rather than trying to guess which encoding the document uses
  • Colors: the color model used when inserting a color value from the Tools menu
  • Tab width: the number of spaces a tab characters is equal
  • Show page guide, at column: shows a line in the document at the specified column, note that if you use a font that is not monospaced the position of the line is undefined
  • Run text: the command used when for instance using Run Current Text from the tools menu
  • File extension: here you can decide which syntax should be chosen for a specific file extension, first choose the syntax and then add or change the file extension, without a dot and with a space between each extension

Regular Expressions

In Advanced Find you can use regular expressions to find and to replace whatever you want. Regular expressions are very powerful but also quite complicated to use properly. Below is a short list of some expressions you can use when searching but for a complete list you can go to: http://userguide.icu-project.org/strings/regexp

^ Start of a string
$ End of a string
. Any character (except \n)
* 0 or more of previous expression
+ 1 or more of previous expression
? 0 or 1 of previous expression
\w Matches any word character
\W Matches any non-word character
\s Matches any white-space character
\S Matches any non-white-space character
\d Matches any decimal digit
\D Matches any nondigit
[abc] Matches any single character included in the set
[^abc] Matches any single character not in the set
[a-z] Contiguous character ranges
(a|b) a or b
ab{2} Matches two b characters

Release Notes

9.4
  • Added setting in Preferences to change color model when using insert color value
  • Many small fixes and improvements
9.3
  • Added import and export for themes, commands and snippets
  • Many small fixes and improvements
9.2
  • Added preference to switch to a tab with Command and 1-9
  • Improvements to Advanced Find
  • Improved accessibility support
  • Better handling of large fonts in line numbers
  • Some other small fixes and improvements
9.1
  • Added Touch Bar support
  • Fixed a possible crash
  • Some other small fixes and improvements

End User License Agreement for Smultron 9

By using the licensed or demo version of Smultron 9 you agree to the following: