notepad++

Notepad++ UDL: Problems with folding start and end

人盡茶涼 提交于 2020-01-05 04:43:54
问题 I want to fold sections of the following Z80 assembly excerpt correctly, but I can't get it done: .ORG $9D93 .DB t2ByteTok, tAsmCmp Increase: LD A, B CP 255 JR Z, KeyLoop INC B JR Display Decrease: LD A, B CP 0 JR Z, KeyLoop DEC B JR Display .END In this excerpt, three folding regions should be created: #1 going from .ORG $9D93 to .END #2 going from "Increase:" to the line before "Decrease:" #3 going from "Decrease:" to the line before ".END" Two problems with that: I was able to create the

Notepad++ UDL: Problems with folding start and end

徘徊边缘 提交于 2020-01-05 04:43:49
问题 I want to fold sections of the following Z80 assembly excerpt correctly, but I can't get it done: .ORG $9D93 .DB t2ByteTok, tAsmCmp Increase: LD A, B CP 255 JR Z, KeyLoop INC B JR Display Decrease: LD A, B CP 0 JR Z, KeyLoop DEC B JR Display .END In this excerpt, three folding regions should be created: #1 going from .ORG $9D93 to .END #2 going from "Increase:" to the line before "Decrease:" #3 going from "Decrease:" to the line before ".END" Two problems with that: I was able to create the

Regex - Skip first 12 characters

大城市里の小女人 提交于 2020-01-05 02:58:13
问题 How can I use regex to skip the lines with the text added or deleted and match text after the first 12 characters? For example, 1234567890ABTest ABC4567890ABTestadded ABC4567890ABTest2 Line 1 would match Test. Line 2 would not match. Line 3 would match Test2. So far, I have .*(?<!added)(?<!deleted)$ 回答1: ^.{12}\KTest(?!(?:added|deleted)\b).*$ You can use \K to skip first 12 characters.See demo. https://regex101.com/r/fM9lY3/25 回答2: How about this? ^.{12}(.*)(?<!added)(?<!deleted)$ pattern{X}

Notepad++ Regex + python script (addition in the replace)

我与影子孤独终老i 提交于 2020-01-04 05:43:18
问题 I got quite the same problem of this guy "Notepad++ Regular Expression add up numbers" i don't know python (shame on me maybe). I got an array : $_ArrFinal = array("A"=>1, "B" =>2, "C" => 3, "D" => 4, "E"=>4, "F" => "5",...) I have simplify it but i need to increment all the value above 4 in this array by 1. So i did this like in the answer, but sadly it doesn't seems to work : def calculate(match): return '=>%s)' %(match.group(1)+1) editor.rereplace('=>([5-9]|[1-9]\d{1,})', calculate) Any

notepad ++ shows ucs-2LE while ubuntu FILE [file] shows UTF-16LE, I am confused?

☆樱花仙子☆ 提交于 2020-01-04 04:08:10
问题 I am trying to convert the file generated from a mssql to utf-8. When I open the output of he mssql using notepad++ in windows server 2003 recognises the file as UCS-2LE I copied the file to a Ubuntu machine, using file [file] it shows that the encoding is UTF-16LE . Really confused, there must be some difference in encoding, as the names are different. But why do I see this in the same file. Its a .csv file generated from the mssql query. 回答1: For the most part, UTF-16 and UCS-2 are the same

Where can I find a jQuery syntax highlighting plugin for Notepad++? [closed]

人盡茶涼 提交于 2020-01-04 02:43:13
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 9 years ago . jQuery has a syntax all its own * , and when writing ridiculously lengthy expressions I often yearn for some sort of highlighting. Is there a way to achieve this in Notepad++? * except for the bits that are

Remove specific duplicate lines without sorting

安稳与你 提交于 2020-01-03 17:16:24
问题 I have a text file with around 5000 lines, i have to delete specific duplicate lines(which doesnt contain the word "Niveau" or "stime") but keeping the first occurrence and without sorting, the text pattern look like this: vide vide Time: stime 3:30 PM vide vide NN NN NP stime LS NP NN NN ----------Niveau 1-------------- Time: | 0 | 263.0 | 266.0 | 0,0113 NP | 0 | 0.0 | 24885.0 | 1 3:30 | -0 | 104.0 | 120.0 | 0,1333 LS | -0 | 0.0 | 13134.0 | 1 PM | -1 | 134.0 | 238.0 | 0,437 NP | -1 | 0.0 |

Why doesn't this regex work in Notepad++ (Windows)?

て烟熏妆下的殇ゞ 提交于 2020-01-03 17:09:10
问题 The following regex works when I test it here: https://regex101.com/r/oxsNRW/2 (toString\(\)[\s\S]+\))(\s*\R\s*?}) However, when I put the same input and regex into Notepad++ on Windows 10 it says the regex is invalid. Why? 回答1: Notepad++ regex flavor is Boost, and its regex syntax is a bit different from PCRE. In your case, escape the } : (toString\(\)[\s\S]+\))(\s*\R\s*\}) ^^ 来源: https://stackoverflow.com/questions/41945175/why-doesnt-this-regex-work-in-notepad-windows

Why doesn't this regex work in Notepad++ (Windows)?

空扰寡人 提交于 2020-01-03 17:09:04
问题 The following regex works when I test it here: https://regex101.com/r/oxsNRW/2 (toString\(\)[\s\S]+\))(\s*\R\s*?}) However, when I put the same input and regex into Notepad++ on Windows 10 it says the regex is invalid. Why? 回答1: Notepad++ regex flavor is Boost, and its regex syntax is a bit different from PCRE. In your case, escape the } : (toString\(\)[\s\S]+\))(\s*\R\s*\}) ^^ 来源: https://stackoverflow.com/questions/41945175/why-doesnt-this-regex-work-in-notepad-windows

How to match c-style block comments in Notepad++ with a regex?

只愿长相守 提交于 2020-01-03 13:33:47
问题 With the intent to match multiline comments, I found the following regex: (?:/\*(?:(?:[^*]|\*(?!/))*)\*/) It is described here. It isn't perfect (it matches comments inside strings), but it works well enough for my purpose. However, it does not work in Notepad++. I tried escaping different things, but with no better results. Does anyone know how to make this regex work in Notepad++? 回答1: Notepadd++ uses scintilla's regular expression engine (according to its online help). This page says that