notepad++

The encoding that Notepad++ just calls “ANSI”, does anyone know what to call it for Ruby?

邮差的信 提交于 2019-12-18 03:04:28
问题 I have a bunch of .txt's that Notepad++ says (in its drop-down "Encoding" menu) are "ANSI". They have German characters in them, [äöüß], which display fine in Notepad++. But they don't show up right in irb when I File.read 'this is a German text example.txt' them. So does anyone know what argument I should give Encoding.default_external= ? (I'm assuming that'd be the solution, right?) When 'utf-8' or 'cp850' , it reads the "ANSI" file with "äöüß" in it as "\xE4\xF6\xFC\xDF"... (Please don't

Notepad++ Replace regex match for same text plus appending character

帅比萌擦擦* 提交于 2019-12-17 23:05:34
问题 I have a file with text and numbers with a length of 5 (i.e. 12000 , 11153 , etc.). I want to append all of these numbers with a 0 . So 11153 becomes 111530 . Is this possible in Notepad++? I know I can find all numbers with the following regex: [0-9]{5} , but how can I replace these with the same number, plus an appending 0 ? In the replacement box I tried the following things: [0-9]{5}0 - Which it took literally, so 11153 was replaced with [0-9]{5}0 \10 - I read somewhere that \1 would take

Remove everything except a certain pattern

十年热恋 提交于 2019-12-17 22:49:59
问题 I have a log file with lots of strings. I would like to remove everything from this file (find & replace) except any string that starts with: phone= and ended with Digits=1 for example: phone=97212345678&step=1&digits=1 To find that string I am using (phone=.*digits=1) and it works! but I did not manage to find the regex the select everything but this string and to clear them all. sample file. 回答1: In order to remove anything but a specific text, you need to use .*(text_you_need_to_keep).*

解决TextFX不能找到libTidy.dll文件

99封情书 提交于 2019-12-17 20:01:45
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 工作中需要用代码创建一个 XML 文件,创建完发现 XML 内容都处在同一行,导致非常不容易查看清楚 XML 代码。于是习惯性地用 Notepad++ 查看,想用它来对XML代码格式化一下。 于是找到了 TextFX characters这个插件,可是该插件安装后不能正常使用,点击重载libTidy.dll这个文件,系统提示缺少libTidy.dll这个文件。 既然是缺少文件那好办,下载一个就行了。下载 TextFX _Config.zip后解压,将tidy文件夹放入Notepad++安装目录下的\plugins\Config。(如我的安装目录是D:\Program Files\Notepad++,所以放在D:\Program Files\Notepad++\plugins\Config) 放进去之后再重载一下libTidy.dll,即图中的Reload libTidy.dll或者直接重启Notepad++,此时已可正常使用。 格式化XML代码步骤:TextFX->TextFX HTML Tidy->Tidy:Reindent XML 下载地址: TextFX_Config 来源: oschina 链接: https://my.oschina.net/u/1188877/blog/178421

Notepad++ multiline regex

ぐ巨炮叔叔 提交于 2019-12-17 19:57:42
问题 I've got hundreds of files of the type linked here: http://pastebin.com/fGgLfZf8 But I want to remove all the comments that occupies more than one line eg. <!--- MPU ---> should be left untouched, while <!-- ************ blablabla ************ --> should be removed. I know the Notepad++ feature to lookup through more than a document with regexp and I'm tryin to use it but I have some difficulty. For a start I'm trying this regexp: <\!\-\-(.*?)\-\-> which tested in here: http://www.regextester

Can we decode URL with Notepad++?

你。 提交于 2019-12-17 17:59:48
问题 I am currently using this site http://ostermiller.org/calc/encode.html to decode code like. http%3A%2F%2Fh.mysite.com%2F007%2FYRM-CD-9 to http://h.mysite.com/007/YRM-CD-9 by using URL Decode on that decoding site. I was wondering if this can be done via Notepad++. 回答1: In Notepad++ under Plugins => MIME Tools you will find URL Encode and URL Decode . 回答2: Thanks to PiLHA. Download the jN plugin. Place files from Zip to Plugin folder of Notepad++ in C:\Programs Files\Notepad++\plugins . Save

Find multiple lines in Notepad++

浪尽此生 提交于 2019-12-17 17:44:23
问题 Is there a way to find a paragraph? For instance I want to search for this code: <?php $radio_buttons++; } ?> But when I try to copy that into the search box it only copies the first line, <?php . It seems like there is definitely a way to do this, but I just can't find it. Maybe it is an addon? 回答1: I wrote a multiline search and replace add on for Notepad++, check it out here: http://www.phdesign.com.au/programming/toolbucket-multi-line-search-plugin-for-notepad/ (source: phdesign.com.au)

使用已编译PostgreSQL二进制包编译mysql_fdw

你说的曾经没有我的故事 提交于 2019-12-17 17:39:47
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 上周写的帖子: 为PostgreSQL编译Windows下的mysql_fdw 还是有人不会,所以再写一篇用二进制包编译。 1、下载 PostgreSQL 二进制包: Download PostgreSQL Binaries ,点击 下载。 这是EnterpriseDB公司下载地址,不用担心我编译的版本有木马。 (真有人不放心,出门在外有戒心不是坏事,不用就是,EDB的总能放心用吧。) 文件名是postgresql-11.4-2-windows-x64-binaries.zip,包看起来很大是因为包含pgAdmin4以及Python环境。 解压之后我把它们放在目录:C:\postgresql-11.4-2-bin 不是好习惯,主要是为了省事,而且我的虚拟机只有一个C盘。 2、克隆 mysql_fdw 源代码 这个不需要再细说,假设放在 C:\mysql_fdw 目录。 3、安装 MySQL 开发用客户端 跟以前操作一样,假设放在 C:\MySQL\6.1 目录。 4、下载 mysql_fdw.sln、mysql_fdw.vcxproj、MYSQL_FDW.def 这三个文件放到 C:\mysql_fdw 下。 如果是不熟悉VC++,建议跟上边使用相同的目录名,不用修改。 用 百度云盘 分享,过段时间可能会失效

Notepad++ add number in each line

僤鯓⒐⒋嵵緔 提交于 2019-12-17 17:39:17
问题 I have the following data in a text file p=1 p=1 p=1 p=1 etc. I open that file in Notepad++. How would I change it to p=1 p=2 p=3 p=4 etc. 回答1: You can use the "Column Editor" mode. First, select the column you want by holding Alt and dragging down the column. Then go to "Edit->Column Editor", you will get a box that looks like this: Choose the "Number to Insert" button, then choose the starting value and the increment. It will replace the column with the values you want. 来源: https:/

Notepad++ add number in each line

折月煮酒 提交于 2019-12-17 17:39:03
问题 I have the following data in a text file p=1 p=1 p=1 p=1 etc. I open that file in Notepad++. How would I change it to p=1 p=2 p=3 p=4 etc. 回答1: You can use the "Column Editor" mode. First, select the column you want by holding Alt and dragging down the column. Then go to "Edit->Column Editor", you will get a box that looks like this: Choose the "Number to Insert" button, then choose the starting value and the increment. It will replace the column with the values you want. 来源: https:/