#5441
Yutaka Emura
Keymaster

blackhawk wrote:
I would like to see Snippets allow for blocks of code that can be inserted into any document.

It should allow for highlighted text to be dragged and dropped into the Snippets add-in and then a name can be assigned to it.

Now, if you really want to get fancy :-D , I could also use the capability to autofill text contained within the snippet using tags. When the snippet is inserted it scans the text for tags (i.e. {#xxxx#} or something) and then brings up a dialog with all of the tags that need to be filled in.

Once you specify the values for the tags, then it finishes the insert replacing all tags with the values you specified.

If all you can provide is a better mechanism for adding and updating multiple line snippets (drag and drop from selected text) that would be a start.

I agree, but I didn’t make the perfect plug-in. The source code is availalbe at http://www.emeditor.com/modules/mydownloads/singlefile.php?cid=6&lid=125 I left some space for developers to develop the plug-in further.