notepad++

Writing UTF-8 without BOM

♀尐吖头ヾ 提交于 2020-01-03 11:46:19
问题 This code, OutputStream out = new FileOutputStream(new File("C:/file/test.txt")); out.write("A".getBytes()); And this, OutputStream out = new FileOutputStream(new File("C:/file/test.txt")); out.write("A".getBytes(StandardCharsets.UTF_8)); produce the same result(in my opinion), which is UTF-8 without BOM. However, Notepad++ is not showing any information about encoding . I'm expecting notepad++ to show here as Encode in UTF-8 without BOM , but no encoding is being selected in the "Encoding"

Regexp-replace: Multiple replacements within a match

倖福魔咒の 提交于 2020-01-03 11:25:09
问题 I'm converting our MVC3 project to use T4MVC. And I would like to replace java-script includes to work with T4MVC as well. So I need to replace "~/Scripts/DataTables/TableTools/TableTools.min.js" "~/Scripts/jquery-ui-1.8.24.min.js" Into Scripts.DataTables.TableTools.TableTools_min_js Scripts.jquery_ui_1_8_24_min_js I'm using Notepad++ as a regexp tool at the moment, and it is using POSIX regexps. I can find script name and replace it with these regexps: Find: \("~/Scripts/(.*)"\) Replace with

Highlight same words in text files in Eclipse

自作多情 提交于 2020-01-03 10:08:07
问题 Is there any option to highlight same words in text files in Eclipse. I know that eclipse is highlighting java code. But can we also enable somehow highlighting of same words in text files? The same function is in Notepad++. If we select some word it will highlight all the same words in the whole file. 回答1: If you enable "Mark Occurrences" (Alt + Shift + O), then all words that are the same as the one you have marked will be highlighted. 回答2: Well if you're searching in the currently open

Highlight same words in text files in Eclipse

主宰稳场 提交于 2020-01-03 10:08:06
问题 Is there any option to highlight same words in text files in Eclipse. I know that eclipse is highlighting java code. But can we also enable somehow highlighting of same words in text files? The same function is in Notepad++. If we select some word it will highlight all the same words in the whole file. 回答1: If you enable "Mark Occurrences" (Alt + Shift + O), then all words that are the same as the one you have marked will be highlighted. 回答2: Well if you're searching in the currently open

Notepad++ showing null values after crash

萝らか妹 提交于 2020-01-03 07:54:09
问题 I was editing a files in Notepad++ which I saved. Unfortunately I did not close Notepad++ application and PC was powered down due to out of battery. When the power was back on, I opened my file and found only 'nul' 'nul' 'nul' 'nul' 'nul' all over doc.This was a text file i was working on saving xml code in it. However my file is of size 300kb. And the size of 'nul's added is to the same size as the previous length of the document. I tried everything there is no cache copy of this saved also

Final Setup of gcc in Notepad++ [using nppexec]

ぃ、小莉子 提交于 2020-01-03 02:59:07
问题 I downloaded notepad++, and MinGW also I installed the nppexec plugin in order to use npp as fully functional IDE. the command i entered into the nppexec is npp_save cd $(FULL_CURRENT_PATH) gcc -o $(NAME_PART) $(FILE_NAME) $(CURRENT_DIRECTORY)\$(NAME_PART).exe now, every time I hit "f6", it lets me to set the command, every single time, how do i stop it? I want to do that if I press F6 the command automatically be executed second question. my code, 4 example is: printf("please enter num\n\n")

Remove more than one comma in between quotes in CSV file using Regex

我们两清 提交于 2020-01-02 08:56:56
问题 all! Have CSV files coming in with with text inside double quotes that contain one or more commas and I am wondering if there is a regex form for Notepad++ that would remove any number of commas inside a CSV file. For example I need to go from the this: text,text1,"interesting, text," To this: text,text1,"interesting text" There can be 1,2 or more commas inside the quotes. Anyone know a of a way to make this happen using regex form in Notepad++? Thanks in advance! 回答1: use this pattern ,(?!((

How to convert row to column in notepad++

牧云@^-^@ 提交于 2020-01-02 05:25:14
问题 How can I convert testext to t e s t e x t Please note there is no delimiter. Is there any way? 回答1: Go to Search → Find → Replace (Ctrl+F) and type following: Find: (.) Replace: $1\n SearchMode: Regular Expression Direction: Down Then place the caret at the beginning of the text and hit "Replace All". 来源: https://stackoverflow.com/questions/29259799/how-to-convert-row-to-column-in-notepad

notepad++ replace space and , with ,

这一生的挚爱 提交于 2020-01-01 09:27:32
问题 i am completely bad with replace option in notepad++ but i use it to edit my txt files and some of the books for my kindle in txt format. The problem is, in some lines i've got this problem: example Emily was a pretty girl , but noone realy liked her. I would be realy greatfull is someone can help me to replace this space-newline-come to come so the text will look like this Emily was a pretty girl, but noone realy liked her. Thank you! 回答1: Try to replace this regex: \s+, With this: , 回答2:

notepad++ check for duplicate lines complex

假如想象 提交于 2020-01-01 09:18:30
问题 Example 40000+lines with guids like this: GUID: 0981723409871243 Search across all GUID's for duplicates Example: GUID: 124432408213 GUID: 08917234071423 GUID: 0189742381 GUID: 08917234071423 GUID: 0817423423 GUID: 124432408213 I have TextFX and Compare but how would I find this part there is 2 124432408213 and 2 08917234071423 out of 40,000 lines with possible duplicates I cant easily detect them I need a way to find duplicates. It would be to be something like GUID: "Search text after guid"