• Regex for Searching <HEAD> Section

    3
    0 Votes
    3 Posts
    413 Views
    guy038G

    Hello, @aksarben, @alan-kilborn and All,

    Simply, use this regex S/R :

    SEARCH (?s)(.*?<head>|\G)((?!</head>).)*?\K\xAD

    REPLACE Any SINGLE character or STRING

    Notes :

    I assume, of course, that there only one section <head>........</head> per file

    The <head>........</head> section can be, either, in one line or splitted into several ones

    Any soft hyphen, found, above the starting tag <head> is ignored

    Any soft hyphen, between the starting and the ending tag is found, individually

    Any soft hyphen, found, under the ending tag </head> is ignored

    Preferably, when testing on a single file, tick the wrap around option, which forces to starts the S/R process from the very beginning of the file

    Best Regards,

    guy038

  • Spell Checker for Web Pags

    2
    0 Votes
    2 Posts
    178 Views
  • 1 Votes
    5 Posts
    1k Views
    PeterJonesP

    @Trey-Hunner ,

    BTW, in response to this comment:

    if EditorConfig was built-in to Notepad++, I wouldn’t need to do this. I’m hoping that Notepad++ will add built-in support for EditorConfig, …

    Some hints about the development philosophy of Notepad++:

    if it’s already implemented by a plugin, there is very little likelihood it will be implemented natively if it’s already configurable by the settings, then there’s little chance the default setting will be changed, because it just takes a change to the settings if you don’t like the default settings bundled with Notepad++, you can make a new bundle with the settings configured the way you like it; this can either be done by starting with the zipfile distribution, and you edit the files in the zip, and you distribute the modified zip having the users install from normal installer, and you just distribute the updated settings files furthermore, as I said a while ago, the default settings on this one did change, so the default settings now match what you want.

    … built-in support for EditorConfig, just as BBEdit, Komodo, Visual Studio, PyCharm, and other editors have done.

    FYI:

    bbedit: development paid for by buying the software komodo: has the financial power of ActiveState to pay for its development visual studio: has the financial power of Microsoft to pay for its development; not all versions are free PyCharm: that one looks like it might be truly free, developed by volunteers rather than paid employees

    So you’ve listed one common example of a comparable software that’s free (freely developed, freely maintained, freely downloaded), that has implemented the EditorConfig natively. My response to that: “That happens”. Different OpenSource software in the same space (like different text editors) gets developed because different teams have different goals for the important feature sets, and whether those features should be implemented natively or by plugins.

  • 0 Votes
    2 Posts
    414 Views
    PeterJonesP

    The list of file types in the SaveAs dialog aren’t necessarily configurable. And having a software developer go and add every possible extension that anyone of the untold thousands of users might use, or might invent for their own use-case, is not something that can be practically done.

    Besides, all you have to do to get the file extension you want is to type it yourself. Since you’re already typing the filename, it shouldn’t be that hard to type .txt+ as well… and probably easier than typing the filename without an extension, then dragging down the pulldown and hoping that Windows will apply the right extension based on that pulldown entry.

    It appears you are using the “old style” dialog by disabling the ☐ Use new style dialog (without file extension feature & Unix style path capacity) in Settings > Preferences > Default Directory. I say this because you seem to have an expectation that the pulldown will set your extension for you. In my experience, this only happens in the old-style dialog. If you are using the old-style dialog, be wary of that “feature” from Windows… because whatever happens to come first in the list of extensions for a given dropdown is what Windows will apply; hence, if you type blah and apply c++ source file, there’s a good chance that you’ll save blah.h rather than blah.cpp, which is probably not what you want. I always use the new-style, because the old-style was obsoleted by Windows’s new-style dialog half a decade ago or more, and (more importantly) because the new-style encourages you to take control of your destiny by controlling extension yourself rather than relying on Windows to fill in the extension for you, and (most importantly to me) because it enables the tree-view to the left rather than just having the four or five icons for windows-preferred locations, and making it more clicks to find the location you want.

    Also, assuming you installed Notepad++ normally, I thought there was usually a right-click menu on most files which allows you to choose “Open With Notepad++” or similar phrasing, even if it’s not directly associated with that file type. If not, you could use save the following as a .reg file,

    Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Classes\*\shell\Notepad++] @="Edit With Notepad++" "Icon"="\"C:\\Program Files\\notepad++\\notepad++.exe\"" [HKEY_CURRENT_USER\Software\Classes\*\shell\Notepad++\command] @="\"C:\\Program Files\\notepad++\\notepad++.exe\" \"%1\""

    (where you might need to use c:\\program files (x86)… instead, if you’re 32-bit)

    That way, you can use the default associated program whenever you want by the normal double-click, but use Notepad++ by using the right-click menu for any file type

  • Download site down - any mirrors? (30/10)

    5
    0 Votes
    5 Posts
    2k Views
    Jonathan HJ

    Thanks - download site is still down, but both those links above checkout for the SHA256 on the 32 bit installer.

    Thanks again

  • notepad++ will crash if file is in cloned view and f12 is pressed

    2
    0 Votes
    2 Posts
    532 Views
    PeterJonesP

    Doesn’t crash for me. If I have an unsaved file cloned to both views, and hit F12, it goes into post-it mode, like it’s supposed to, and my unsaved changes are all still there.

    Please provide enough information for us to replicate your problem. The biggest chunk of missing data would be supplied by giving us the output of the ? menu’s Debug Info entry, and clicking on Copy debug info into clipboard, and pasting the results here. Anything else you can tell us that might help us understand your problem better would be useful.

  • 3 Votes
    2 Posts
    2k Views
    dinkumoilD

    For those who don’t want to deal with scripting plugins: You can do the same using my ExtSettings plugin, it’s available via Plugins Admin. See also >>> here <<<.

  • Bug when using "themes" - font setting ignored on program launch.

    4
    0 Votes
    4 Posts
    367 Views
    EkopalypseE

    That’s really weird.
    Do you use installed npp or portable version?
    Depending on your installation I would give it a try to rename
    config.xml and see if recreation fixes this issue.
    Or if you use installed version, give a portable version a try.
    Just unzip it and run it.

  • shortcut for html tags

    10
    0 Votes
    10 Posts
    9k Views
    DatamerisD

    Please Install the Emmet plugin.

  • Notepad++ portable without plugin_manager

    2
    0 Votes
    2 Posts
    362 Views
    PeterJonesP

    Notepad++ v7.6 was the first of the transitional versions, moving away from the old dll-based Plugin Manager to the builtin Plugins Admin. However, it wasn’t until v7.6.3 that the new structure stabilized, and if you want a 7.6.x, I’d go with v7.6.6.

    The most recent, however, is v7.8, with improvement s to the editor component. I’d probably recommend that version, unless you are in a minority situation involving outdated plugins.

  • Is there an option to unlock a forum thread?

    9
    1 Votes
    9 Posts
    1k Views
    guy038G

    Hi, @peterjones,

    OK, I just updated the link !

    BR

    guy038

  • Find Replace .. what happened .. is it being sabotaged ?

    8
    0 Votes
    8 Posts
    554 Views
    Alan KilbornA

    @PeterJones said in Find Replace .. what happened .. is it being sabotaged ?:

    that’s something that could be clarified a bit more in the docs.

    The grouping box has always been very obvious to me, but if it is not to everyone (and apparently it isn’t) then I agree it is a documentation-worthy thing.

  • How to change timestamp to hh:mm:ss.mss format

    6
    0 Votes
    6 Posts
    1k Views
    PeterJonesP

    For further info, see my boilerplate below.

    For specifics of this, I’ll give a brief description:

    The T and Z are literals, in both the search and replace expressions. The (...) makes a group#1 which contains whatever matches inside. \d matches any digit (0-9, and some other unicode “digit” characters from other languages). \d\d thus matches two consecutive digits; \d{1,2} matches 1 or 2 digits. : matches the literal :. Thus, T(\d\d:\d\d:\d\d)Z matches the hh:mm:ss in between a T and a Z, and stores it in group#1. For the replace, ${1} is the contents of group#1, and everything else is a literal so, “replace it with a T, followed by the contents of group#1 from the find-match, followed by .000 and finally a Z”.

    -----

    Please Read And Understand This

    FYI: I often add this to my response in regex threads, unless I am sure the original poster has seen it before. Here is some helpful information for finding out more about regular expressions, and for formatting posts in this forum (especially quoting data) so that we can fully understand what you’re trying to ask:

    If you have further search-and-replace (“matching”, “marking”, “bookmarking”, regular expression, “regex”) needs, study the official Notepad++ searching using regular-expressions docs, as well as this forum’s FAQ and the documentation it points to. Before asking a new regex question, understand that for future requests, many of us will expect you to show what data you have (exactly), what data you want (exactly), what regex you already tried (to show that you’re showing effort), why you thought that regex would work (to prove it wasn’t just something randomly typed), and what data you’re getting with an explanation of why that result is wrong. When you show that effort, you’ll see us bend over backward to get things working for you. If you need help formatting, see the paragraph above.

    Please note that for all regex and related queries, it is best if you are explicit about what needs to match, and what shouldn’t match, and have multiple examples of both in your example dataset. Often, what shouldn’t match helps define the regular expression as much or more than what should match.

  • Disable fullscreen key

    4
    0 Votes
    4 Posts
    684 Views
    PeterJonesP

    @Hansli-Müller said in Disable fullscreen key:

    p.s.: Why my full name will be displayed, how to change that??

    Because you filled in your full name (or it was inherited from whatever service you use to sign in).

    Click your “H” avatar in the upper-left corner; click Edit Profile in the pulldown; click on Change Username on the left. That will change what name gets displayed to us. You can also Change Picture to change your avatar.

  • Notepad++ and wine?

    3
    0 Votes
    3 Posts
    592 Views
    pnedevP

    @Hans-Müller ,

    As an alternative you can try https://snapcraft.io/notepad-plus-plus.

    BR

  • Notepad++ was not picking up document changes

    4
    0 Votes
    4 Posts
    332 Views
    pnedevP

    @John-Bowles ,

    As @Alan-Kilborn said, check your preferences - go to Settings->Preferences->MISC and on the right check File Status Auto-Detection state.

  • Blue dot on the left border

    3
    1 Votes
    3 Posts
    2k Views
    SinghRajenMS

    What is that?

    This is a feature named “Bookmark”. There are many operation supported around bookmark. Refer all operation under menu “Search->Bookmark”. Hope, this helps.

  • sort file by date hour like 2019-07-30 15:06:33

    4
    0 Votes
    4 Posts
    2k Views
    guy038G

    Hello @pcouas and All,

    Could you show us a small part of your log file, with the indication of the date/time fields to be sorted ?

    I’m pretty sure that, using a regex S/R, we could be able to insert a temporary re-organized date/hour field, at beginning of each line, which should be easy to sort, alphabetically ;-))

    See you later,

    Best Regards,

    guy038

  • RSS preview shows cookie notice

    1
    0 Votes
    1 Posts
    171 Views
    No one has replied