Familie Fesevur

Code Snippets for Notepad++

Introduction

NppSnippets is a plug-in for Notepad++ . It adds the possibility to add code snippets to the current document by selecting it from a simple list.

Download

To download version 0.4.0, click here.

How to install

Copy NppSnippets.dll to the plugins directory, copy NppSnippets.sqlite to the plugins/Config directory and restart Notepad++.

How to use

To open the Snippets window, click on the “S” button on the toolbar, or via the menu “Plugins” -> “Snippets” -> “Snippets”.

The window consist of two parts. A combo where you can select the library and underneath there is the list of snippets in the chosen library. To insert a snippet simply double click on the item in the list and the snippet is inserted at the current cursor position.

When you switch to another document with another language the snippets for that new language are read from the database.

For more documentation see the ReadMe.pdf that is included in the original archive.

License

This plugin is released under the GPL2-license. The source code can be found here.

Release history

Version 0.4.0 (8 April 2010)

  • The database schema is updated and is now at version 2. The most important difference is that the “language” and “last used” field of the library are now in a separate table, allowing it to be one-to-many. Existing databases will be converted automatically to the new schema.
  • When there are multiple libraries for a language, changing to another library works and the last used library is remembered.
  • The plug-in now first tries to find the database in the user's plug-in config directory. If the database can't be found there it looks in the plugin\config directory in the Notepad++ installation directory.
  • Small improvements to the About dialog.
  • There are now 4 HTML libraries, 1 PHP libraries, 1 XML library and 1 (rather useless) General library

Version 0.3.0 (10 February 2010)

  • First alpha version, released under the GPL2 license.
  • The basics work, no User Interface yet to edit the snippets.

Version 0.1.0 (22 January 2010)

  • Proof of concept.