I have modified mql.properties so that we have our own abbreviations file in <SciTE Directory>\abbrevs. I added the following lines to mql.properties:
Code: Select all
# abbreviations
abbreviations.$(file.patterns.mql)=$(SciteDefaultHome)/abbrevs/mql.abbrev
<shortcut>=<lots of stuff with embedded newlines and tabs, whatever else you want but all on one line>
So, a simple abbreviation to put in a header for a function could look like this:
Code: Select all
//+=//+------------------------------------------------------------------+\n//| \n//+------------------------------------------------------------------+Code: Select all
//+------------------------------------------------------------------+
//
//+------------------------------------------------------------------+
Code: Select all
/script=//+------------------------------------------------------------------+\n//| <Scriptname>.mq4 |\n//| Copyright © 2012, <your name> |\n//+------------------------------------------------------------------+\n#property copyright "Copyright © 2012, <yourname>"\n\n//+------------------------------------------------------------------+\n//| script program start function |\n//+------------------------------------------------------------------+\nint start()\n {\n return(0);\n }\n//+------------------------------------------------------------------+One more tip, if you have your own code, formats, whatever that you want turned into abbreviations, you can paste them into a blank document and then format them via search and replace. Just search for "\r\n" and replace with "\\n". Make sure to select the option in the replace dialog to "Transform backslash expressions". This will collapse everything to one line.
George