• Sort opened files

    Locked
    5
    0 Votes
    5 Posts
    4k Views
    ДаК СтудіоД

    Good time, Claudi!
    1 My inattention-“AAA-opsss”- sorry - not see that- now it’s WORK! THX!!!
    2 I read, as you suggested.
    In practice, this problem found after placing the server editable files in NP ++ (6.x). Prior to that, they also edited NP ++, but no problems. I thought that changed the default settings and just need to set it up. That’s the story)

    Grateful for tips
    and assistance!!!

    With respect
    Lance

  • Regex (or whatever) help please

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    craig whiteC

    Thank you very much, I will get done what the boss wants and then com back and figure out how and why it worked. Always good to understand something better. Thanks again!

  • 0 Votes
    3 Posts
    2k Views
    René W.R

    if you set the encoding to UTF-8 wihtout BOM, the file without any UTF-8 encoded chars will be physical the same like an ansi file. NPP will open the file in the default charset as there is nothing encoded in it.

    Using UTF-8 with BOM will add 3 chars to the document that might apear in the page if you include files - maybe thats your reason to use without BOM.

    i am adding following code in PHP:

    <?php # UTF8 check: öäüßÖÄÜ にほんご

    then save it as UTF-8 without BOM
    NPP will identify the UTF-8 encoded japanese/german mix and recognise the document as UTF-8 without BOM.
    please be aware that you need to mark the html-output as UTF-8 to avoid browsers to show rubbish.

    header("Content-Type: text/html; charset=utf-8"); ?><!DOCTYPE html> <html> <head> <meta charset="UTF-8">
  • HexEditor.dll not loading for some users

    8
    0 Votes
    8 Posts
    9k Views
    Claudia FrankC

    @baedean

    then it means that you installed npp with the option to use %APPDATA%\notepad++
    as the configuration directory but did not check the box to allow plugins to be loaded
    from there as well. Confusing - but you might have reasons to do so.

    And your computer/account is having the same configuration?

    I would try to use procmon to see where npp tries to find the plugins.

    Cheers
    Claudia

  • found rooted mui files

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    Claudia FrankC

    @Jon-Taylor

    npp, as a text editor, is not supposed to be used with binary files.

    Cheers
    Claudia

  • Notebook++ for Android

    5
    -1 Votes
    5 Posts
    5k Views
    StanDogS

    There is no copyright infringement, since the copyright law is an US law and exists only there. And I would be surprised, if anything of Notepad++ is protected at all. I guess only Don knows this exactly.

    As far as I can see, there are at least 5 entries with “Notepad++” inside the name.

    https://play.google.com/store/apps/details?id=com.smarttech.notes
    https://play.google.com/store/apps/details?id=com.gsnotepad.note
    https://play.google.com/store/apps/details?id=com.all.language.notes.notepad.plusplus
    https://play.google.com/store/apps/details?id=com.note.pad
    https://play.google.com/store/apps/details?id=notepadsandbox.bitbot.el

    The first 4 entries do not seem to have anything to do with the Notepad++ for Windows. Probably the developers just don’t know that there is an already established desktop application with the same name. I would just gently ask the developer of the app to change the name of their app.

    The last entry is the mentioned app. But as far as I can see, it is neither a clone of Notepad++, nor is it selled. And its description even says: “This is NOT an offcial app by Notepad++ developer. This is app can run notepad++ code editor (PC ver.) in android!”. The title is not just “Notepad++” but “Notepad++ Sandbox(Code Editor)” and from the screenshots one can clearly see, that it is not a native app (cursor, design, mention of “Sandbox”, etc.). That’s not that nice, but I don’t think that anyone there really wants to harm the “real” Notepad++ project. Just try to get in contact with them first and clarify things if you think that this is not ok.

    Edit: However, using the same logo without any altering at all (e. g. “Sandboxed” under the logo or something like that) is indeed not ok.

  • "Sel:" in status bar is off-by-1 on line count?

    9
    2 Votes
    9 Posts
    7k Views
    Scott SumnerS

    Here’s the Pythonscript I mentioned earlier.

    After running it, it will update the “Sel:” area in the status bar as follows:

    If selection contains partial lines which do not include the first line’s first character, not the last line’s last character (non-line-ending), then NO CHANGE from normal Notepad++ behavior.

    If the selection contains the first line’s first character, the part after the vertical bar (|) in “Sel: X | Y” will have a caret character (^) before the number of lines, e.g. ^7

    If the selection contains the last line’s last character (but not the line ending character(s)), the part after the vertical bar will have a dollar sign character ($) after the number of lines, e.g. 7$

    If the selection contains the last line’s last character AND the line ending character(s), the part after the vertical bar will have a dollar sign character ($) and \R after the number of lines, e.g. 7$\R

    If the selection contains lines in their entirety, the part after the vertical bar will combine all of these symbols, an example being ^7$\R. Note that this example means that 7 FULL LINES are in the selection, fixing the original “bad” Notepad++ behavior for this case.

    Regular expression users will feel very comfortable with the meaning behind the choice of special symbols used here.

    Okay, so here’s the Pythonscript code:

    # Sel : C | L in the status bar shows an off-by-one L (line count) sometimes (open to debate) # make it better: # Sel : C | L <-- selection spans L partial lines # Sel : C | ^L <-- selection spans L partial lines and includes first character on its first line # Sel : C | L$ <-- selection spans L partial lines and includes last char (but not line-ending) on its last line # Sel : C | L$\R <-- selection spans L partial lines and includes line-ending on its last line # Sel : C | ^L$\R <-- selection spans L FULL lines and includes line-ending on its last line def StatusbarSelOverride(args): curr_pos = editor.getCurrentPos() curr_line = editor.lineFromPosition(curr_pos) curr_col = editor.getColumn(curr_pos) sel_part = 'N/A' if editor.getSelections() == 1: sel_mode = editor.getSelectionMode() rect_sel_mode = True if (sel_mode == SELECTIONMODE.RECTANGLE or sel_mode == SELECTIONMODE.THIN) else False if not rect_sel_mode: if editor.getSelectionEmpty(): sel_part = '0 | 0' else: sel_start_pos = editor.getSelectionStart() sel_end_pos = editor.getSelectionEnd() sel_start_line = editor.lineFromPosition(sel_start_pos) sel_end_line = editor.lineFromPosition(editor.getSelectionEnd()) lines_touched_by_sel = sel_end_line - sel_start_line + 1 start_of_line_symbol = '^' if sel_start_pos == editor.positionFromLine(sel_start_line) else '' end_of_line_symbols = '$' if sel_end_pos == editor.getLineEndPosition(sel_end_line) else '' selected_text = editor.getSelText() line_ending = ['\r\n', '\r', '\n'][notepad.getFormatType()] if selected_text.endswith(line_ending): end_of_line_symbols = r'$\R'; lines_touched_by_sel -= 1 sel_text_len = len(selected_text) sel_part = '{tl} | {sol}{lis}{eol}'.format( tl=sel_text_len, sol=start_of_line_symbol, lis=lines_touched_by_sel, eol=end_of_line_symbols, ) line_col_sel_info_for_sb = 'Ln : {user_line} Col : {user_col} Sel : {sel}'.format( user_line=curr_line+1, user_col=curr_col+1, sel=sel_part, ) notepad.setStatusBar(STATUSBARSECTION.CURPOS, line_col_sel_info_for_sb) editor.callback(StatusbarSelOverride, [SCINTILLANOTIFICATION.UPDATEUI]) # register callback
  • Regex: select/match the numbers that are repeated most often

    19
    0 Votes
    19 Posts
    9k Views
    Claudia FrankC

    @Scott-Sumner

    Scott, you are absolutely correct, I’ve changed this in startup.py
    and for me this is much more convenient than using console.write to
    print chars to the console.
    Just a side not, the command
    print ‘\n’.join(dir(editor))
    should have been executed in the console itself and there it is working
    but if some would use it in a script, than it would print to editor unless
    you do changes Scott mentioned.

    Thx for the info about copy/paste - I do this a lot but luckily I didn’t use the history ;-)

    Cheers
    Claudia

  • Which regex engine does Notepad++ use?

    Locked
    8
    1 Votes
    8 Posts
    11k Views
    Alan KilbornA

    @MAPJe71

    Wow. How did you know that it took doing that in RB to get the replacement to work? I read the help file (after seeing your answer) and saw no hints in that direction. I’m impressed. You are truly my RegexBuddy BUDDY! [Also note that I’m not going to try to turn the N++ site into a RB support site (there’s already one of those), so I’ll say no more…]

  • auto-completion without ()

    4
    0 Votes
    4 Posts
    2k Views
    Jim DaileyJ

    @ng-khanh

    No, sorry.

    If the “(” is already present, then if you have the cursor somewhere inside the “(…)”, you can press Ctrl-Alt-Spacebar to bring up the function completion help window (if there is an entry in the XML for that function).

  • Regex: Mix-Numbers / Cross-numbers

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Curseur de souris

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Louca-gramme

    ??
    à droite en bas - cliquer OVR/INS
    ??

    Cheers
    Claudia

  • Edit a Marco (I'm new to Notepad)

    Locked
    2
    0 Votes
    2 Posts
    2k Views
  • Need to find and replace character at the end of a line

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Marcelino-Saiz

    use find dialog and check Search mode extended (on the bottom left)

    find: </HivTest></HivFor\r\n replace: </HivTest></HivForm>\r\n

    Cheers
    Claudia

  • How to differentiate ctrl and alt gr

    Locked
    9
    0 Votes
    9 Posts
    4k Views
    Claudia FrankC

    @Aadarsh-Indurkhya

    GetKeyState is the one I would have used as well, I guess.
    Why do you think npp is checking for AltGr?
    I assume it isn’t.

    p.s : I found this forum via notepad++ git repo.

    That’s a good one ;-)

    Cheers
    Claudia

  • HTML5 <main> Tag Is Not Recognized Or Responding?

    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Brandon-Pearson

    please see here.

    Cheers
    Claudia

  • Notepad ++ not working with python

    Locked
    3
    0 Votes
    3 Posts
    4k Views
    Claudia FrankC

    I guess we have two different issues here,

    @Vasile-Caraus
    if you want to use the normal python installation (not the python script plugin) you
    need to make sure to use the command shell together with the python interpreter.
    In addition encase the path with double quotes to prevent that command shell
    tries to run D:\Program and everything else is treated as a parameter to that prog.

    So you have to call

    cmd /K "D:\Program Files (x86)\Python\python.exe" "$(FULL_CURRENT_PATH)"

    @Mohammed-Al-Othman
    if the icon is red it means that there are changes and you should save it.
    Beside this obvious one explain what your problem is exactly.
    Add screenshots if needed and provide examples or step by step descriptions.

    Cheers
    Claudia

  • Convert text from ASCII to OEM

    4
    0 Votes
    4 Posts
    6k Views
    Conrad CramerC

    Thank you Peter!

    … see that NPP re-interprets what’s there. But I doubt that’s what you want.

    Exactly ;-)

    What you’ve said about the PythonScript sounds good, but , sorry, too complicated for me. I’m not an IT-Expert, just a slightly advanced user… If there is no readymade plug-in/add-on available it’s probably much easier to pay the money for Edit Pad Pro.

    @guy038

    Thank you too, but I’m aware of that

    Kind regards,
    Conrad

  • notepad++ sometimes loses its undo history

    2
    0 Votes
    2 Posts
    1k Views
    gstaviG

    I don’t understand your description but one way to lose the UNDO history is when file is updated by external app and NPP reloads it.

  • Plugin manager

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Armaan-Bali

    maybe here.

    Cheers
    Claudia