SimpleEdit allows you to create your own and to edit existing definitions. These definitions can be easily created and edited with SimpleEdit itself or you can use any other Plist Editor. The definitions are stored in a sub folder of its 'Application Support Folder'.
This can be found in the Mac App Store version here:
And in the Non-MAS version here:
These definitions are 'loaded' every time you start SimpleEdit or when you create a new document. A definition is nothing else than a dictionary with objects and keys - much like JSON. You can think of definitions as rules for a language. They describe how your code's syntax will be highlighted and how you comment it. They also contain the words that are used for the completion. You will also find the items used for the command menu in such a definition file.
Currently SimpleEdit comes with the following definitions:
You can create as many definitions as you like and usually you directly select one when you create a new document - but, of course, you can change them at any time.
There is a reason why, at the moment, only these languages have a definition file - I don't know anything about other languages. It would be AWESOME if you could send me your definitions so that I can offer them for downloading here.
SimpleEdit is capable of working with any language, the syntax highlighting is designed to do more than just highlight some keywords. The customizable command menu can handle simple snippets, insert and replace strings, handle templates, open links, run terminal commands** - you can communicate with other Apps via AppleScript** and you can even send URL request. Please keep in mind that the sandboxed App Store version has limitations I can do nothing about and that, of course, not every fancy long-winded command may be possible simply because I have to support a wide range of possibilities.
Of course, you have to know what you are doing before you start to write furious emails - which you can do here by the way. Please check for your self first, that the problem does not sit in front of your screen. Chances are that I'm the culprit and I will happely fix it.
You may want to use this definition file as a starting point. I've used a similar approach that you may already know from other editors.
A definition needs a title and you can make it your default definition. For different tasks you could create different definitions - even if it is the same language.
** Please note that the sandboxed MAS version has limitations (e.g. AppleScript, running executables, applets etc.) I can do nothing about.
Replacement String (Clipboard)
Replacement string using clipboard content, if available - otherwise stringWithout is used
Replacement string using selection, if available - otherwise string will be inserted at cursor location
Snippet will be inserted at cursor location
Template will replace any possible existing text/code
Open URL either with selection or complete document as escaped string
URL (POST) Request
URL (POST) request using selection or document as escaped string
Command Line Command**
Command line command either with temporary string or file (executable can run in Terminal)
Command Line (La)TeX**
Command line command for (La)TeX packages, output will be displayed as PDF preview
Script Command **
Script command either with temporary string or file
String (String, the actual command/string/script etc.)
Optional (and depending on the kind):
keyString (String, used for the shortcut)
commandKeyAddition (String, used for the shortcut, available are: option and control)
shouldRun (BOOL, available for command line commands, will run executable in Terminal or open applet)
shouldOpenPDFPreview (BOOL, available for (La)TeX command line commands, opens output in built-in preview)
LaTeX Definition (edited)
Ruby Definition (basic)
Python Definition (basic)
Markdown Definition (basic)
Swift Definition (basic)
Hint: Right-click and 'Save Linked File As…'