• code occurrences bookmark on scrolling bar

    4
    1 Votes
    4 Posts
    507 Views
    Alan KilbornA

    Note that although the OP in this thread has used the term “bookmark”, what is being discussed has nothing to to with Notepad++ bookmarks.

    What the OP means is more tied to the Notepad++ Smart Highlighting feature – the feature that, if you double-click a word, Notepad++ highlights in light-green coloring all of the matches in the text of the document.

    OP would like location in the doc of such matches to be highlighted as a small rectangle on the vertical scrollbar of the document.

    This is similar to other some existing requests, to do same type of thing when a true search is run, e.g., a Find Next or a Find All in Current Document.

  • Auto-delete closing brackets after deleting opening brackets.

    4
    0 Votes
    4 Posts
    1k Views
    Lycan ThropeL

    @terry-r ,
    I agree with your analogy, but as the OP has “shown” what he starts and wants to end with, Alan’s answer is germane to the question at hand, whilst your’s evokes a new creature feature. :-)

  • How to jump to previous active tab/file with PytonScript?

    9
    0 Votes
    9 Posts
    621 Views
    Alan KilbornA

    @andi-kiissel said in How to jump to previous active tab/file with PytonScript?:

    notepad.activateIndex(view, index)

    You need to put this together with notepad.getFiles() as it is an iterable that returns all of the necessary information. See the help for that function and you’ll see what I mean.

  • Replace a string with space

    4
    0 Votes
    4 Posts
    367 Views
    MachineThatGoesP1NGM

    Highlight and press space right ? is that not what your looking for?

  • Access Violation Specifically With 'Unwrap Text' within TextFX

    15
    0 Votes
    15 Posts
    1k Views
    PeterJonesP

    @alan-kilborn said in Access Violation Specifically With 'Unwrap Text' within TextFX:

    If you’d like to make one, I’m sure Peter Jones would be agreeable to creating an entry in the FAQ section here with such data.

    Created and initially populated

    (I had a spare hour before dinner today)

  • SOS HELP With 2nd Instance

    2
    0 Votes
    2 Posts
    293 Views
    PeterJonesP

    @niko-hamil ,

    Unfortunately, as you may have surmised from the resounding silence, there is not much you can do: if the periodic unsaved-file “backups” aren’t in their folder, then the crash caused Notepad++ to exit during the brief time that the files didn’t exist (or you didn’t have the unsaved-file backups option turned on)

    For the future, I recommend saving your files to known locations frequently, rather than leaving them opened-and-unsaved. For more, see our backup FAQ

  • Windows error or NP++ error (?)

    3
    0 Votes
    3 Posts
    371 Views
    Philippe 78P

    @alan-kilborn
    ok, thanks for that :)

    for the rest the program works, if I run it directly.

  • Missing lexers from Lexilla?

    11
    0 Votes
    11 Posts
    1k Views
    EkopalypseE

    @peterjones

    congrats, very nice. In the future it may be easier to create them with the newly added NPPM_CREATELEXER message.

  • Custom Styling

    5
    0 Votes
    5 Posts
    441 Views
    HeehonkH

    @alan-kilborn Perfect! Thanks so much.

  • Notepad++ 8.4.2 not recognizing file extension to define language

    24
    0 Votes
    24 Posts
    5k Views
    PeterJonesP

    @pallieguy said in Notepad++ 8.4.2 not recognizing file extension to define language:

    I wonder when I did that?

    Probably at one of the updates: there was a while when the installer would not notice an old installation if it wasn’t in c:\program files\notepad++, so even if you had installed to D:\notepad++\, the updater/installer would put the newer copy in c:\program files\notepad++ instead. IIRC, that has been fixed (I spent a couple minutes searching through the issues list, but wasn’t using a narrow enough set of search terms, so couldn’t find it buried in all the other results), so the next time you run the installer/updater for whatever version you end up keeping, it should hopefully default to the existing location.

  • Npp 8.4.2 unreponsive during edting

    13
    0 Votes
    13 Posts
    968 Views
    Mats KøberM

    @peterjones @Alan-Kilborn
    Just wanted to thank you guys for your feedback and advice the other day.

    After unistalling Notepad++ and deleting the folder in the programs file, as well as the one in #APPADATA#, I downloaded Notepad again, and installed xml-tools. I took the advise from @Snabel42 and unchecked some options in the plugin meny, and things seemed to work fine.

    But not for long … I belive there is some issues with the plugin, and that it affects the performance of Notepad++, making it unresponsive for shorter or longer periodes, both when using find/replace and when working more manually with the text, on the keyboard and/or with the courser.

    I’ll go to the plugin people on github and post an issue, but thanks again!

    Mats

  • 0 Votes
    3 Posts
    3k Views
    PeterJonesP

    @d-east ,

    Interesting, I did lots of experimenting after someone mentioned sessions to me, and found the following sequence:

    Only one instance open of Notepad++ Open change.log and license.txt (closing anything else first) File > Save Session… => main.sess File > Close All Settings > Preferences > Multi-Instance & Date > Multi-Instance = Open Session in new instance View > Document List turned on Open readme.txt Exit Notepad++ and restart At this point, the Document List is still visible File > Load Session… => pick main.sess It opens change.log and license.txt in a second Notepad++ instance, but this instance does not have Document List visible Exit the second instance of Notepad++ Exit the first instance of Notepad++ Restart Notepad++ to prove that Document List is still visible, which proves that the setting is still in effect

    This confirms your issue.

    I was going to point you to the FAQ for where to submit bug reports, but it turns out issue #9710 already shows a report of the same issue: “Document List panel is not shown when new instance is run”.

  • Notepad ++ 8.3.1 crashes and closes without warning

    6
    0 Votes
    6 Posts
    5k Views
    PeterJonesP

    @teo-deb ,

    Weird. You might want to grab a fresh copy of nppPluginList.dll from one of the portable downloads, and see if that fixes it. Because I know that nppPluginList does not crash v8.4.1 (or any other version of Notepad++ I’ve used since v7.6.3 stabilized on the modern nppPluginList)

  • Tabbing uses spaces with python

    4
    1 Votes
    4 Posts
    518 Views
    Frosty126F

    @alan-kilborn I have thought hard, I just hate indenting with spaces

  • periodic backup suddenly stopped working

    9
    0 Votes
    9 Posts
    1k Views
    Alan KilbornA

    @ken-detweiler said in periodic backup suddenly stopped working:

    “Enable session snapshot and periodic backup” absolutely does not work

    Great bug report.
    What version of Notepad++ are you referring to?
    I am certain there will be further questions for someone that says something “absolutely does not work” and those are 4 words of a 10-word description.

  • Find and Replace with increments

    5
    0 Votes
    5 Posts
    4k Views
    PeterJonesP

    @Sean-Moody ,

    I think this script will do what you want

    # encoding=utf-8 """https://community.notepad-plus-plus.org/topic/23149/find-and-replace-with-increments/4 This will start by matching text from `{` at the beginnig of a line to `}` or `},` at the beginning of a line Inside those groups, it will replace all "zone_#" or "zone #" with the value of the counter The counter will increment between `{...}` groups """ from Npp import * import re counter = 1 def replace_group(m): global counter out = re.sub(r'(?<=zone[ _])\d+', str(counter), m.group(0)) counter = counter + 1 return out console.clear() editor.beginUndoAction() editor.rereplace(r'(?s)^{\h*$.*?^},?\h*$', replace_group) editor.endUndoAction()

    The editor.rereplace line matches from { at the beginning of a line to } or }, at the beginning of a line. It then calls replace_group() on that match. The second function does the search-and-replace inside that group, looking for zone followed by either _ or space, followed by one or more digits, and replaces those digits with the current value of the counter. Every group of { to }, will increment the counter by one, so each chunk will get a unique number, but use the same number inside.

    Assumptions:

    That your example data isn’t missing leading spaces, because the regex assumes the { and }, are at the beginning of the line. That there aren’t any other { and }, at the beginning of lines embedded inside (so nicely indented and properly formulated json) That zone_1 and zone 1 within a single {…} block should all get the same counter value That you don’t have any zone_### inside your blocks that you don’t want changed (you didn’t show any, but…)
  • NOTEPAD++ 8.4, 8.4.1 and 8.4.2 crash

    4
    0 Votes
    4 Posts
    604 Views
    Stefano TonellaS

    @lycan-thrope said in NOTEPAD++ 8.4, 8.4.1 and 8.4.2 crash:

    eded knowledge y

    Thank you so much to both of you, indeed …
    I try to update them, and see what will happen.
    Stef

  • Windows 10 - NotePad++ v8.4.2 File Associations

    3
    0 Votes
    3 Posts
    307 Views
    Ed RedondoE

    Found out I had to run NotePad++ as administrator.
    Now all file associations work.

    My bad.

  • opening *.link files in notepad++

    3
    0 Votes
    3 Posts
    1k Views
    Alan KilbornA

    @adam-kalinowski

    .lnk files are binary files; Notepad++ is a text editor. So, even if you could open them in Notepad++, it wouldn’t be a great plan to edit them with it.

  • NULL where blanks should be - Turn this off

    7
    1 Votes
    7 Posts
    22k Views
    Leon SuL

    I have the same issue: why Notepad++ displays space character as NUL in a .txt file?
    The .txt file just displayed fine in any other text editors including UtraEdit.