• Bookmarks disappear upon save & reopening file

    3
    0 Votes
    3 Posts
    755 Views
    Alan KilbornA

    Bookmarks are saved as part of the “session”.
    If you close a file, it gets removed from the session, and when reopened, it looks like a new file to the session (thus no bookmarks).

    There’s a demo PythonScript HERE that could be “rounded out” to pseudo-provide a load/save extension for bookmarks.

    For me, and I presume most users, the capability in Notepad++ currently is enough.

  • Replace before

    5
    0 Votes
    5 Posts
    1k Views
    PESTICIDerP

    @peterjones First of all, I’m sorry for my incompetence to provide neccessary data - I mean it. I wrote my response in a hurry and wrongly supposed that you didn’t catch the link to my previous post (sorry for that also) and thought that info in that post is enough.
    None of this is your problem and I donť want to make any excuses for this behaivour…just for clarification.

    And BIG THANKS that you spent your time with replying despite everything above! Your guess was correct and provided solution does exactly what I need.

    So sorry again and thank you also. Next time, if I’ll need some advice in the future, I’ll try to specify my needs better and provide test data in the first place.

  • "Compare" adds an empty line

    3
    0 Votes
    3 Posts
    657 Views
    PeterJonesP

    @mrde50ae said in "Compare" adds an empty line:

    Compare plugin 1.5.6.2,

    I’m not even sure where you got that version.
    The current repo, https://github.com/pnedev/compare-plugin/releases, shows v2.0.0 and v2.0.1.

    The older repo, under the previous developer, https://github.com/jsleroy/compare-plugin/tags, has v1.5.4, v1.5.5, and v2.0.0

    Please note : Notepad++ v7.7 from 2019 included a major upgrade to “Scintilla”, the underlying code for the text editor panes correction: to the API that plugins use to communicate with the Notepad++ application; that update meant that some plugins had to update their code to be compatible with those changes. “Compare v2.0.0 for Notepad++ 7.7” was the release of the plugin for Notepad++ v7.7 and newer; no version of Compare plugin released before that special v2.0.0-release are expected to work with Notepad++ v7.7 or newer.

    So if any version of Compare Plugin prior to that special v2.0.0 work at all with your Notepad++ 7.9.1, it’s by chance, not by design. And really, you should be using the newest v2.0.1 for the best compatibility with Notepad++.

  • again another wildcard find/replace

    2
    0 Votes
    2 Posts
    211 Views
    Alan KilbornA

    @sulton-systems

    find: craft_time="\d+"
    repl: craft_time="1"
    mode: regular expression

  • 8.1.9.2 release how did I break it?

    5
    0 Votes
    5 Posts
    578 Views
    Laura StraubL

    @peterjones
    Ahhh… Gotcha! Thank you for the clarification. Makes sense.

  • not sure if this can be done...

    5
    0 Votes
    5 Posts
    385 Views
    PeterJonesP

    @qishq-42 said in not sure if this can be done...:

    im looking for a way to make this simpler is that possible?

    Yes, it’s called programming.

    Regex doesn’t have the concept of counting that your desired algorithm requires. You either have to set up the N! conditionals in the regex, or you have to use a tool – like a programming language – that handles counting and other such conditional tasks much more simply than can be done in regular expressions.

  • How to find numbers in multiline in Notepad++

    21
    0 Votes
    21 Posts
    10k Views
    Alan KilbornA

    So this is a good discussion thread, but the choice to use literal 1, 2, 3 in the examples IMO wasn’t the best for the utmost clarity. :-)

  • Converting to entiteties

    4
    0 Votes
    4 Posts
    1k Views
    Leif JohansenL

    @leif-johansen
    I think the " HTML Tag plugin" solve my problem

  • Key words In Language

    8
    0 Votes
    8 Posts
    2k Views
    Lycan ThropeL

    @dennis-bareis
    Not that I know of, but then again, I’m new to this aspect of UDL’ing also, however, the one thing that I did learn from reading that document about the UDL, is that you need to play with it to make sure your UDL is functioning properly.

    For instance, if you have nested parenthesis, you need to set up the nesting properly, or it will continue highlighting if say, you had a nested parenthesis starting inside another parenthesis and you didn’t have it set to next…and may continue highlighting or not, until it hit the second one. That seems to be part of the matching brace aspect of NPP, but if the kewords, parens, braces…etc aren’t properly set up to nest properly, it will continue highlighting text you think shouldn’t be.

    When you get a chance to get back to it, you may see what I’m saying. :-)

    Good Luck.

    Lee

  • Save As Icon

    3
    0 Votes
    3 Posts
    425 Views
    Cyndi Roether 0C

    @neil-schipper Thank you, I’ll try it

  • Extra field/menu after update

    4
    0 Votes
    4 Posts
    475 Views
    chk1xnC

    Thanks @peterjones! That explains why I’m only seeing this on one of my laptops … the one where I’m also running Slack…

  • How to find and select all words between select words?

    12
    0 Votes
    12 Posts
    30k Views
    Alan KilbornA

    @marcin-kucharski

    Don’t ask the same question in 2 threads; you asked the same question HERE

  • Search results are undocked

    2
    0 Votes
    2 Posts
    256 Views
    PeterJonesP

    @kkg-t ,

    That looks like an artifact of a windows redraw not working right.

    You might want to try rebooting. If that doesn’t make the results appear inside their window, you might try undocking the actual Search Results window (below), and re-docking it. If that doesn’t work right, you might try upgrading to a newer Notepad++ (v8.1.9.3 is the most recent version; v8.1.5 was the last before a series of rapid-fire regression-fix versions)

  • How to set custom keys for html tags like <p>

    7
    0 Votes
    7 Posts
    1k Views
    Crisis DigitalC

    @peterjones thanx a lot. It works perfectly … Really appreciate it

  • Can I install Notepad++ For my User Account Only?

    3
    0 Votes
    3 Posts
    6k Views
    Digital StreamingD

    @terry-r Thank you!

  • Does Autocompletion require a formal lexer?

    20
    0 Votes
    20 Posts
    997 Views
    Lycan ThropeL

    @guy038

    Argh… Thanks.

    I had made my self some skeletons to copy/paste to test some of the functions and parameters that I thought might give me problems before trying to do the file enmasse with the wonderfully written hints about how to mass format a keyword list…and apparently my hand typed abbreviations deviated from the proper abbreviations. :-(

    Thanks… in my defense, it was another all-nighter and blurry eyes were present. :-)

    Lee

  • functionList for ExtJS framework (Sencha)

    12
    0 Votes
    12 Posts
    1k Views
    PeterJonesP

    @webpuper said in functionList for ExtJS framework (Sencha):

    And if inside the class there are also “});” ?

    Then it’s going to become a super-complicated regular expression that I don’t have the expertise to develop. Maybe one of the regex gurus will be able to step in… it will work better if you show a valid class that contains that sequence inside.

    You might try searching the forum for @guy038’s regex examples for “balanced” parentheses or brackets. That might give you some idea of where to start.

  • Keywords List Nesting disabled

    2
    0 Votes
    2 Posts
    451 Views
    PeterJonesP

    @giorgio-setti said in Keywords List Nesting disabled:

    Hi, do you know why the “Keywords List - Nesting menu” is disabled?

    How would you nest one keyword inside another? Let’s say I have the keywords word and float in Keyword 1 and the words and and or and not in Keyword 2. If you were able to tell the UDL engine that you wanted to be able to nest Keyword 1 inside Keyword 2, what would that even mean? awordnd ? ofloatr? Nesting keywords inside each other is nonsensical, and thus the UDL engine disables that portion of the dialog box. (They leave that portion of the dialog box because it was easier to program it to just disable that section than to hide that section, or use a different dialog box template for the two different Styler Dialog conditions.)

    Other of the Styler Dialogs, like Operators & Delimiters, have the Nesting checkboxes available, because the delimiters have both a start and an end, so it makes logical sense to be able to allow certain keywords to occur between certain delimiters – for example, if you used { and } as an open/close pair, it makes sense to be able to nest keywords like if and abs() inside them; and if you use "/" as an open/close pair, it makes sense to not allow keywords inside the quoted strings.

    f642bcf9-23f3-4e7e-bb9f-bdc6e97e4e43-image.png

  • How to group tabs?

    11
    2 Votes
    11 Posts
    8k Views
    artie-finkelsteinA

    @sean-sean
    I don’t often use it these days, but I did setup a vertical pseudo-tab grouping system with the Favorites feature of the Explorer plugin. Note: I found this version to be more stable than the 1.9.4 offered in Plugins Admin (which thinks that’s the most recent of the three versions I’ve found).

    I stopped using it because I found the effort to create groups was too high for my frequent updates of “tab layout”. But it’s great for static projects or groups of common/support files.

  • Word wrap

    3
    0 Votes
    3 Posts
    816 Views
    artie-finkelsteinA

    @barry-grossman
    The menu item Edit > Line Operations > Split Lines may do what you want if you first set the wrap column using the Preferences > Margins/Border/Edge > Vertical Edge Settings. See the online user manual for more details.