notepad++

Regex in Notepad++: Find all 'INSERT INTO…;' queries

假如想象 提交于 2020-01-16 04:03:15
问题 I have a big sql file that contains a lot of 'create table ...' and 'insert ...' queries. Now I want to eliminate all the 'insert' queries from the file. The insert queries are somewhat like: INSERT INTO 'some_table' (col1, col2, col3) values ('val11','val12','val13'), ('val21','val22','val23'), ('val31','val32','val33'); Using Notepad++ I want to find and delete all these 'INSERT' queries using regular expression. When I tried finding with the regex INSERT INTO((.*\r\n)*) then it selects

How to distinguish en-dash from hyphen in Notepad++?

倖福魔咒の 提交于 2020-01-15 08:26:48
问题 Using Notepad++, I'm not able to distinguish an en-dash ( – ) from the standard hyphen ( - ). Surprisingly, both are represented with the latter. Is there a way to: visually distinguish them , or even better automatically replacing every en-dash with an hyphen when opening, or saving, the text file ? Using a RegEx to manually search and replace is not an option because I could forget to do it. I've installed Notepad++'s TextFX plugin that I know is good at handling this things, but I'm stuck.

How to distinguish en-dash from hyphen in Notepad++?

不问归期 提交于 2020-01-15 08:25:00
问题 Using Notepad++, I'm not able to distinguish an en-dash ( – ) from the standard hyphen ( - ). Surprisingly, both are represented with the latter. Is there a way to: visually distinguish them , or even better automatically replacing every en-dash with an hyphen when opening, or saving, the text file ? Using a RegEx to manually search and replace is not an option because I could forget to do it. I've installed Notepad++'s TextFX plugin that I know is good at handling this things, but I'm stuck.

Connect to server via FTP with Notepad++

天大地大妈咪最大 提交于 2020-01-15 07:24:28
问题 I am using Notepad++ (6.5.3 version) to edit my files. I want to connect to my server with Notepad++. I using this method: Open Notepad++ -> Plugins -> NppFTP -> Show NppFTP window In the NppFTP window: Click settings button -> profile setting -> add name to site -> add host name -> username -> pwd click close. Now i tried to connect my server in notepad++, but it give a following message [NppFTP] Everything initialized -> TYPE I Connecting -> Quit Unable to connect Disconnected Does anybody

Convert first lowercase to uppercase and uppercase to lowercase (regex?)

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-15 06:14:09
问题 I have a huge file in this layout: world12345:Betaalpha world12344:alphabeta world12343:ZetaBeta world12342:!betatheta I need to convert the first lowercase letter after the ":" to uppercase and the first uppercase letter to lowercase. I've tried using notepad++ and emeditor, but I'm not that experienced with regex. This is how I want it to become after (regex?) world12345:betaalpha world12344:Alphabeta world12343:zetaBeta world12342:!betatheta (unchanged, as the first char is a special char)

Convert first lowercase to uppercase and uppercase to lowercase (regex?)

狂风中的少年 提交于 2020-01-15 06:11:05
问题 I have a huge file in this layout: world12345:Betaalpha world12344:alphabeta world12343:ZetaBeta world12342:!betatheta I need to convert the first lowercase letter after the ":" to uppercase and the first uppercase letter to lowercase. I've tried using notepad++ and emeditor, but I'm not that experienced with regex. This is how I want it to become after (regex?) world12345:betaalpha world12344:Alphabeta world12343:zetaBeta world12342:!betatheta (unchanged, as the first char is a special char)

Replacing HTML text elements with increment variable

折月煮酒 提交于 2020-01-14 06:08:48
问题 In the below HTML part, I want to replace, whenever a text is found, with an incremental variable: <li class="cat-item"> <a href="#" >Beautiful Reclessness</a> </li> <li class="cat-item"> <a href="#" >Comfort vs. Appearance</a> </li> <li class="cat-item"> <a href="#" >Highlights of the Runway</a> <ul class='children'> <li class="cat-item"> <a href="#" >Christian Louboutin Show</a> </li> <li class="cat-item"> <a href="#" >Givenchy F/W 2016</a> </li> <li class="cat-item"> <a href="#" >Spring by

Carriage Return showing in notepad++ but not textpad?

随声附和 提交于 2020-01-13 08:58:30
问题 I have some text files copied out to a server. I typically use and prefer notepad++ to look at text files but on this server, only textpad is installed. This is really strange behavior but I noticed that when I view the EOL chars in notepad++ I can clearly see and search for the CRLF (i.e. \r\n). But when I display the same files in textpad, I am able to search only on the LF (\n) and do not have any hits on the CR (\r). Am I missing something on how Textpad is interpreting the EOL chars? 回答1

Getting NppExec to understand path of the current file in Notepad++ (for Python scripts)

扶醉桌前 提交于 2020-01-12 21:00:10
问题 Using windows for the first time in quite awhile and have picked up notepad++ and am using the nppexec plugin to run python scripts. However, I noticed that notepad++ doesn't pick up the directory that my script is saved in. For example, I place "script.py" in 'My Documents' however os.getcwd() prints "Program Files \ Notepad++" Does anyone know how to change this behavior? Not exactly used to it in Mac. 回答1: Notepad++ >nppexec >follow $(current directory) 回答2: You could put something like

Getting NppExec to understand path of the current file in Notepad++ (for Python scripts)

十年热恋 提交于 2020-01-12 20:59:03
问题 Using windows for the first time in quite awhile and have picked up notepad++ and am using the nppexec plugin to run python scripts. However, I noticed that notepad++ doesn't pick up the directory that my script is saved in. For example, I place "script.py" in 'My Documents' however os.getcwd() prints "Program Files \ Notepad++" Does anyone know how to change this behavior? Not exactly used to it in Mac. 回答1: Notepad++ >nppexec >follow $(current directory) 回答2: You could put something like