• notepad++ python

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC
    @שלומי-אבוטבול you need to be a bit more descriptive. How did you setup python with npp already? Which version of python do you use? Do you use npp plugins together with python? Cheers Claudia
  • How can I organize encodings displayed in menu?

    Locked encoding menu
    5
    0 Votes
    5 Posts
    3k Views
    comodoroC
    @Claudia-Frank I thought the same (viewing only), but then there are the exceptions mentioned on the page, that the underlying file is changed under some circumstances. I would actually prefer a command that changes only displayed characters only if they cannot be displayed in the new encoding (and marks the file for subsequent saves in a certain way, and marks the file changed), no immediate saving would be needed. And the Convert command would not be needed then (as I could just save the file). And while I am at it, ANSI is not an encoding name - I assume it means system codepage, which can be different from computer to computer. I will have a look at the github project and consider asking there.
  • Plugins are not loaded

    Locked
    5
    0 Votes
    5 Posts
    7k Views
    chcgC
    See https://github.com/bruderstein/nppPluginManager/issues/7 PM is not available in 64-bit yet, so you have to search manually if a 64bit version of the plugins you wan’t to use is available. See https://notepad-plus-plus.org/community/category/5/plugin-development for update announcements.
  • Sel: in status bar doesn't count non-ASCII characters

    3
    0 Votes
    3 Posts
    2k Views
    Grzegorz HaydukG
    Thanks for your reply. I can see that this error occurs when the encoding is set to ANSI. When I type something in UTF-8 and then switch to ANSI, I can see that single “ó” in UTF-8 is encoded as two bytes in ANSI, but only first byte is counted in “Sel:”. Similar case is when a file is created as ANSI and there are only legal (correct) ANSI characters - diacritic characters (ą, ę, ł, ó, …) in the file - then they are not counted in “Sel:”. Can you duplicate the bug now?
  • Search for inconsistent line endings with a regex?

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    Claudia FrankC
    @Alan-Kilborn Hi Alan, currently I only have a solution for each eol. (?-s).*$(?!\r\n) (lines not ending in win eol format \r\n) (?-s).*$(?!\n) (lines not ending in unix eol format \n) (?-s).*$(?=\n|\r\n) (lines not ending in old mac eol format \r) Cheers Claudia
  • 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

    please help plugin
    8
    0 Votes
    8 Posts
    10k 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
    6k 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
    9k 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
    12k 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
    13k 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
    3k 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
    Claudia FrankC
    @Mary-Lynn-Buck-Church not brand new but still valid http://docs.notepad-plus-plus.org/index.php/Editing_Configuration_Files#.3CMacros.3E Cheers Claudia
  • 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
    5k 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