notepad++

How can I repeat the line in notepad++?

南楼画角 提交于 2019-12-20 09:57:10
问题 How can I repeat the line in notepad++ ? For example I have the following input: a 01 a 02 a 03 a 04 And I would like it to become: a 01 a 01 a 02 a 02 a 03 a 03 a 04 a 04 So every line should be displayed twice . 回答1: If you don't mind the semi-manual process, you can start at the first line and repeat the following key combination until you reach the end of the document (you get very fast at this) Ctrl + D Down Down This duplicates the current line, then moves down twice (to the line

Using VIM as a HTML editor

孤人 提交于 2019-12-20 09:29:23
问题 You know how Notepad++ has this feature that when you click on a tag (say ) it automatically highlights the ending tag () as well? What's it called? And how do you tweak VIM to have this feature as well? And any more ways you can turn VIM into a powerful and efficient HTML editor? 回答1: 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

Find and replace with reordered date format in notepad++

不问归期 提交于 2019-12-20 08:40:42
问题 I have a file with a few thousand rows to be added to a MySQL database. There are date values in the rows which are in the dd-mm-yyyy format but I need them to be in the yyyy-mm-dd format. E.g., '11-04-2010', needs to become '2010-04-11', in every row. Is there a simple way to do this in notepad++ or another text editor? 回答1: You can do this with Textpad: Find: ([0-9]+)-+([0-9]+)-+([0-9]+) Replace: \3-\2-\1 回答2: To make sure you only reorder wrong formats (in case you have mixed formats from

Notepad++ cached files location

流过昼夜 提交于 2019-12-20 08:15:12
问题 On the most recent versions of Notepad++, when the application is closed, unsaved files are maintained when the application is restarted. I presume that those files are cached on a temporary files. What is the location of that file(s). Thank you 回答1: I noticed it myself, and found the files inside the backup folder. You can check where it is using Menu:Settings -> Preferences -> Backup . Note : My NPP installation is portable, and on Windows, so YMMV. 回答2: I lost somehow my temporary notepad+

File tree view in Notepad++

我的未来我决定 提交于 2019-12-20 08:05:32
问题 I was wondering how to make a file tree view in Notepad++, like other editors have, where I could open a file by clicking on it? 回答1: You can add it from the notepad++ toolbar Plugins > Plugin Manager > Show Plugin Manager. Then select the Explorer plugin and click the Install button. 回答2: Tree like structure in Notepad++ without plugin Download Notepad++ 6.8.8 & then follow step below : Notepad++ -> View-> Project-> choose Panel 1 OR Panel 2 OR Panel 3 -> It will create a sub part Wokspace

Notepad++ regex code to extract end of line

北战南征 提交于 2019-12-20 07:46:51
问题 i have a source code that i need to capture. the whole file is of one line but i am not able to capture the data that i require. allow=ok&secret=4326dwsaddsafsd286435dsfs754 now i need to capture this data 4326dwsaddsafsd286435dsfs754 which changes everytime. it contains mixed a-z and 0-9, total lenght 40 letters i tried using Left and Right selectors by using "secret=" on left but since the source ends at the end of the value, i dont have any thing to put in right selector. so i need to know

Switch word postions in Notepad ++

流过昼夜 提交于 2019-12-20 07:26:19
问题 My text looks like this: Text1 | Text2 | Text3 | Text4 | Text5 | Text6 | Text7 And I want to change text positions like this Text1 | Text4 | Text5 | Text6 | Text2| Text3 | Text7 And if it's possible to remove the | between Text 4, 5, 6, so that it looks like Text1 | Text4 Text5 Text6 | Text2 | Text3 | Text7 If it is not possible, I'll be happy if the first problem is solved. 回答1: You may use ^([^|]*\|)((?:[^|]*\|){2})((?:[^|]*\|){3}) And replace with $1$3$2 . Details : ^ - start of a line ([^

REGEX in Notepad++ find/replace

拈花ヽ惹草 提交于 2019-12-20 07:17:04
问题 Is it possible to use the value of a regex in the "FIND" part of a find/replace in Notepad++ ? Here's what i have : FIND: ^.{105}.*(.) REPLACE: \r\n the value to replace is the 106th character in my file. let's say it's an ~ now the find/replace should find & replace all occurrence of ~ and replace all of them by '\r\n' (the ~ represent the end of line character) It doesn't work, it replace the whole string instead of the 106th char and only replace once instead of multiple time on the file.

Remove lines that is shorter than or equal 5 characters after the : using Notepad++

杀马特。学长 韩版系。学妹 提交于 2019-12-20 06:27:26
问题 The question is like: Remove lines that is shorter than 5 characters before the @ using Notepad++ But it differs a bit... I have like that: abc:123 abc:1234 abc:12345 PLEASE NOTE : abc is not on all the lines, it is just an example. I want to remove the first line in the previous example because 123 which is after : is shorter than or not equal to 5 characters. Any help would be appreciated. Thanks! 回答1: Open Notepad++ find and replace choose regex mode in the search and place ^((?!.+:\d{5,})

Notepad++ Search And Replace Multiple Text Lines

自古美人都是妖i 提交于 2019-12-20 06:03:20
问题 I have thousands of these in many different rules rules edit 1698 set src-address "172.29.44.51/32" set dst-address "172.29.44.67/32" set service "tcp-1022" set service "tcp-1023" set service "tcp-1090" set service "tcp-1098-1102" set service "tcp-115" set service "tcp-123" set service "tcp-13000" set service "tcp-13001" set service "tcp-14000" set service "tcp-14001" set service "tcp-15000" set service "tcp-16000" set service "tcp-1812" set service "tcp-22" set service "tcp-32770-32900" set