SmultronAn elegant and powerful text editor that is easy to use.
Use Smultron to create and edit everything from a web page, a script, a list, to every kind of text or code.
The new Smultron 5 has many improvements and new features. Some of them are text folding, much better international support, see two different parts of a document and full support for the latest OS X and the latest Macs.
Here are the release notes and changes for Smultron 5:
Please note that Smultron 5 is only for OS X 10.8 Mountain Lion.
If you are using OS X 10.7 Lion you can get Smultron 4 instead.
If you are using OS X 10.6 Snow Leopard you can get Smultron 3 instead.
Smultron is available in English, Chinese (Simplified), Danish, Dutch, Finnish, French, German, Italian, Japanese, Korean, Norwegian, Portuguese, Russian, Spanish and Swedish
Smultron is the Swedish name for wild strawberry (fragaria vesca).
Use the Font menu in the Text menu.
You do this in System Preferences - Keyboard - Keyboard Shortcuts. Choose Application Shortcuts and then press + and then choose Smultron and write the exact name of the snippet or command.
That is a standard system feature which is there to help you with pasting text. But you can turn it off if you want in the Edit menu, under Substitutions just deselect Smart Copy/Paste.
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 into what is decided by System Preferences - Language & Text - Text.
To make it easy for everyone there is a setting in the View called Darker Theme which you can use if you want to use a darker background and appropriate text color for that.
Select it and press Backspace on the keyboard.
When you are in the standard open dialog just press Command-Shift and a dot.
Snippets, Commands are saved in your preference files and that can be found here: <your home folder>/Library/Containers/com.peterborgapps.Smultron5/Data/Library/Preferences/com.peterborgapps.Smultron5.plist. You can see that folder in Finder by choosing Go to Folder in the Go menu and then write: ~/Library/Containers/com.peterborgapps.Smultron5/Data/Library/Preferences/
Not automatically as they are two separate apps in Mac App Store but you can copy the file <your home folder>/Library/Preferences/com.peterborgapps.Smultron4.plist and name it <your home folder>/Library/Containers/com.peterborgapps.Smultron5/Data/Library/Preferences/com.peterborgapps.Smultron5.plist All settings which are the same will then use the old settings.
Generally the language uses is determined by your system setting in System Preferences - Language & Text (see http://support.apple.com/kb/PH6467 for more information). But that setting applies to all apps and 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.Smultron5 AppleLanguages '(en)'
Yes, there is a basic command for Smultron 5 which you have to download separately as it cannot be included in the Mac App Store release. You can download it from here.
ActionScript, ActionScript 3, Active4D, Ada, AMPL, Apache, Applescript, ASM-x86ASM-MIPS, ASP - JavaScript, ASP - VB, ASP.NET - C#, ASP.NET - VB, AWK, Batch, C, C++, C#, Cobol, CoffeeScript, ColdFusion, Csound, CSS, CUDA, D, Dart, Diff, Dylan, Eiffel, Erlang, eZ Publish, F#, Fortran, FreeFem++, GEDCOM, GIFT, GNU Assembler, Haskell, Header, HTML, IDL, Java, JavaFX, JavaScript, JSON, JSP, LaTeX, Lilypond, Lisp, Logtalk, LSL, Lua, Markdown, Matlab, MetaPost, MEL, Metaslang, Multi User Forth, MySQL, Nemerle, NEURON, Objective Caml, Objective-C, Ox, Pascal, PDF, Perl, PHP, Plist, PostScript, PowerShell, Prolog, Python, R/S-PLUS, RHTML, Ruby, Scala, Scheme, Servoy JavaScript, SGML, Shell, SML, SQL, Stata, Stylus, SuperCollider, SVG, Tcl/Tk, TorqueScript, Udo, UnityScript, VB, Verilog, VHDL, XML
Smultron has full support for storing your documents in iCloud so that you can access them on all your computers. And with Smultron for iPhone and iPad you can also access and edit the same documents on your iPhone, iPad or iPod touch. When you save a document you simply choose iCloud under Where to put a document in iCloud. And you can open documents from iCloud by choosing iCloud in the top left corner in the normal Open... dialog. You can also handle your iCloud documents in System Preferences - iCloud.
Smultron colors the syntax of over 90 code languages. It automatically finds the correct syntax by looking at the file extension or the parts of the content to see if it that way can find what language the document is in (you can manually change it in the Text menu). If you want to turn off the colors you do it the View menu.
If you temporarily don't want to see a part of the document you can select it and choose Fold unde rText Folding in the Text menu. This replaces the selected text with a symbol (but only on the screen, the document still has all your text) so that you can see more of the parts of the document that you are interested in right now. In the same menu you then choose to Unfold that text by placing the cursor next to the symbol.
If you want to see two different parts of the same document you can choose Split Window in the View menu. If you hold option you split the window horizontally.
You can edit the document in full screen (nothing else is visible, not even the menu bar, but you can show it by moving your mouse to the top of the screen) by choosing the command in the View menu. Smultron fills 80 per cent of the screen with your document.
You can see a list of all the functions in your document in the Tools menu or with the toolbar item (if you have chosen to display it by using Customize Toolbar in the View menu).
Snippets are pieces of text that you use often or want easy access to. You create a snippet by using the command in the Tools menu. If you include one or several %%s in the text, they will be replaced by the current selection, if some text is selected when the snippet is inserted. And if you include a %%c the cursor will be placed at that position after the snippet has been inserted.
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 was opened but not closed. After it has found the correct one it insets the closing tag adding a / to the opening tag. Note that this feature only works with tags surrounded by < and >.
With this you can preview the content of the current document. Smultron opens the document in the app that has been chosen in the system (using Info in Finder) for that kind of document.
You can run commands from within Smultron if you e.g. want to compile some code or make a file executable, or if you want e.g. to validate an HTML document or insert e.g. the current date. If there is a result from the command it can be shown in the current text if you have chosen it to be inline or otherwise in a separate window. You can include %%p or %%d in your command to get the full path or directory of your current document. This means that you don't have write the path of the document but you can e.g. compile the current document easily. If you include %%s the selected text will be saved into a temporary file and %%s exchanged with the path to that file. You can also select some text and run that text as a command inline. E.g. if you write "date" (without the quotes) and select it and choose Run Selection Inline from the Tools menu it will be replaced by the current date.
When you choose Run Current Text in the Tools menu the text is saved to a temporary file and then ran with the command chosen in Preferences, normally /bin/sh. Any result is displayed in the Commands window.
You can set in the Preferences whether Smultron should suggest the completed word automatically. Otherwise you can press F5 or Option-Esc to get the list. If you don't find a match in what's been suggested you can press Esc or just continue writing.
Inserts whatever the syntax definition has defined as single-line comment for the current document, e.g. // for a PHP-document, at the beginning of the line if the first line of the selection isn't already commented, otherwise it removes the comments. The menu item is only available if the used syntax definition has a defined single-line comment.
Multi-document search and replace with the option to use regular expressions. The regular expression engine is ICU.
Shows a symbol for characters that are usually not seen, e.g. space, tab and new-line.
Removes any possible spaces or tabs after the text and before the line break.
Remove tabs and spaces to shift to selected text to the left or insert tabs to move it to the right.
If you want to see the whole path to the document you can show the path bar from the View menu. If it is a new document which hasn't been saved it shows the path to the root of the startup disk (/).
This changes all occurrences of &, < and > in the selection into &, < and > so that the text can be used in a XML-file.
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 |
Some preferences can be set in the Preferences window but most are either set automatically or set through e.g. the View menu. But there are a few other settings which some might want to set and they can be set in the Terminal app which can be found in /Applications/Utilities. Quit Smultron and then open Terminal and write the commands found below (please note that you need to be careful when writing the commands and you might need to delete the preference file and start from the beginning if you make a mistake).
Whether Smultron should automatically save the documents or if you need to manually save them. Disabling this also disables Versions. The default is YES.
defaults write com.peterborgapps.Smultron5 AutoSave -bool NO
If you want to display a thin line after e.g. 80 characters. This only works correctly when you use a monospaced font. You turn this on in the View menu but with this command you can change at which it should be shown. The default is 80.
defaults write com.peterborgapps.Smultron5 ShowPageGuideAtColumn -int 80
How many spaces a tab equals in e.g. converting spaces to tab. The default is 4.
defaults write com.peterborgapps.Smultron5 TabWidth -int 4
Whether the word common English (or whatever language you are using) words should also be included in the auto-completion instead of just the words from current syntax definition. By default it includes them, turn them off by this command. The default is YES.
defaults write com.peterborgapps.Smultron5 AutocompleteIncludeStandardWords -bool NO
How long (in seconds) after the last pressed key that the list of matching words should appear.
defaults write com.peterborgapps.Smultron5 AutocompleteAfterDelay -float 0.5
To write a UTF-8 document with BOM use this command. The default is NO.
defaults write com.peterborgapps.Smultron5 UTF8WithBOM -bool YES
To change how much of the screen that should be used when in full screen mode in per cent. The default is 80.
defaults write com.peterborgapps.Smultron5 FullScreenWidth -float 80
When you choose Run Text in the Tools menu the text is saved to a temporary file and then ran with this command. The default is "/bin/sh". If e.g. you want to run it with it the php command you use the following command:
defaults write com.peterborgapps.Smultron5 RunText -string "/usr/bin/php"
If you want to turn off that Smutron shows the whole path in the Documents window when viewed as a list, then use this command:
defaults write com.peterborgapps.Smultron5 ShowFullPath -bool NO
If you want to show the position in the status bar, use this command:
defaults write com.peterborgapps.Smultron5 ShowPositionInStatusBar -bool YES
If you always want the Documents window to be above all other windows then use this command:
defaults write com.peterborgapps.Smultron5 DocumentsWindowOnTop -bool YES
Until there is another solution in place and you want to change the default syntax colors you can copy the settings from Smultron 4 if you have that app installed. First turn off Smultron 5 and then set your colors in Preferences in Smultron 4. Turn off Smultron 4 and copy its preference file to Smultron 5 (please note that if you have set any other Smultron 5 specific settings that they will be lost). You do this by copying the file:
~/Library/Preferences/com.peterborgapps.Smultron4.plist
to
~/Library/Containers/com.peterborgapps.Smultron5/Data/Library/Preferences/com.peterborgapps.Smultron5.plist
(make sure that you remember to change the 4 into 5)