notepad++

Notepad++ Custom Function List (Basic)

99封情书 提交于 2019-12-25 04:14:26
问题 I am trying to use Notepad++ as my new editor for PicBasic code. I want to be able to use the function list capability, but I have no experience with XML and the Notepad++ website does not explain how to create your own function list parser very well. For example, an xml function header would look like: <parser id="xml_node" The Notepad++ parser looks like this: <parser id="xml_node" displayName="XML Node" commentExpr="<!--([^-]|-(?!->))*-->"> <!-- Only match nodes with at least one attribute

Find text and Replace for filename on notepad++

不想你离开。 提交于 2019-12-25 02:38:13
问题 I have a bunch of files that I have in line 7(using notepad++) this: name: word And I want to replace that word with the filename without the file extension .yml (the filename have just the dot from the extension, example: filename.yml), so when replaced it looks like this: name: filename Can anyone help me since I have no knowledge with find/replace variables on notepad++? Examples: name: tower name: house name: building name: marcus name: john 回答1: You can achieve this relatively simply by

Add a new command to notepad++

孤街浪徒 提交于 2019-12-25 02:25:15
问题 Notepad++ is my go to editor for most things. I would like to develop a new command(keyboard shortcut) for doing something unique. Anybody has any pointers regarding how I can do this? I would like to create a command which arranges selected text in certain order based on the characters found. I would also like create a keyboard shortcut for running the same command. 回答1: You have several options: develop a macro - examine Macros dropdown menu in Notepad++ use AutoHotKey which can send

In NotePad++ I'm trying to replace Jan\d+ with \r\nJan but it's not working the way I thought

丶灬走出姿态 提交于 2019-12-24 22:39:14
问题 10 Sts - $5,763Jan17 11 Lon -2 ft-1 Janet HallFeb2 9 Lon -10gd-4 F-nw7000lc Using Notepad++ in the above phrase I wanted to start a new line with the dates Jan17 and Feb2 but when I try Jan\d+ to \r\nJan I get Jan 11 Lon -2 ft-1 Janet Hall without the 17 part of the date. I can split the line again with Feb\d+ to \r\nFeb but again the 2 part of the date is missing in the newly created line. 回答1: You need to use a replacement group. Try Find what: Jan(\d+) Replace: \r\nJan\1 Using (\d+) will

How can I replace HTML code in Notepad++ using RegEx

一个人想着一个人 提交于 2019-12-24 19:43:01
问题 I have a lot of php pages. Every php page has inside a string like this: <FONT COLOR="#0000FF">Post ID: 16107</FONT> and I'd like to replace with: <A HREF="#16107">Post ID: 16107</A> but since every php page has a different Post ID and I'd like to match every occurrence of the string... I use as usually notepad2 witch supports regex and notepad++ too that supports regex as well. How can I replace all strings into all files into all dirs? Are about 350 files... 回答1: Replace: <FONT COLOR=".*?">

Notepad++ sorting/replacing

坚强是说给别人听的谎言 提交于 2019-12-24 19:16:40
问题 I have a list like this class TRYK_U_B_Sage_Tshirt class TRYK_U_B_BLK3CD class TRYK_U_B_BLK3CD_Tshirt class TRYK_U_B_BLK class TRYK_U_B_BLK_Tshirt class TRYK_U_B_BLKTAN class TRYK_U_B_BLKTAN_Tshirt class TRYK_U_B_ODTAN class TRYK_U_B_ODTAN_Tshirt class TRYK_U_B_BLK_OD class TRYK_U_B_BLK_OD_Tshirt class TRYK_U_B_C01_Tsirt class TRYK_U_B_C02_Tsirt class TRYK_U_B_OD_BLK class TRYK_U_B_OD_BLK_2 class TRYK_U_B_BLK_TAN_1 I want to add the following to the end of each line = { quality = 1; price = n

Regex for non-consecutive upper-case words PART DEUX

牧云@^-^@ 提交于 2019-12-24 19:16:04
问题 Very many thanks to all those who answered part 1 of this question see here The regex that worked for me was (?<![A-Z]\s)\b[A-Z]+\b(?!\s[A-Z]) The question now is how to do the inverse, i.e. given the string This is a different sentence WITH a few CAPITAL WORDS here AND THERE ACROSS multiple LINES. How to match " CAPITAL WORDS " and " AND THERE ACROSS " but not match " WITH " or " LINES " as they are isolated with lower case words either side, or they could be at the end of the start of a

RegEx to Find & Replace X text in between Y text and Z text

六月ゝ 毕业季﹏ 提交于 2019-12-24 19:15:50
问题 Fellow Forum Members, I'm using NotePad++ version 6.1.2 and I need to know if it is possible to make a General Expression perform a Find & Replace operation that accomplishes the following: It finds "X" text located in between "Y" and "Z" text and replaces it with nothing to effectively delete both the "X" text and also the "Y" and "Z" text as well. So for the sentence shown below the general expression needs to delete all text between the words "Begin" and "End" and also the words "Begin"

Merging two files in Notepad

独自空忆成欢 提交于 2019-12-24 17:46:07
问题 Hi i have two long files both 30k lines long. Is there any way of merging them like that in Notepad++ or using other software? 1st line from 1st file: 1st line from second file 回答1: Here is a possible solution using Excel: 1.) Open the first file with Excel (all the text should be in one column) 2.) Open the second file with Excel (all the text should be in one column) 3.) Go back to your first file and add a : to every row of the second column 4.) Copy the first column of the second file and

Notepad++ intellisense for user-defined functions

岁酱吖の 提交于 2019-12-24 10:59:35
问题 I understand that I can enable auto-completion in Notepad++ by going to " Settings -> Preferences -> Backup/Auto-completion ". For example with Python, the auto-completion only works for a set of pre-defined functions according to this link. Does anyone know how to make intellisense in Notepad++ for the functions and methods that I define? I'm no expert in this but I was thinking, surely there must be a way that Notepad++ can automatically detect function definition in the code, and add those