How to add user defined regions with folding in Notepad++?

For version 6.5.5 and above: Under the menu “Language” there is a menuitem called “Define your language…“ In the tab “Folder & Default” is a group called “Folding in code” where you can enter an “Open”- and a “Close”-Keyword. For versions older than 6.5.5: Under the menu “View” there is a menuitem called “User-Defined Dialog…“ … Read more

Using Vim as an HTML editor

I do all of my HTML editing in vim. The three plugins I find most helpful for editing HTML and XML in vim are matchit, surround, and allml. Matchit will allow you to jump to the start/end tag with ‘%’. Surround allows you to easily add, delete, and change the surrounding tags. Allml provides you … Read more

Remove everything except a certain pattern

In order to remove anything but a specific text, you need to use .*(text_you_need_to_keep).* with . matching a newline. In Notepad++, use        Find: .*(phone=\S*?digits=1).* Replace: $1 NOTE: . matches newline option must be checked. I use \S*? instead of .* inside the capturing pattern since you only want to match any non-whitespace characters as few … Read more

Import Visual Studio syntax highlighting in Notepad++

Close Notepad++ Download Notepad++ Visual Studio Theme Extract the files to C:\Program Files\Notepad++\themes then start Notepad++ (create themes folder if it does not exist) In the menu bar, open Settings→Style Configurator… Click the Select theme dropdown and select the Visual Studio theme. Click Save & Close button. Information about theme can be found on archived … Read more

Disable automatic doubling of quotes in Notepad++

Notepad++ has a setting that controls the auto-completion behavior. Settings -> Preferences -> Auto-Completion ->Auto-Insert Edit: Your requirement: We need to type quotes twice for them to appear and when they do appear, there are two of them. This behavior is controlled by Keyboard language settings in Control Panel. Go to Control Panel -> Regional … Read more

Notepad plus plus shortcut for reloading files

Steps for mapping a keyboard shortcut for reloading files in n++. First open Notepad++ application Now go to Settings tab >Shortcut mapper Now here select the first tab which is main menu You can find the “reload from disk” option under the selected options. Note: Typically this is amongst the top commands, e.g. item #6. … Read more

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