Just curious if there is any way to duplicate what EditPlus does in Opening a new HTML document (or whatever document you're opening)? By that I mean, once you click "new" it would open up a basic template to start with so you don't have to go in and either copy and paste the doctype, html, head, etc., tags or type them all out yourself.
I've seen the quicktext plugin and that works pretty good, just didn't know if the above was possible?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Before I made it back here again to read the new suggestions, I actually did create a basic template and saved it on my hard drive and then moved it up into the favorites in the explorer lite sidebar plugin. This seemed to be the most convenient way to do it.
I'll do some more investigating on the simple script plugin. I've never heard of it before now.
Thanks again.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Perhaps you could save your templates from EditPlus as read-only files, open them in Notepad++ and Save them As... as soon as you open them as "new" document?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the reply. If I understand you correctly, I have thought about doing that. Just creating a basic template to start with, saving it on my hard drive somewhere and every time I get ready to start a new website, go to File >> New and open that template. It's easily done, just more steps. I wanted to check and see if Notepad++ had the built in functionality to specify a template that was opened by default as soon as you click "new."
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I was actually thinking the same thing. Originally I thought of using a series of add functions to build the template line by line, then I just realized that if you store the template in an external file, you can use the appendfile function in a script to load the template, especially if you add the script to the SimpleScript.ini file.
I think using the Favorites in the Explorer plugin might require slightly fewer steps because you don't have to create a new document first and the drop-down list of favorite scripts isn't quite as convenient as the Favorites window, especially if you have the Favorites window open permanently, but it's really a matter of preference.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I haven't used the Explorer Plug-In and was thinking templates might be a nice, simple and convenient addition to the Simple Script Plug-In. Instead of a standardized action to perform on a document, it can simply generate a standard document, the template.
Perhaps this could be done in the form a a list similar to the favorites, but without each template having to be activated or formed by some kind of script. I think it would work best if the Simple Script would simply create the document from its own list of favorite( template)s, when an item is double clicked, for example. Creating would mean performing the steps descibed above: creating a new document, copying the template into it, leaving the user with the need to name his file as soon as he wants to save it, but allowing him to directly edit it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Perhaps the Simple Script Plug-In could be extended somehow to support both scripts and templates, allowing code to be generated from some kind of "standardized" input. (Anyway, I "feel" the Simple Script Plug-In is the place to add templates to.)
I am thinking of simple SQL scripts I write for adding columns to a table. Perhaps this could me automated in some way, based on a simple template containing some default code or possibly multiple (parts of a) template(s). The user-made code generate script could then contain function calls to create the full script by (combining the parts of the template and) replacing some identifier words like #TableName# by the correct tablename read from another template, file or list. The same goes for columns to be added, including their types etc. I believe the Simple Script Plug-In currently doesn't have loop functionality to read items from a list and/or repeat actions, but adding this would enable this kind of extended "automated" code scripting. How do you feel about this?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'd like to continue to discuss using Simple Script to work with templates, but since the original poster has found a solution that works for him, it's no longer appropriate to discuss it in this thread.
Just curious if there is any way to duplicate what EditPlus does in Opening a new HTML document (or whatever document you're opening)? By that I mean, once you click "new" it would open up a basic template to start with so you don't have to go in and either copy and paste the doctype, html, head, etc., tags or type them all out yourself.
I've seen the quicktext plugin and that works pretty good, just didn't know if the above was possible?
Thanks
Hey, thanks everyone for chiming in on this.
Before I made it back here again to read the new suggestions, I actually did create a basic template and saved it on my hard drive and then moved it up into the favorites in the explorer lite sidebar plugin. This seemed to be the most convenient way to do it.
I'll do some more investigating on the simple script plugin. I've never heard of it before now.
Thanks again.
Perhaps you could save your templates from EditPlus as read-only files, open them in Notepad++ and Save them As... as soon as you open them as "new" document?
Hi,
Thanks for the reply. If I understand you correctly, I have thought about doing that. Just creating a basic template to start with, saving it on my hard drive somewhere and every time I get ready to start a new website, go to File >> New and open that template. It's easily done, just more steps. I wanted to check and see if Notepad++ had the built in functionality to specify a template that was opened by default as soon as you click "new."
Thanks.
To save some steps, you could add your templates to your Favorites in the Explorer plugin.
Or store them as scripts for the Simple Script Plug-In?
This will avoid having to rename the file (Save As... before any editing to make it not read-only anymore).
I was actually thinking the same thing. Originally I thought of using a series of add functions to build the template line by line, then I just realized that if you store the template in an external file, you can use the appendfile function in a script to load the template, especially if you add the script to the SimpleScript.ini file.
I think using the Favorites in the Explorer plugin might require slightly fewer steps because you don't have to create a new document first and the drop-down list of favorite scripts isn't quite as convenient as the Favorites window, especially if you have the Favorites window open permanently, but it's really a matter of preference.
I haven't used the Explorer Plug-In and was thinking templates might be a nice, simple and convenient addition to the Simple Script Plug-In. Instead of a standardized action to perform on a document, it can simply generate a standard document, the template.
Perhaps this could be done in the form a a list similar to the favorites, but without each template having to be activated or formed by some kind of script. I think it would work best if the Simple Script would simply create the document from its own list of favorite( template)s, when an item is double clicked, for example. Creating would mean performing the steps descibed above: creating a new document, copying the template into it, leaving the user with the need to name his file as soon as he wants to save it, but allowing him to directly edit it.
Perhaps the Simple Script Plug-In could be extended somehow to support both scripts and templates, allowing code to be generated from some kind of "standardized" input. (Anyway, I "feel" the Simple Script Plug-In is the place to add templates to.)
I am thinking of simple SQL scripts I write for adding columns to a table. Perhaps this could me automated in some way, based on a simple template containing some default code or possibly multiple (parts of a) template(s). The user-made code generate script could then contain function calls to create the full script by (combining the parts of the template and) replacing some identifier words like #TableName# by the correct tablename read from another template, file or list. The same goes for columns to be added, including their types etc. I believe the Simple Script Plug-In currently doesn't have loop functionality to read items from a list and/or repeat actions, but adding this would enable this kind of extended "automated" code scripting. How do you feel about this?
I'd like to continue to discuss using Simple Script to work with templates, but since the original poster has found a solution that works for him, it's no longer appropriate to discuss it in this thread.
I started a new thread where we can discuss it:
http://sourceforge.net/forum/forum.php?thread_id=1907273&forum_id=482781