• 0 Votes
    9 Posts
    10k Views
    Claudia FrankC

    @dreamforceinc

    the result is stored in variable msg_result, so something like

    SCI_SENDMSG 2087
    echo $(MSG_RESULT)

    would do the job.

    Cheers
    Claudia

  • 0 Votes
    8 Posts
    4k Views
    ?

    It appears this is a Scintilla bug. Scintilla is a vital component of NP++ and several other text editor-type programs, which are probably all exhibiting this behavior.

    Bug reports:
    https://github.com/notepad-plus-plus/notepad-plus-plus/issues/3895
    https://sourceforge.net/p/scintilla/bugs/1983

    If you, like me, value ‘tap twice’ word selection over ‘tap twice and drag’ multi-select, follow this workaround:

    Go into Windows 10 ‘Touchpad settings’ Disable ‘Tap twice and drag to multi-select’
  • "Style found token" not an option anymore

    Locked
    5
    1 Votes
    5 Posts
    2k Views
    Chuchulo HatyzakC

    Great, thanks.
    Ch

  • 1 Votes
    3 Posts
    1k Views
    Scott SumnerS

    @jacobscrackers

    So as an example, try this in the Run (menu) -> Run… -> The Program to Run box:

    cmd /K echo $(FULL_CURRENT_PATH)

    As to "can I set a default for a particular file type? ", you’ll have to be more specific…

  • changing modified date

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    Scott SumnerS

    I can almost taste the cookies

  • Append character at end of line

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Rod NunleyR

    That did the trick. Exactly what I needed. Thanks much.

  • Can't log into local server with NppFTP plugin

    Locked
    5
    0 Votes
    5 Posts
    2k Views
    Thomas RyanT

    @chcg Thank you chcg
    I think am in way over my head… will persevere though.

  • how to remove repeated lines created from hex please help

    Locked
    4
    0 Votes
    4 Posts
    1k Views
    Dahaka pD

    @MAPJe71
    Thank you very much , am testing now .

    @ Scott Sumner
    I did several searches at google but not point me to here , i didn’t search here but next time i’ll do , Thanks for the screen shoot .

  • Find & Replace options

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @Kieren-Baillie said:

    with regular expression checked and a look ahead regex in find what like

    (?-s)^.*(?=\Rfile = open\(first_program_used\))

    you should be able to to find the line prior to file = open …

    Note: in replace with you need to escape the \first by \\first so it looks like

    first_program_used = main_address + r"\\first_program_used.txt"

    Cheers
    Claudia

  • 0 Votes
    3 Posts
    1k Views
    guy038G

    Hi, @Jesper-Bødewadt-Møller,

    I would use this strategy :

    If we find some digits, right after the syntax %X, just rewrite this NON wanted block, as it !

    If we find other 3 digits elsewhere ( which are good candidates ), replace each one with a 4 digit

    This simple way avoid us to verify where a 3 digit is found ( inside a %X... block or elsewhere :-))

    So, open the Replace dialog ( Ctrl + H )

    SEARCH (?-i)%X\d+|(3)

    REPLACE ?{1}4:$0

    OPTIONS Wrap around and Regular expression ticked

    ACTION Click on the Replace All button

    For instance, assuming the initial text below :

    abc3.%X31 def abc3%X11223def abc3%X773777.3def abc3%X31 333def abc3% X321 333def abc3%X 321 333def abc333.%X333333.333def

    It would be changed into :

    abc4.%X31 def abc4%X11223def abc4%X773777.4def abc4%X31 444def abc4% X421 444def abc4%X 421 444def abc444.%X333333.444def

    Remark :

    Just note that the 3 digits are replaced by a 4 digit , in the parts % X321 and %X 321, as they are not exactly of the form %Xdigitdigit…digit !!

    Notes :

    The modifier (?-i) forces the search to be NON-insensitive to case ( so sensitive ! )

    Then the regex engine looks for, either :

    The exact string %X, followed by, at least, one digit ( %X\d+ )

    Any digit 3, stored as group 1, because of the surrounding parentheses ( (3) )

    In replacement :

    If group 1 exists ( second alternative ), we replace with a single 4 digit ( part before the colon )

    ELSE, we just rewrite the entire matched string %X##### ( regex $0 , after the colon )

    Best Regards,

    guy038

  • Where in Notepad++ is the guide for Bold, Italics, etc?

    Locked
    7
    0 Votes
    7 Posts
    92k Views
    Claudia FrankC

    @Libby-Len-Traubman

    so I assume your initial question about bold, italic was also related to html programming?

    If so, yes you can use npp to create webpages but notepad++ doesn’t have any help file
    how to create a webpage.
    What you can do is to use web resources like https://www.w3schools.com/
    and once you’ve written your code use run menu and one of the browser functions like
    launch in firefox etc…
    But, again, notepad++ does not provide all those browsers it just assumes
    that you have, at least one, installed, and tries to start it with the current document open as parameter to the browser executable.

    Cheers
    Claudia

  • Nppnetnote not found

    5
    0 Votes
    5 Posts
    2k Views
    chcgC

    Now also an unofficial x64 version is available via pluginmanager.

  • 0 Votes
    6 Posts
    6k Views
    chcgC

    @kingtls I’m using n++ heavily now for over 10 years and never observed that behaviour on my own. So it seems to be a rare case and not easy to track. There are also multiple root causes in a widespreaded environment (WinXP-WIn10, Wine, 32bit/64bit, different plugin installations, etc.):

    some of the issues happen due to power fails, which might need a transaction save file system to avoid editing data on a network drive with corruption due to network errors coredumps either by n++ itself or some plugin

    And at least the reproducible issues I think get fixed.

  • Regex help needed editing the function list xml file

    3
    0 Votes
    3 Posts
    1k Views
    MAPJe71M

    @Florent-Pagès as available in Notepad++ v7.3.2.0 which was enhanced in v7.5.1.0 i.e. allowing $ in identifiers and whitespace before the left/open parenthesis.

  • 0 Votes
    2 Posts
    818 Views
    PeterJonesP

    @Clayton-Moudy ,

    It’s going to be hard for us to debug, given the few details you’ve given. The more you can tell us, the easier it is for us to help you.

    I’ve had to guess at your input file. (In this forum when you post, you can just prefix four more spaces on the quoted material, and the forum will properly mark it as preformatted code, so it’s easily set apart. I also included a comment-line… and will possibly need a first line that doesn’t indent)

    # comment-line with no extra spaces to align forum formatting two) spaces three spaces) four spaces five spaces no spaces one space two spaces) three spaces four spaces five # blank line to align forum formatting

    Other than the # lines, is that an accurate representation of your file?

    What is the difference between the two computers? Could you grab the ? > Debug Info > copy for each computer’s Notepad++, and paste in a reply – and mark which one does it right, and which does it wrong? What other settings are different between the NPP installations on each?

  • 0 Votes
    4 Posts
    2k Views
  • 7.5.4 64 bit no plugin manager

    5
    0 Votes
    5 Posts
    23k Views
    MatthewMcDM

    Resolved this on a new machine by installing 7.4.2 (https://notepad-plus-plus.org/download/v7.4.2.html) and then let the upgrader do it’s job.

  • edit m3u iptv list file - hide line number in results

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @SiberMedya

    I assume you want to copy the result without the line numbers, correct?
    If so, right-click into the result window, select all and copy
    and paste in a new document.
    Even it looks like you copy everything, it copies only the found items.

    Cheers
    Claudia

  • 0 Votes
    2 Posts
    1k Views
    MAPJe71M

    (?s)(?<=Address\x20).*(?=\x20Property\x20Type)

  • [Regex] Rounding numbers

    Locked
    6
    0 Votes
    6 Posts
    7k Views
    guy038G

    Hello, @david-wanke, @perterjones and All,

    David, I saw your post yesterday but I hadn’t time to reply, because I’ve just thought about some rounding cases, shown by Peter !

    Of course, with a regex, no problem to change, for instance :

    The floating number 12.45678 into the number 12.457

    And the floating number 12.45623 into the number 12.456

    using the rules :

    If the fourth decimal digit, after the decimal point, is between 0 and 4, just truncate all decimal digits after the third one

    If the fourth decimal digit, after the decimal point, is between 5 and 9, increase by one the third digit and truncate all decimal digits after the third one

    But, as regular expressions, mainly, do string operations, I would have, given the second rule, to take in account all values of the third decimal digit : if 3 then replace by 4, if 7 then replace by 8 and so on… ! And what about rounding 12.99962 which should give 13.000 !

    So, it’s easy to understand that the rounding process is, fundamentally, a mathematical operation, which is usually handled by programming or script languages. For instance, in the Peter’s Python script, the line, below, does the mathematical operation ( I’m not a python expert but I don’t think I’m wrong about it !! )

    while start < end: .... rounded = round( float(text) , 3 ) ....

    As Peter said, this an example of the limitations of regular languages ;-))

    Best Regards,

    guy038

    P.S. :

    Refer to some Wiki documentation, below :

    https://en.wikipedia.org/wiki/Regular_expression

    https://en.wikipedia.org/wiki/Regular_language

    Just note that I did not understand most of the second article, anyway ! But, it’s good, from time to time, to feel oneself, very intelligent… during some seconds ;-))