notepad++

Catching a PHP variable using double click in Notepad ++

戏子无情 提交于 2019-12-21 12:08:26
问题 I just switched from eclipse to Notepad++ and I modified some behaviour of notepad, but there is still one not resolved : When I double-click on a variable I expect my editor to catch the entire variable. Notepad excludes automatically the php prefix "$", that is not efficient. Is there a way I can change the behaviour ? Thank you 回答1: I understand your problem, but unfortunately it is not possible with Notepad++ to setup this behaviour. What you can do is click between the dollar sign and

Notepad++ Add selection between matching braces feature?

亡梦爱人 提交于 2019-12-21 07:36:55
问题 Notepad++ just released a new update, v6.4.4: One of the new features listed is: 10. Add selection between matching braces feature. What does that mean? Sounds useful if I can figure it out. 回答1: I think following is this feature Select a curly brace { press Ctrl + Alt + B to highlight the section. It can be accessed through Search -> "Select All between Matching Braces" 来源: https://stackoverflow.com/questions/18705148/notepad-add-selection-between-matching-braces-feature

PHP function descriptions as I type in Notepad++

寵の児 提交于 2019-12-21 07:12:20
问题 Is there a plugin for Notepad++ which would allow me to see functions including parameters/returns as I type? For example, if i type "implode(", I'd see: string implode ( string $glue , array $pieces ) Update: Wow, I'm surprised so many other people were as interested in this as me. The take-home lesson for me was to always explore all the Settings options! 回答1: You don't need a plugin! 5.0 and above have this already. Go to Settings -> Preferences , then go to the Backup/Auto-Completion tab,

Notepad ++ How to remove all characters after a string

强颜欢笑 提交于 2019-12-21 05:49:28
问题 I'm using regular expression in Notepad++, trying to delete everything after a particular word. For example here is my text: Bull01 blah blah Bull02 Blah blah Bull03 Blah Bull04 Blah Bull05 Blah ** Bull300 Blah blah blah etc.. Im trying to delete everything after the word Bull , so that my results ends up being just Bull . I thought it was as simple as searching for Bull.* but that deletes the whole row, including the word Bull . 回答1: Use a look behind: Search: (?<=Bull).* Replace: <blank>

how to automate a series of search and replace operation in Notepad++

喜欢而已 提交于 2019-12-21 05:14:04
问题 I am having a file in which there are number of lines which i have to remove. These lines can be distinguished using regular expression and thus utilizing series of search and replace i am able to remove them. Now i have to repeat the same task a number of times. So i am looking for a way that i don't need to go through this series of replace again & again. Is there any way to batch/script these series of replace into a single command. I tried doing so by recording a macro, but does not seems

How to set the first letter in a line to caps in notepad++

自作多情 提交于 2019-12-21 04:54:12
问题 I want to set the first letter in each line to caps in notepad++..how do I do this? 回答1: You could select the block consisting of only the first column: hold Alt while selecting with the mouse. Then press Ctrl-Shift-U to convert the selected letters to uppercase. This kind of selection is called rectangular selection in the Notepad++ help. You can also define the selection with the keyboard by pressing Alt and Shift and using the cursor keys. 来源: https://stackoverflow.com/questions/9869590

Using other editor with TortoiseHg

感情迁移 提交于 2019-12-20 12:32:08
问题 I'm trying to use other editor with TortoiseHG, instead of (Windows) Notepad. I have tried the solutions mentioned here: Mercurial and Notepad++ Integration and here: https://bitbucket.org/tortoisehg/thg/wiki/OpenAtLine But no results. When I right-click a file and choose "Edit Local" no file is opened at all, except when I don't set any specific editor (then file is opened in Notepad). I have tried different editors, like Notepad++ and Sublime Text 2, and no result. Also, I tried to change

How to delete all after last slash?

我是研究僧i 提交于 2019-12-20 11:06:32
问题 How to delete all after last /. I have a file with urls. http://www.enworld.org/forum/member.php?1-Morrus&language=uk http://weld.in.ua/forum/member.php/1-%D0%90%D0%B4%D0%BC%D0%B8%D0%BD?langid=5 Need a solution for notepad++ 回答1: Follow these steps: Open your file in Notepad++ . Hit Ctrl + F . To the Find what textbox, add Regular expression : [^/]+$ Keep the Replace with textbox empty(In screenshot that is my mouse cursor). Be sure to check Regular Expression radio button at the bottom Your

Copy only the search expression results from a textfile in notepad++

自闭症网瘾萝莉.ら 提交于 2019-12-20 10:39:10
问题 I have a source code and want simply to copy the strings which I find with an regular expression. Just like: asdladhsfhjk-hello1-asdlkajhsd asdsa-hello3-asdhjkl asdölkj-hello5- that I simply want to copy the -helloX- from the text. And not the line.. How do I do it? 回答1: [ update : see extended instructions below if you are working with a file that has 1. lines with and lines without the pattern and 2. you want to erase all lines without the pattern and 3. only preserve the pattern from the

How do you keep Notepad++ from opening unsaved documents from the last session?

梦想与她 提交于 2019-12-20 10:26:10
问题 Sometime around May 2014 Notepad++ had an update where it started saving unsaved documents without being told to. When closing Notepad++ it no longer asks whether or not you want to save or discard unsaved documents and instead just closes. When Notepad++ is opened back up the unsaved documents are there still, as before, listed as New 1; New 2; New 3; etc. It looks like it is automatically saving them somewhere when it gets closed. How do you turn this off, so that unsaved documents must