notepad++

PHP IDE--Want to sync local storage with FTP

痴心易碎 提交于 2019-12-23 15:13:11
问题 I currently use Notepad++ for most of my development. I have been checking out other, more full-featured options and would like to switch (I'm in particular a fan of Aptana so far) but there is one thing about Notepad++ that I really like and I haven't been able to get so far. My current workflow is something like this: Workflow (I tried to embed this image and it showed up in previews but not in the post, sorry) Workflow http://evanalyze.com/images/workflow.jpg The process is this: Download

How to delete first blank row in multiple files?

拟墨画扇 提交于 2019-12-23 12:51:34
问题 I have thousands of text file with empty first row. Is it possible to delete this row in all files at once? 回答1: You need a bat script like this @echo off for %%i in (*.txt) do ( more +1 "%%~fi">>temp del "%%~fi" ren temp "%%~nxi" ) Save the above code as something.bat and run it at your directory. 回答2: This will work using Notepad++ (tested with version 6.2.3): \A[\r\n]+ Explanation: \A and \Z always match the beginning and end of the entire file, irrespective of the multiline setting. Note:

Add a character ) to the end of every lines in Notepad++

断了今生、忘了曾经 提交于 2019-12-23 12:34:25
问题 I'd like to add the ) character (close bracket) to the end of all lines. I see CR is the end symbol of every lines. (Menu > View > Show Symbol > Show end of line) I tried to replace \r with )\r in Regular expression mode but it didn't work. How do I do this? 回答1: Use $ to match end of line in regular expression mode. Replace with \( , slash is to escape 回答2: You need to match extended or regular expression and replace "\n" with ")\n". At least this worked by me so far. According to this there

Notepad++:: Completely remove lines that contains question mark via Regex

拈花ヽ惹草 提交于 2019-12-23 12:00:52
问题 Well, I guess that that is my title is pretty much self explanatory on what I'm about to achieve. Here is an example of my current text file: "Diva" was the winning song of the Eurovision Song Contest 1998. Who will win Eurovision Song Contest 2015? Eurovision Song Contest Statistics: Who will win Eurovision 2015? This is what I want to get: "Diva" was the winning song of the Eurovision Song Contest 1998. Eurovision Song Contest Statistics: So basically each line that contains the ? character

Notepad++ regex reorder text a bit more complex

若如初见. 提交于 2019-12-23 05:11:42
问题 In trying to simplify, I had originally asked this question and I got an answer that works correctly here: regex to reorder text with MS Word 2010 or Notepad++ Unfortunately I tried to then apply what I learned but I could not figure it out! It's a lexicon, so for each entry (÷H1, ÷H2, ÷H3, etc etc etc) there are 1 or more "KJV Occurrences". IE: "÷H1" only has 1 word: " abidan ". But, "÷H2" has 2 words " abida " and " abidah ". and, "÷H3" has 3 words " abijah ", " abiah " and " abia ". (some

In NotePad++ how can I copy and paste everything inside a “+” section?

ぐ巨炮叔叔 提交于 2019-12-23 04:13:20
问题 In notepad++ you can collapse code blocks with the "+" button.... how can I collapse a large code block, copy it, then in a new file, collapse a large code block, and then replace the entire code block with the copied one? Thanks! 回答1: You can not do this in a one step. But here is a workaround for this. While in the shrink state (with + is in place) Right click immediately after the + and in the popup menu click Begin/End Select . Then Right click at the beginning of the next line again and

Notepad++ - can you use regex to move the last word on a line to the front?

随声附和 提交于 2019-12-23 02:54:15
问题 I have a list of names and nicknames in the format firstname/surname/nickname, and I need to reformat it so that the nickname comes first on the line and is placed in quotation marks. I've been able to put quotation marks around the nicknames using: Find what: (\w+).$ Replace with: "\1" This turns: Timothy Burr Tim Into: Timothy Burr "Tim" However, I'm not sure about whether it's possible to move the nickname to the beginning of each line. My goal is: "Tim" Timothy Burr 回答1: You could use a

Regex removing anything that is not a 14-digit number followed with space

别来无恙 提交于 2019-12-23 02:42:07
问题 I'm trying to invert this expression: ([0-9]{14} ) , so all 14 digit numbers followed by a space. I looked everywhere, and it seems that the best way should be using negative lookahead . But when I try apply q(?!u) to my case >> (?!([0-9]{14} )) , it doesn't work. What am I doing wrong? I will appreaciate any advice, thank you. The point is to remove everything that is not a 14-digit chunk of text while preserving those 14-digit chunks. 回答1: If you want to delete text other than 14 digits

Regex Replace Whitespaces between single quotes

丶灬走出姿态 提交于 2019-12-23 02:19:15
问题 I'm trying to find and replace a string into the wanted string, but can't get it to work. For example: 1777: '23.5R25 Bridgestone VLT **', Should be: 1777: '23.5R25-Bridgestone-VLT-**', I'm having like 1,700 lines like this and want every whitespace between the single quotes to dashes. I'm using Notepad++ for this. My approach: Find: '(.*?)\s+(.*?)' Replace: '\1-\2' But this works for just 2 words. 回答1: \s(?!(?:[^']*'[^']*')*[^']*$) You can use this and replace by - .See demo. https:/

Regex to replace html whitespace and leading whitespace in notepad++

为君一笑 提交于 2019-12-22 11:24:03
问题 I have tried to use the following regex expression to remove html whitespace and leading whitespace Find: \s*([<>])\s* Replace: $1 But each time that I do this I end up with 186 occurrences of $1 literaly in my document. Any assistance would be greatly appreciated Here is an example of what I am talking about This <fieldset id="prod_desc"> <p>Original AA </p> <b>Features:</b> <ul> <li>2 pole rectangular dome tent with 13.4 sq ft of vestibule storage </li> <li>Durable, shockcorded, self