Manage code snippets in Notepad++

There is a good plugin to manage code snippets: SnippetPlus .NET 3.5 Required! Code snippet and Surround With plugin for Notepad++. Write snippet name and replace it with real code or select some text and surround it with something like IF,TryCatch,Table,Div or whatever.Will give you hint if you don’t remember the snippet name Note that … Read more

Notepad++ newline in regex

Notepad++ can do that comfortably, you don’t even need regexes In the find dialogue box look in the bottom left and switch your search mode to Extended which allows \n etc. As odds on you’re working on a file in windows format you’ll be looking for \r\n (carriage return, newline) a\r\nb\r\nc Will find the pattern … Read more

Notepad++/Eclipse sql code auto-indent option?

Yes, there is a free/open-source T-SQL formatting plugin for Notepad++, called “Poor Man’s T-SQL Formatter”. It is available in the NPP “Plugin Manager” plugin list (gets updated every once in a while automatically), and is also available for manually downloading/installing from here: http://www.architectshack.com/PoorMansTSqlFormatter.ashx If you just want to check it out without adding to notepad++, … Read more

Notepad++ Regex Backreference syntax in Search/Replace – \1 or $1

Notepad++’s earlier versions (v5.9.8 and prior) only supported standard POSIX Regular Expressions. However, full PCRE (Perl Compatible Regular Expression) Search/Replace support was added in version 6.0: New features and enhancement in Notepad++ 6.0: PCRE (Perl Compatible Regular Expressions) is supported. This means that if you’re using Notepad++ v6.0 or any newer version (e.g v6.1.5), you … Read more

Is is possible to export functions from a C# DLL like in VS C++?

Unmanaged Exports => https://sites.google.com/site/robertgiesecke/Home/uploads/unmanagedexports DLLExport => https://github.com/3F/DllExport How does it work? Create a new classlibrary or proceed with an existing one. Then add the UnmanagedExports Nuget package. This is pretty much all setup that is required. Now you can write any kind of static method, decorate it with [DllExport] and use it from native code. … Read more

How to compile and run C files from within Notepad++ using NppExec plugin?

Here’s a procedure for Perl, just adapt it for C. Hope it helps. Open Notepad++ Type F6 to open the execute window Write the following commands: npp_save <– Saves the current document CD $(CURRENT_DIRECTORY) <– Moves to the current directory perl.exe -c -w “$(FILE_NAME)” <– executes the command perl.exe -c -w , example: perl.exe -c … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)