• How I can convert urls in a text file to clickable links??

    4
    0 Votes
    4 Posts
    7k Views
    R kR

    @guy038 OP here! This is exactly what I was looking for. Thank You.

  • Find Dialog Flash Count

    4
    0 Votes
    4 Posts
    274 Views
    PeterJonesP

    @Alan-Kilborn ,

    <tongue style=“cheek: in; firmly: 1”>But why would anyone search for things that aren’t there? And why would you start searching from the middle instead of the beginning? </tongue>

  • Tab vs Space for .rs (Rust)

    13
    0 Votes
    13 Posts
    1k Views
    mere-humanM

    @snmnarum said in Tab vs Space for .rs (Rust):

    Perhaps the installer could detect a modified config and give us the option of A) use new, B) preserve user, or C) attempt a merge.

    You can create a feature request for this. Having at least A) and B) would be nice. However, C) will not be easy to implement.

  • Bug or problem with block comment in another block comment

    2
    0 Votes
    2 Posts
    339 Views
    PeterJonesP

    @Andrey ,

    What language lexer has block comments like that? Or are you using a UDL?

    And does that language actually allow nested comments? Some languages do, some don’t, and some leave it up to a compiler implementation decision.

    If the language really allows it, but the built-in lexer allows it, then technically, that’s a bug in the lexer. However, the lexers that ship with Notepad++ are part of the Scintilla code library that Notepad++ uses, so it would be a long, unlikely process to get it fixed (report the bug to Scintilla; wait for it to maybe get fixed; request Notepad++ update its Scintilla; wait for likely many years before Notepad++ does update its Scintilla, if ever)

    If you are using a UDL, that lexer uses a very simple algorithm, which was not built to handle nested comments (and even if you submitted an issue on it, the UDL lexer, even though technically controlled by Notepad++ unlike the other lexers, hasn’t had any significant improvements in years)

    You can add extra highlighting to a builtin lexer or to a User Defined Language (UDL) using regexes via the script EnhanceAnyLexer.py that @Ekopalypse shares in his github repo, but you might have to tweak his code to be able to handle nested comments.

    My general coding practice on nested comments: don’t.

  • find two letters between quotes in lang tag

    14
    0 Votes
    14 Posts
    3k Views
    Pouemes44P

    Hello Alan yes of course
    but when i must search and replace multi lines, its not very easy with a sow little windows and must always use regular expresions for lines break, so with and extension it will be super

  • How-To Backup to custom Sub-Directory?

    2
    0 Votes
    2 Posts
    292 Views
    Alan KilbornA

    @Gen-Utility said in How-To Backup to custom Sub-Directory?:

    Is there a clever alternative to get what i want?

    I don’t believe so.
    Developers designed the feature how they believed it would be most useful to users.
    In 5+ years of “watching” I don’t think I’ve ever seen a similar complaint/desire.
    But surely you can ask that your desired functionality be implemented.
    See the FAQ entry on making a feature request.

  • Hiding the line numbers column

    3
    0 Votes
    3 Posts
    11k Views
    Alan KilbornA

    I searched keyboard shortcuts… preferences

    I’m all about listening to complaints about a bad user interface, but not this time. This one is 100% PEBKAC.

  • How do I add a character ')' at a specific position?

    2
    0 Votes
    2 Posts
    552 Views
    guy038G

    Hello, @swarn-singh and All,

    I suppose that the key word RCONVERT is not concerned by the replacement. ONLY  the expression CONVERT(varchar(..), ..........) must be changed as RTRIM(CONVERT(varchar(..), ..........))

    If my assumption is not exact, just tell me about it !

    So, given, this sample :

    CONVERT(varchar(5), col$1) + '~' + CONVERT(varchar(8), col$2) + '~AD~' convert(varchar(10), dbo.ADDRESS_AD.AD_ALTER_DATE, 103) rconvert(varchar(10), dbo.ADDRESS_AD.AD_ALTER_DATE, 103) SELECT @ent_status = dbo.ORGANISATION_ORG.ORG_ENTITY_STATUS, @keystring = dbo.ORGANISATION_ORG.ORG_NAME + ', ' + convert(varchar(30), dbo.ORGANISATION_TYPE_CODES_OTC.OTC_DESCRIPTION) + ', ALTERd: ' + convert(varchar(10), dbo.ORGANISATION_ORG.ORG_ALTER_DATE, 103)

    The following regex S/R :

    SEARCH (?i-s)\b(CONVERT\(varchar\(\d+\).+?\))

    REPLACE RTRIM\($1\)

    Would output the expected text :

    RTRIM(CONVERT(varchar(5), col$1)) + '~' + RTRIM(CONVERT(varchar(8), col$2)) + '~AD~' RTRIM(convert(varchar(10), dbo.ADDRESS_AD.AD_ALTER_DATE, 103)) rconvert(varchar(10), dbo.ADDRESS_AD.AD_ALTER_DATE, 103) SELECT @ent_status = dbo.ORGANISATION_ORG.ORG_ENTITY_STATUS, @keystring = dbo.ORGANISATION_ORG.ORG_NAME + ', ' + RTRIM(convert(varchar(30), dbo.ORGANISATION_TYPE_CODES_OTC.OTC_DESCRIPTION)) + ', ALTERd: ' + RTRIM(convert(varchar(10), dbo.ORGANISATION_ORG.ORG_ALTER_DATE, 103))

    Of course, select the Regular expression search mode and tick, preferably, the Wrap around option

    Then, click, either, several times on the Replace button or once only on the Replace All button

    If OK, I could explain how this regex works, next time !

    Best Regards,

    guy038

  • i like notepad++

    1
    3 Votes
    1 Posts
    199 Views
    No one has replied
  • Upgrade Location

    2
    0 Votes
    2 Posts
    172 Views
    Alan KilbornA

    @Robert-Gilland

    I gave up in the end

    Can’t you just keep pointing the installer prompt to E: ?
    I mean, sure, it would be great if it could remember, but…
    Notepad++ has, what, 3 or 4 releases a year, so you’d have to do this fairly rarely, right?

    Of course, I’m out of my element, because I use the “portable” version and never have to deal with such a thing. I just unzip the portable into a folder, move that folder where I like, and done.

  • can't search backwards in regular expression mode

    7
    0 Votes
    7 Posts
    3k Views
    Alan KilbornA

    @gstavi said:

    I guess the sometimes surprising results mainly apply to the Find ALL and Replace ALL options rather than the Find.

    From my understanding it is the opposite of what you said.
    The “all” operations always move only forward through the text when doing their work, again AFAIK.
    Even “Replace All” with “backward” direction (in non regex search modes) moves forward when it does the replacement! You just don’t see how it is doing it because it does it all at once.

    Ah, when you said:

    since the user can’t tell the difference.

    you were considering this!

    There is absolutely no sense in Finding ALL with backward search.

    Seems true…

    “ALL” options should be grayed out when “backward” checkbox is selected.

    That gives the higher power to the checkbox rather than the buttons. I think the devs wanted it the other way. Just a guess.
    Good UI/UX design is really hard.

  • Notepad++ YouTube Video Tutorials

    1
    4 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    6 Posts
    272 Views
    MartijnM

    I see

    The 2nd command is replaced with \n and should be attached \ \n together (double backslash).

  • Find in all files

    16
    0 Votes
    16 Posts
    2k Views
    Mrr JackM

    @PeterJones I guess you didn’t understand me, or you don’t want to. I was unsure between these two.
    You don’t need to teach me how to use the program or talk about hammer nails @PeterJones.
    I have stated that in the old versions (even if there is a usage error) the program did not crash, it gave a warning in the anormal state . @PeterJones
    While I was bringing up the subject , i was not aware of why this situation was happening @PeterJones. Because it was closing directly without any notification. As time progressed, I resolved the situation and stated here . @PeterJones
    I hope you understand me now @PeterJones.

  • Cannot Install New Plugins

    7
    1 Votes
    7 Posts
    489 Views
    Michael TarkowskiM

    I had to move my installaion to C:\Program Files\Notepad++ and everything worked.

    Thank you for your help. All set.

  • can I have drag n drop text disabled?

    4
    0 Votes
    4 Posts
    542 Views
    Alan KilbornA

    @PeterJones said in can I have drag n drop text disabled?:

    I wouldn’t be surprised if the drag-and-drop of text is defined in the Scintilla component,

    It most certainly is.
    One can have a look at Scintilla’s Editor.cxx and search for inDragDrop to see some of the code.

    I cannot (say) that I’ve accidentally done a drag-and-drop on selected text…

    Never happened to me.

    Best advice to @Kara-Kitai : Just live with it the way it is.

  • Newbie here, a few quick questions!

    17
    0 Votes
    17 Posts
    737 Views
    EkopalypseE

    @mere-human

    From my recent discussion with Don and as Alan mentioned, Don prefers the opinions of “normal” users and to get his attention, those users need to open issues on github.
    Linking to previous discussions here in the community could
    be counter productive.

  • join 2 txt with alignment

    15
    0 Votes
    15 Posts
    656 Views
    cisco779kC

    how many useless controversies, as usual. I don’t really understand what’s suspicious about my request… I repeat it is a personal file of mine, and it is nothing so evil as it has been painted by those who have started this whole discussion. I really do not understand this totally inappropriate reaction.
    and perhaps only thing, you are right to say that here many ask for help while perhaps the real intent of this forum is to talk about the notepa++ program, but it is also true that many other users here ask how to solve their problems with reg-ex and other solutions, I am not the only one asking for help on this.
    Having said that then it is up to you to help or not, responding or not to the various posts. but having said this all the other controversies about a potentially legal file or not i find them really superfluous and useless, as already said a time ago …

  • 0 Votes
    5 Posts
    563 Views
    QQ LUOQ

    @PeterJones Got it, thanks, I configed in config.xml and it work now

  • 0 Votes
    4 Posts
    259 Views
    Alan KilbornA

    @Mrtnkbg said in The Select folder window is positioned with Ok and Cancel buttons outside the screen:

    instead of the usual(?) windows standard which resets windows/pop-ups to the default size during the next application session

    I’m not sure that is a “windows standard”.
    And that behavior would annoy me.

    Example: I have my Find window positioned on a different monitor than my maximized main N++ window. If, after a restart of N++, my Find window appeared in the default (e.g. new install) location – centered on the N++ main window – I’d be one unhappy user.