<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Is it possible to add new document templates?]]></title><description><![CDATA[<p dir="auto">I heard it’s possible to make templates with NewFileBrowser, but I don’t understand quite how to use it.</p>
<p dir="auto">What I’m looking for is to be able to start a new document and have a little bit of code written for me.</p>
<p dir="auto">Does anyone know if this is possible? Any help would be appreciated.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/19925/is-it-possible-to-add-new-document-templates</link><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Nov 2026 23:19:41 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/19925.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 30 Aug 2020 20:24:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Is it possible to add new document templates? on Sun, 30 Aug 2020 22:42:25 GMT]]></title><description><![CDATA[<p dir="auto">And now, since you brought it up, my review of that plugin, and suggestions for other choices.</p>
<ul>
<li>It looks to be pretty old (last update 2015), and doesn’t appear maintained</li>
<li>It only comes in 32bit (but they still have a non-Unicode “ANSI” version available!)</li>
<li>When you do create a new file of a given type, it doesn’t use the <strong>File Name</strong> entry from the <strong>Config Setting</strong> dialog at all.  Instead, it gives it a random all-caps name, and uses the all-caps version of the <strong>File Type</strong> dropdown as the extension for the file, rather than using any sort of reasonable extension. (so if you’ve defined a PERL entry, it names it XXXXXX.PERL instead of <a href="http://XXXXXX.pl" rel="nofollow ugc">XXXXXX.pl</a>)</li>
<li>I do like that it automatically sets the <strong>Language</strong> for the new file.</li>
<li>It doesn’t let you pick UDL</li>
<li>It doesn’t seem to honor the <strong>Auto Show in Browser when Saved (HTML)</strong> for either File1 (HTML) or for any of the other types (at least not in my experiments).</li>
<li>If you click the little IE logo it adds to the toolbar, it opens the active file in an in-Notepad++ instance of IE that the plugin has embedded.</li>
</ul>
<p dir="auto">Personally, I find it an interesting idea, but not well-executed.  It may have been top-of-the-line in 2015 when released, but I think it could be better today.  For getting the same features today, I would use:</p>
<ul>
<li>I would use the QuickText plugin for snippets, which allow me to do the initial populating of the file (by typing start then the QuickText-expansion keystroke).</li>
<li>I would use the builtin <strong>View &gt; View Current File In …</strong> rather than than its embedded IE instance; if I wanted to render in the Notepad++ environment itself, I would use the PreviewHTML plugin instead</li>
<li>The one feature I see missing is automatically applying the <strong>Language</strong> selection when creating a new file.
<ul>
<li>Of course, when I use Windows built-in <strong>Windows Explorer &gt; Right Click &gt; New … &gt; (select file type)</strong>, I can use Windows to store those templates, and assign a reasonable filename and extension right away; then when I open-with Notepad++ on the new file, it’s been populated from the template and opens with the right <strong>Language</strong> already selected as well… And this allows you do define a template for any UDL by just using the right extension as well.</li>
</ul>
</li>
</ul>
<p dir="auto">(PS: Seeing the new posts from <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> and <a class="plugin-mentions-user plugin-mentions-a" href="/user/andrecool-68" aria-label="Profile: andrecool-68">@<bdi>andrecool-68</bdi></a> , I concur that PythonScript could be used to automate the initial template as well, and Npp Snippets is an alternative to the QuickText plugin.)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/57201</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/57201</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sun, 30 Aug 2020 22:42:25 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to add new document templates? on Sun, 30 Aug 2020 22:37:33 GMT]]></title><description><![CDATA[<p dir="auto">I advise you to test the “Npp Snippets” plugin. It already has a lot of snippets of different code and for different languages. You can also create and save your own code snippets, and insert them wherever you need it.<br />
<a href="https://github.com/ffes/nppsnippets" rel="nofollow ugc">https://github.com/ffes/nppsnippets</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/57200</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/57200</guid><dc:creator><![CDATA[andrecool-68]]></dc:creator><pubDate>Sun, 30 Aug 2020 22:37:33 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to add new document templates? on Sun, 30 Aug 2020 22:34:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nate0523" aria-label="Profile: Nate0523">@<bdi>Nate0523</bdi></a> said in <a href="/post/57196">Is it possible to add new document templates?</a>:</p>
<blockquote>
<p dir="auto">What I’m looking for is to be able to start a new document and have a little bit of code written for me.<br />
Does anyone know if this is possible? Any help would be appreciated.</p>
</blockquote>
<p dir="auto">It’s certainly possible; I have it doing just that kind of thing when I start writing a new script file for the Pythonscript plugin.  The little thing itself is written in…, well, Pythonscript itself.</p>
<p dir="auto">So maybe say a bit more about what you’re looking for, and, knowing that, I’ll see if what I’ve got can handle it (I think it probably can), and I’ll post something…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/57199</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/57199</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 30 Aug 2020 22:34:16 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to add new document templates? on Sun, 30 Aug 2020 22:23:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nate0523" aria-label="Profile: Nate0523">@<bdi>Nate0523</bdi></a> ,</p>
<p dir="auto">I had never heard of nor used it; apparently, there is only a 32bit version.</p>
<p dir="auto">But I installed it, and was able to muddle my way through.  (The plugin’s docs at <a href="https://sourceforge.net/projects/locationnav/" rel="nofollow ugc">its sourceforge page</a> are minimalistic, and focus on the author’s other plugin housed at the same page.)</p>
<p dir="auto">So my process was</p>
<ol>
<li>Install plugin</li>
<li>Go to <strong>Plugins &gt; Newfile&amp;Browser &gt; Option</strong></li>
<li>If you go to the <strong>New File No.</strong> drop-down<br />
<img src="/assets/uploads/files/1598825702653-92ed1920-2b91-48e2-a081-8c510fd75de4-image.png" alt="92ed1920-2b91-48e2-a081-8c510fd75de4-image.png" class=" img-fluid img-markdown" />
<ul>
<li>you can pick either File1 (for HTML) or File2 (for JAVA)</li>
<li>if you <strong>Edit Initial Text</strong>, you can modify the template for that language</li>
</ul>
</li>
<li>if you change the <strong>Total Count</strong> dropdown to another number (3 or more), then <strong>New File No.</strong> will get additional entries
<ul>
<li>you can choose one of the new entries, then select <strong>File Type</strong> as appropriate.</li>
<li>If you enter a <strong>File Name</strong>, it will show up in the menu (later), though as far as I can tell, that isn’t used anywhere</li>
<li>click <strong>Edit Initial Text</strong> to edit the text for the template.  It will save as <code>%AppData%\Notepad++\Plugins\Config\template#.dat</code>.  Save the file in Notepad++</li>
<li>click on <strong>Save</strong> in the <strong>Config Setting</strong> dialog to make sure it saves the number and order of templates.</li>
</ul>
</li>
<li>After exiting Notepad++ completely and restarting, the new entries show the new entry:<br />
<img src="/assets/uploads/files/1598826065742-e4442ae5-1e8e-4960-b3d7-998a783e7c10-image.png" alt="e4442ae5-1e8e-4960-b3d7-998a783e7c10-image.png" class=" img-fluid img-markdown" /></li>
<li>If you click on one of the <strong>Plugins &gt; Newfile&amp;Browser &gt; Create …</strong> entries, it will populate the
<ul>
<li>The <strong>About Newfile&amp;Browser</strong> shows that placing the sequence <code>^!</code> in the template file will mean when it creates the new file from the template, it will place the cursor at that location in the template file</li>
</ul>
</li>
</ol>
]]></description><link>https://community.notepad-plus-plus.org/post/57197</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/57197</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sun, 30 Aug 2020 22:23:18 GMT</pubDate></item></channel></rss>