• not sure if this can be done...

    5
    0 Votes
    5 Posts
    393 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
    11k 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
    427 Views
    Cyndi Roether 0C

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

  • Extra field/menu after update

    4
    0 Votes
    4 Posts
    478 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
    258 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
    1k 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
    456 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
    839 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.

  • Recent/Pinned documents missing from the right-click pop-up menu

    4
    0 Votes
    4 Posts
    1k Views
    Daniel DayD

    @PeterJones

    I was able to add pins by dragging documents onto the notepad++ icon. I got the idea here. So I guess the main issue now is that recents are not showing up.

    Notepad++2.PNG

  • text becomes blurry

    5
    0 Votes
    5 Posts
    5k Views
    gstaviG

    @jonathan-patterson

    There are lots of issues with High DPI monitors. Notepad++ tries to be “DPI Aware” and many of the features around this are new to Windows. Could be that a related change is not backward compatible with Windows 7.

    Generally the blurry area is rendered by Scintilla and not by Notepad++ itself. And Scintilla has its own DPI challenges.

    Do you use custom DPI for the OS? Does it make a difference if you change it?

    If you run Notepad++ from a shortcut, enter its properties and observe compatibility tab. There aren’t as many settings as newer Windows but there is still High DPI related settings that may make a difference.

    See if enabling/disabling Notepad++ option “Use DirectWrite” makes a difference.

    Try playing with your video adapter properties, enabling/disabling 2D optimizations, even if you wouldn’t want to change it permanently, it could help identify the problem area.

  • Deleting content from files also opened in other programs

    13
    0 Votes
    13 Posts
    1k Views
    pnedevP

    @gstavi ,

    I couldn’t agree more. Writing to a file that has been open for writing by another process is definitely not a good idea. That’s why in my initial PR it was forbidden. But your suggestion is really great because this way we still give the user the possibility to overwrite the file while warning him upfront about the write access conflict. Excellent.
    We should distinguish between file open failure due to write sharing violation or write permission failure so we either suggest ‘Force Save’ or ‘Admin Mode Save’. Perhaps GetError will help in that matter.

  • deleting specific lines that don't meet a criteria

    12
    0 Votes
    12 Posts
    1k Views
    Neil SchipperN

    Hi @astrosofista & @guy038 & @alan-kilborn,

    OK, I found some closure on this. When re-running my bookmarking regex I noticed activity in the BookmarksDook panel. If I made the panel invisible, the process was still very slow.

    I also observed that a native bookmarking process like Inverse Bookmark (which has nothing to do with running a regex) was super slow.

    Then I went to a different Npp instance, this one minimalist (no plugins), and ran the regex against the same data, and the process was blink-of-an-eye. I then doubled the data to 2k lines, and it was still pretty much instant.

    Then I took Bookmarks@Dook out of the earlier instance (moved plug-in subdir away, restarted): the bookmarking by regex process was instant. Restored Bookmarks@Dook plugin, slow again.

    So there you have it.

    @alan-kilborn Those threads deal with bookmark processes driven by PythonScript, not native. The two issues might still be related. None of those discussions made mention of the presence or absence of the plugin.

  • How to turn Link into clickable description

    5
    0 Votes
    5 Posts
    28k Views
    NIKKO DE MONTECRISTON

    This is not straightforward, but you could have a table with 2 columns,
    one with the short label (alias) and the other with the real address link and:

    press a defined key to a macro for translating the alias click at the shown link

    Maybe it can be done with only one click,
    if the macro recorder accepts TO
    assign and call the translator macro AND call the final link
    in just one procedure.

    EXAMPLE
    Notepad Macro Shortener& Expander to a web link or a local file

    ALIAS LINK

    link1 file:///C:\Users\myUser\Documents\file1.txt
    link2 http://myURL/file2.txt

    **** Functions *******

    MACRO LINK_UNZIP (define Key1) *******
    INPUT = link1

    search link1

    replace file:///C:\Users\myUser\Documents\file1.txt

    MACRO LINK_ZIP (define Key2) *******
    INPUT = file:///C:\Users\myUser\Documents\file1.txt

    search file:///C:\Users\myUser\Documents\file1.txt

    replace link1

    See the example below:
    sample.png