@Robert-Or-Janet-Diebel said in RegEx to look for XX in a list of lines. if found print the line before, and the line with XX:
When I post, the number of back-slashes I enter is cut in half
Yep, use this to avoid that situation:
I am looking forward to this feature being added to Notepad++.
see FAQ: Feature Request for how to make feature requests (hint, this forum is not the place)
if there is anyway to reopen a closed session with same state and order of files, I would like to follow if it works.
If you manually save the session, then you can later load that specific session at any time you want.
@Alan-Kilborn said in changing new edit line color:
@William-L-Wolcott said in changing new edit line color:
I do not find ChangedLines in PluginsAdmin
Michael can answer that one. Michael? ;)
Changed Lines is ported from Location Navigate because I could not get Location Navigate to not crash on me in 32-bit version and there was no 64-bit version. That has been fixed now, but I prefer my plugin so use that. If you have Location Navigate working to you liking now, stick with it!
@Randall-Spychalla said in Notepad++ does not remember last used directory:
It makes me wonder if the programmers have that much experience. As a professional Windows programmer…
So the primary developer of Notepad++ has been programming on it basically non-stop since, what 2003 or so? Does 18 years equate to “not much experience”?
I know that if I were a “Windows programmer” for that long, I’d probably be discouraged (Windows programming mostly sucks, IMO, and that means comparatively to programming for other OSes).
Anyway, probably that long ago, the concept of a user folder was in its infancy. And…it is a non-issue, because the default setting for Notepad++ is to follow the last used folder, despite the other postings in this thread.
So again, I repeat: Non-issue, nothing’s wrong.
A macro? No, macros can only do internal notepad++ / editor commands (either accessing the text of the active file, or doing notepad++ menu actions)
If you are willing to do something fancier, there are scripting plugins (like PythonScript and LuaScript) which allow you to write arbitrary scripts in your favorite interpreted language with extra commands that have access to the text in open files and the notepad++ gui/menus.
To everyone replying to this topic
Just saying “it happens to me, too” doesn’t help. The bare minimum useful response would be to show your ?-menu’s Debug Info.
We know about the problem; the developers know about the problem. There is a fix that should be in the next version that has been confirmed on Vista and Win7; but no one who has seen the problem on Win 10 has been willing to go through the steps of proving that the fixed version will work. It’s really simple to do. The best way you can help is by following the instructions linked above, and letting us know whether the fixed “development version” actually fixes it for you on your version and configuration of Windows.
@PeterJones said in Dark mode: please darken the bright white line after folded code.:
a new Language:Global Styles > Style:Fold Horizontal style whose foreground color sets the color of that line
Thanks @PeterJones !
Here is my new “feature request” issue:
@François-SKODA said in menu item "copy" leads to a reduced Notepad++ window.:
It’s a long time I hope this little & spectacular bug to be fixed.
It’s probably hard to fix a bug that likely happens to exactly one person (you) and that person hasn’t reported it to the official issues list. Or maybe you have?
@waynecnr said in Default Langauage for Files with No Extension:
How can I set the default Language (XML, or JSON) for files with no extension?
I don’t think you can, at least not with the configuration options available to you. In the case of XML or JSON, when you go to settings, style configurator, then select xml or json in the language box, you can ONLY add additional file extensions. There isn’t an option to remove the default ones, which is essentially what you want.
I ran a small test and got these results:
You can run Notepad++ from the commandline with additional arguments. So
notepad++ -lxml d:\temp\this-is-an-xml-file-with-no-ext
would load the named XML file (which has no extension) and then command Notepad++ to colourise it using the XML lexer.
If the XML file had (on it’s first line) some code such as
<?xml version="1.0" encoding="UTF-8" ?> (taken from the config.xml file, part of Notepad++ installation)
then Notepad++ would automatically use the XML lexer as it does attempt to interpret the language to use by the content of the file. I presume a JSON file would also need to have some unique (to JSON) coding at/near the start so it could also be automatically recognised.
@RunninglVlan said in Updater enhancement:
For example, someone would like to install only major version updates or only minor version updates, ignoring patch versions.
Which might be meaningful for some applications. But Notepad++ isn’t very regular about such things. Usually vN.0 has some spiffy new feature… but sometimes, it’s just because the v(N-1).9 was the last version released. Sometimes, vN.M.(x+1) is just a bugfix from vN.M.x, but sometimes it has fancy new features that make it significantly better – and, when it is the bugfix, sometimes the bug that it fixes is really important to fix, and you wouldn’t want to ever run the unfixed version. Often, vN.0 or vN.M.0 have more bugs than vN.1 or vN.M.1, just because the new feature hadn’t been put completely through its paces yet.
To be clear: you’re free to use whatever decision criteria you want, and I’m not trying to say that’s not allowed. But looking only at version number on Notepad++ will tell you nothing about whether it’s just a bugfix or a new feature revision, or give any indication as to how stable any given feature is, or otherwise assuming that it carries more information than a number to distinguish it from the earlier number is giving more weight to the pieces of the number than are really there.
But, as @Ekopalypse linked, we cannot change the code base from this Community forum.
If it’s just to run a Python script, not even the -i switch is needed. Just ...python.exe "$(FULL_CURRENT_PATH)".
This has the advantage that you don’t have to exit the shell.
The script is executed and the result is displayed in NppExec’s console window.
@jim-murray said in PHP editing help:
I also use visual studio and i suggest that you copy some of their helps …
You might not be aware, but Microsoft, who publishes Visual Studio, has a huge budget and a team of full-time software developers devoted to making their code work and developing new features. Notepad++ has one primary developer who runs Notepad++ in his spare time, and a few volunteers who regularly contribute to the code base when they have time. All in their spare time, unpaid.
when i hover on a function or variable ask if i want to see all references
or goto its definition depending on the context if i hover on a reference
ask if i want to go to its definition. remember the way back after i move
There are plugins which offer some of what you’re looking for – for example, TagLEET allows finding the definition of a function (and I think variable declarations) and listing other instances, even if it’s in another file… though I don’t know the “remember the way back” is possible with that plugin.
The developer and his team of volunteers have decided not to implement code that would be better implemented in a plugin, or already are fully or partially in a plugin, so that won’t be added to the main application.
blink the matching brace when i hover on its partner.
color emphasis is not enough for these old eyes.
If the default color choices aren’t sufficient for you, you are free to use Settings > Style Configurator > Global Styles > Brace Highlight Style to define a color/style that does work for you. Or you could use Search > Goto Matching Brace (defaults to Ctrl+B keyboard shortcut) to move the cursor between opening and closing braces. And in languages that use braces for folding, you can look at the folding lines. There are at least three separate indicators for matching brace, so I doubt they will add a fourth to blink the match (plus, blinking text is evil; just look at any 90s-era website).
BTW: in case you didn’t realize: this is just the Community Forum – that is, we are all fellow users of Notepad++. Putting a post here does not mean that the developers have seen your request. If you look through the Forum, you will find a FAQ which tells you more about this.
Thank you for looking into it and Sorry for my late reply.
I use a modified default mode with black background.
The problem is that hovering makes the function darkblue on black + underlined, which:
gives the impression that you can click on it once to go to the function, (default behaviour in all other applications) but that doesn’t work.
makes the function that you are looking at less visible than others.
Thanks for the recent dark mode update! The boarders are no longer searing into my eyes and to decorator boarder is also dark. Except for the ctrl-tab file list which is still quite bright (not as bright as starting up npp), I’m very happy with the update. I use a deep black theme and the dark mode is so great with the deep black theme! I know this is free software so don’t expect every wishes granted. I donated to it to make the authors feel appreciated for their good work. Anyone who uses the software regularly and has a few dollars to spare should do that. Separately, this ctrl-tab continues to be an issue. I hope with the arrival of dark mode, the ctrl-tab rendering could depend on whether we’re in dark mode.