• Help removing folder margin style lines.

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    Claudia FrankC

    @Saksham-Gupta

    I’m not aware of any plugin which supports c++ script execution.
    So you either have to write your own little plugin which executes
    SCI_SETFOLDFLAGS(0) when it receives the NPP_READY notification
    or you install one of the mentioned plugins and call the respective function.

    Cheers
    Claudia

  • Plugin / Regex in Meniu Bar / My Favorite - Add new keep

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Scott SumnerS

    @Vasile-Caraus

    You don’t say if you are wanting to do searches or searches+replaces, but either way you could record and save a macro (and then it would appear in the “Macro” menu).

    The downside to this is that then the regular expressions used become very “hardcoded” – there is no existing easy way to create a situation where, for example, a regular expression(s) linked to a named menu entry could pull up the Find dialog, populate the find-what and/or replace-with boxes, and then let you edit them slightly before running the search. At least this doesn’t exist as far as I’m aware…perhaps a plugin? “RegRexPlace” (not updated since 2009) seems to be a start on this idea, but it is very basic and the author even says it needs improvement.

    My favorite editor of old, MultiEdit, allowed creating and saving regular expression search data under custom names, and even had a prompting feature such that, when run, it would ask the user for some input data, and then produce a very specific search field. Something like (not remembering exact syntax very well):

    <prompt “Enter a number”=my_number>this regex looks for the number `my_number`

    So then when that named search is run, a prompt box pops up asking “Enter a number” and the user enters data (for example, 123); then the search will be run looking for the exact data this regex looks for the number 123

    Okay, so that example doesn’t show the power of the feature, but the basic idea is there I guess. :-)

    This probably goes above and beyond what the OP is asking about, but I just thought I would throw it out there…

  • help replacing places

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @Eris-Leci

    from your given example you can use regular expression, build 3 matching groups and rearrange it like this

    find what:(\d+)(:)(.+@.+\.com) replace with:$3$2$1

    Means it is search for any number of digits (\d+), at least one followed by a colon (:) followed
    by any char followed by @ followed by any char followed by .com

    If you want to learn more about regular expression see this link and the last post by guy038
    https://notepad-plus-plus.org/community/topic/14208/is-regex-condition-possible-in-replace-string/5

    Cheers
    Claudia

  • .txt not added to text files

    5
    2 Votes
    5 Posts
    4k Views
    Claudia FrankC

    @Bret-Leduc

    Maybe the setting
    Settings->Preferences->Default Directory->Use new style save dialog… was activated?

    Cheers
    Claudia

  • Auto-doubling brackets feature

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    NorteXN

    OMG THANKS SO MUCH IT WAS THAT EASY. XD THANKS ANYWAYS WORKED AS I WANTED IT TO.

  • 0 Votes
    2 Posts
    2k Views
    Zacocom ZaccomZ

    Another one:

    ñ

    Will error:

    xF1

  • Cursor positioning behavior

    Locked
    7
    1 Votes
    7 Posts
    5k Views
    appar1tionA

    @go2to i don’t have need for ascii drawings. and as for macros, i fill out any additional macros that i need with autohotkey. the combination of np++ and ahk make my personal workflow a breeze.

  • Undo & Redo: Strange Behavior in NPP

    Locked
    4
    0 Votes
    4 Posts
    4k Views
    dailD

    @go2to

    You can always take it upon yourself to become the Good Samaratin and write one. ;)

  • Notepad++ just hanging on start - Windows 10

    Locked
    3
    0 Votes
    3 Posts
    4k Views
    Claudia FrankC

    @John-Griswold142

    could it be that npp, on startup, has to load a file which is on a server?
    Than the 30 seconds could indicate an network timeout.

    Cheers
    Claudia

  • Notepad to notepad++ importation .txt

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Alain-Marin

    allo,

    make sure that notepad++ uses the same font as MS notepad does
    make sure that notepad++ uses spaces/tabs as MS notepad does

    Cheers
    Claudia

  • Does NotePad++6.9.2 has Hex plg-in?

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Daniel FuchsD

    You can download it from the plugin manager. Notepad++ never came with the plugin pre-installed, as far as I remember.

  • is regex condition possible in replace-string

    Locked
    5
    0 Votes
    5 Posts
    7k Views
    guy038G

    Hi, @jos-maas,

    Oh yes ! You’re perfectly right. Even, in the example, described in my previous post, we don’t need any alternative !

    But, in that case, when a line does not match ( NO group jos ), this line stays unchanged, and we do not need, either, the ELSE part of the conditional replacement !

    So, the previous regex S/R, becomes :

    SEARCH (?-s)(?<jos>^\d+$)

    REPLACE ?{jos}Rewrite $+{jos}, as Group 'jos' exists

    And, with the original text :

    123 This is a test 4567890

    We would get, this time, the text :

    Rewrite 123, as Group 'jos' exists This is a test Rewrite 4567890, as Group 'jos' exists

    Note that, in replacement, the outer parentheses are removed, without any problem !

    Jos, for further information, about regular expressions concept and syntax, begin with that article, in N++ Wiki :

    http://docs.notepad-plus-plus.org/index.php/Regular_Expressions

    In addition, you’ll find good documentation, about the Boost C++ Regex library, v1.55.0 ( similar to the PERL Regular Common Expressions, v1.48.0 ), used by Notepad++, since its 6.0 version, at the TWO addresses below :

    http://www.boost.org/doc/libs/1_48_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html

    http://www.boost.org/doc/libs/1_48_0/libs/regex/doc/html/boost_regex/format/boost_format_syntax.html

    The FIRST link explains the syntax, of regular expressions, in the SEARCH part

    The SECOND link explains the syntax, of regular expressions, in the REPLACEMENT part

    You may, also, look for valuable informations, on the sites, below :

    http://www.regular-expressions.info ( The reference !! )

    http://www.rexegg.com

    http://perldoc.perl.org/perlre.html

    Be aware that, as any documentation, it may contain some errors ! Anyway, if you detected one, that’s good news : you’re improving ;-)

    Cheers,

    guy038

  • UDL 2.0 in Notepad 7 release

    20
    0 Votes
    20 Posts
    10k Views
    Kerem İspirliK

    ADA is not the only reason for UDL3. Generally UDL’s generally don’t work well with different themes and UDL3 is said to help with that, too: https://sourceforge.net/p/notepad-plus/discussion/331754/thread/bd2bc405/#757b

  • how can i remove automaticly lines with differents caracteres

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    gerdb42G

    Do a RegEx search: ^<icon.*$\R. Replace with nothing.

  • Conditional replacing

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Mario-Enrique-Martínez-Durán

    by using a regular express like

    find what:(\d+)(,)(\d+) replace width: $1\.$3

    Means it is looking for any number of digits followed by a comma and again digits

    To find out more about regular expression I would recommend reading
    nearly every post by @guy038 and the regex engines details as described here. In addition sites like http://www.rexegg.com/ and https://regex101.com/
    are useful too.

    Cheers
    Claudia

  • Notepad++ 32Bit or 64Bit - Regarding Encryption of text plugin.

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    BenyaB

    Thanks!

  • Add file name on each search result

    Locked
    1
    0 Votes
    1 Posts
    926 Views
    No one has replied
  • Image code issue

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Louisa-Rankin

    you didn’t specify the programming language you use the I assume html.
    One of the best side explaining html is https://www.w3schools.com/
    Your question https://www.w3schools.com/html/html_images.asp

    Cheers
    Claudia

  • Corrupted file. Error on line -1

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    AdrianHHHA

    The negative line number in the error message suggests that the beginning of the file, or possibly the end, are not correct. Notepad++ will show all of the lines and characters in the file.

    Try opening a file that is not corrupt in Notepad++ and compare the first few characters against the first few of the corrupt file. It may be useful to set menu => View => Show symbol => Show all characters. Also compare the file encodings as shown on the Notepad++ status line (i.e. at the bottom of the window).

  • Word cannot be added in dictionary

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied