• Recent File History Never Shows

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    Scott SumnerS

    @Ron-Payne said:

    Recent file history has not been showing…Use to always be on left.

    Perhaps you mean the Doc Switcher ? It isn’t a “recent file history”, it’s a list of all currently open files and it can be wherever you put it, but maybe its default location is on the left (that’s what made me think that you might be talking about that–mine is on the left currently).

    If Doc Switcher is what you are looking for, enable it at Settings (menu) -> Preferences… -> General (box on left) -> Document List Panel (box) -> Show checkbox. I’m not at all sure why it is named differently in the Preferences than what it shows on its window (“Document List Panel” versus “Doc Switcher”)!

    recently opened files do not open/show after starting NotePad++

    I think the setting you are looking for here is in Settings (menu) -> Preferences… -> Backup (box on left) -> Remember current session for next launch checkbox.

    If this (or ANY other posting on the Notepad++ Community site) is useful, don’t reply with a “thanks”, simply up-vote ( click the ^ in the ^ 0 v area on the right ).

  • How to invoke a plugin's shortcut key when opening a file in Notepad++?

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Insertion of lines in one view moves file in other view.

    Locked
    1
    0 Votes
    1 Posts
    775 Views
    No one has replied
  • in windows2003 V7.3.3 to V7.4.2 can't run

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    yhgroupY

    V7.3.3 ERROR :ScintillaEditView::init:CreateWindowEx() function return null
    V7.4.2 ERROR:ScintillaEditView::init : SCINTILLA ERROR - Can not load the dynamic library

  • Find and Replace functionality is broken?

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    gtkprG

    Exactly. I’m trying to delete the post, but it won’t let me.

    It’s strange, though, because I could’ve sworn I checked to see if that was the issue yesterday and it never worked :/

    It works now nonetheless, so w/e

  • Conditional search and Append or Replace - Help needed.

    Locked
    10
    1 Votes
    10 Posts
    5k Views
    Marcos Souto FernandezM

    My fault, typping bad. It works as expected!

    Missing the (?2 before the second replace.

    Thank you for your help.

    Marcos

  • file associations Win10 insider 16232

    Locked
    1
    0 Votes
    1 Posts
    941 Views
    No one has replied
  • Change a word in regex

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    Jos MaasJ

    Merci beaucoup, guy038, I think this is a valuable supplement to the tutorial! I am going to work it out. Best regards, Jos Maas

  • Is there a way to specify code blocks that should be auto collapsed?

    Locked
    2
    1 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @savage-roar

    nothing built-in but with a technique like described here it could be done.

    Cheers
    Claudia

  • How to change colour/color of a piece of text within other text

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @George-Bizas

    one way would be to set it like prefixed keywords.

    Cheers
    Claudia

  • 0 Votes
    4 Posts
    3k Views
    Scott SumnerS

    Minor edit to the above:

    Here’s SelectedTextOccurrenceCountInStatusBar.py:

    should have been:

    Here’s StatusBarReportingOfSelectionMatchCount.py:

  • How to save without comments?

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Scott SumnerS

    @Andrew-Tommy

    It is certainly easy enough to get rid of your comments, but it seems as if you’d want to end up with TWO versions of your file–one with comments (your worked hard to put the comments in, why not retain them!), and one without comments. Thus it might be wise to do a “Save A Copy As…” or “Save As…” and then remove the comments from the copy.

    As to removing the comments, a simple regular expression Replace-All operation should suffice:

    Find-what box: (?s)#.+?#
    Replace-with box: make sure this box is empty!
    Search mode: Regular expression

    You didn’t say if your comments could span lines or not, so the regular expression allows this (the (?s) part). Otherwise, the expression looks for a # character, followed by one or more characters (the .+? part), followed by another #. It replaces any matches with nothing effectively deleting the comment.

    You could record the Replace-All part as a macro, certainly. However, if you like the save-a-copy part, that doesn’t lend itself to macro-izing too well.

    If this (or ANY) posting was useful, don’t post a “thanks”, just upvote ( click the ^ in the ^ 0 v area on the right ).

  • 0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @hexsha

    for me it isn’t clear what you trying to do. As you started your post with hallo
    I assume you are German so maybe you wanna describe in German what your goal is?

    Cheers
    Claudia

  • I cant write numbers in my notepad++

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @Jeppe-Porse-Johnsen

    might be that the used font has been corrupted.
    Try another font by using Settings->Style Configurator->Global Styles->Global Override
    check enable global font and choose a different font.
    You should see the result immediately.

    Cheers
    Claudia

  • 'Insert File' in Current Document

    Locked
    6
    0 Votes
    6 Posts
    8k Views
    Harry BinswangerH

    For commands, like merge in file and save selection to disk, that aren’t in NPP, I use the spectacularly good keyboard macro language: Autohotkey (autohotkey.com). It is a real scripting language and can be as simple or complex as you want. I have over 1,000 lines of AHK code. And, naturally, you can make each macro be specific to whatever program, NPP or whatever, that is active.

  • Notepad++ plain text tends to wiggle, and ignore end parenthesis )

    7
    0 Votes
    7 Posts
    3k Views
    Frank Cox73F

    Bingo - you’re right!

    I had Settings / Preferences / Auto-Completion / Auto-Insert ( )
    “ON” and the phantom ( ) appeared - causing me Auto - Confusion.
    I’ve unchecked the boxes and now I’m happy!

    Frank
    Simple is good.

  • how to configure Notepad++ to run currently open Python file?

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Richdev-Boston

    I assume you are looking for $(FULL_CURRENT_PATH) variable.
    In addition, you might want to execute python in a cmd instance with paramter /K
    to see the output.

    cmd /K python $(FULL_CURRENT_PATH)

    But there is an alternative which offers additional features.
    I’ve posted it here.

    Cheers
    Claudia

  • Column-block Paste problem with source block having jagged right edge

    6
    0 Votes
    6 Posts
    3k Views
    Scott SumnerS

    I found some deficiencies in PasteAsTrueRectBlock.py. There are situations where the desired rectangular blocking can’t be known at paste time, but only at copy time. So I wrote CopyAsTrueRectBlock.py. Running this new script on a single selection, be it a normal selection or a column-based one, will result in a truly rectangular block in the clipboard, which can subsequently be pasted via a normal paste (e.g., ctrl+v). As a bonus, the logic for this script is simpler and shorter than the earlier script. :-)

    Here’s CopyAsTrueRectBlock.py:

    def CATRB__main(): # (C)opy (A)s (T)rue (R)ectangular (B)lock if not editor.getSelectionEmpty(): if editor.selectionIsRectangle() or editor.getSelections() == 1: line_ending = [ '\r\n', '\r', '\n' ][notepad.getFormatType()] lines_list = editor.getSelText().split(line_ending) if len(lines_list[-1]) == 0: lines_list.pop() # if text ended with line_ending, need to remove empty element at end of list rect_width = 0 if editor.selectionIsRectangle(): rect_anchor = editor.getColumn(editor.getRectangularSelectionAnchor()) rect_anchor += editor.getRectangularSelectionAnchorVirtualSpace() rect_caret = editor.getColumn(editor.getRectangularSelectionCaret()) rect_caret += editor.getRectangularSelectionCaretVirtualSpace() rect_width = abs(rect_anchor - rect_caret) longest_line_length = max([ len(line) for line in lines_list ] + [ rect_width ]) # pad shorter lines out to length of longest: truly_rectangular_lines_list = [ line + ' ' * (longest_line_length - len(line)) for line in lines_list ] remember_active_file = notepad.getCurrentFilename() notepad.new() editor.addText(line_ending.join(truly_rectangular_lines_list) + line_ending) editor.setSel(0, (longest_line_length + len(line_ending)) * len(truly_rectangular_lines_list)) editor.setSelectionMode(SELECTIONMODE.RECTANGLE) editor.copy() editor.undo() notepad.close() notepad.activateFile(remember_active_file) CATRB__main()
  • Highlighting of the non-empty rows

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @Антон-Примако

    can you show some screenshots and debug-info?
    To add the screenshot to the post use the following syntax
    ![](url_of_uploaded_screenshot)

    Cheers
    Claudia

  • FTP always disconnect itself or doesn't connect

    Locked
    7
    0 Votes
    7 Posts
    7k Views
    PeterJonesP

    You might want to contact support for that server, and see if it needs a reboot or something. :-)