• Keep “Remember current session” AND prompt to save unsaved files?

    Locked
    5
    0 Votes
    5 Posts
    6k Views
    Scott SumnerS

    @Matt-McDowall

    Suggestion: Consider the TakeNotes plugin.

  • Search/Replace of Multiline Text Blocs

    6
    0 Votes
    6 Posts
    19k Views
    Scott SumnerS

    @James-Faction said:

    but it wasn’t very intuitive

    So what are your ideas for making it more intuitive?

    line breaks should be handled by copy/paste to make the find and replace function vastly more useful

    What does this mean?

    We want to help but first we have to understand…

  • I don't see the highlighting for PHP, HTML,

    Locked
    8
    0 Votes
    8 Posts
    7k Views
    Jelle RubenJ

    @Mikhail-V Who thanks that was the Issue
    @PeterJones You also thanks for your help…

  • Replace the math expression with the calculated result

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    PeterJonesP

    There’s also a plugin for Notepad++ called MathPad, which can be installed via the Plugin Manager, with more info at it’s homepage. I don’t know whether it will meet your needs, but it’s something to look into.

    Here is me helping you write the script: study the VBScript and/or PowerShell script at the SuperUser question you linked. Tweak it, and see how those changes affect the results. Experiment until it no longer requires the quote marks. Continue experimenting until it does everything you want it to. If you have shown some effort, but still cannot get it to work, ask a question in an appropriate forum, where the topic is about the scripting language you are using (SuperUser/StackOverflow might be a good location).

    Some here would be able to use the PythonScript plugin to automate those calculations inside Notepad++. Others might suggest skipping the middle-man: if you have a file with 14000 instances, it might be simpler to run it through an offline script, which could be written in VBA, Python, Lua, Perl, or your favorite scripting language. But it might take a few hours to write something: and that brings me to my last point:

    But if by “help me to write a script” you mean, “write a script for me”, then you’ve come to the wrong place. It sounds like you’re asking for custom coding services, which will likely cost you something. Good luck in presenting the question, as framed (ie, without showing any effort of your own), in any coding forum and getting the exact script you want.

  • Launch in Administrator mode not reopen edited file but original file

    8
    1 Votes
    8 Posts
    3k Views
    Sauro DellapittimaS

    Hello.
    Excuse me all for late (I’m absent in that period).

    Thanks, many thanks @Claudia-Frank, you are right.
    "Settings->Preferences->Backup->Enable session snapshot and periodic backup " wasn’t enabled where the problem exist.
    Activated this option, the problem is solved.

    Renew thanks.
    Cheers
    Sauro

  • How to completely turn off auto-complete.

    4
    1 Votes
    4 Posts
    2k Views
    Guillaume LaHayeG

    Although from time to time (especially after upgrades), I’ve noticed Auto-Completion gets re-enabled automatically. :(

  • URL to always download the current version of software

    3
    0 Votes
    3 Posts
    1k Views
    J TamJ
    The keeper of the repository could add a DOS JUNCTION (junction.exe) or a *nix symbolic link (ln -s) named LATEST_VERSION in the top level directory of the “repository/” host. Have you thought about writing code and submitting it? You could get the all-versions.html file, and parse it for the regexp: “Current Version”, then parse the line(s) the expression occurs on. This yields the canonical versionNumber. Now back-substitute this into the standard download URI and Robert is your aunt’s brother.
  • File-Open dialog not showing all files/folders

    Locked
    4
    1 Votes
    4 Posts
    2k Views
    PeterJonesP

    @Brian-Phillips,

    As it says on the File System Redirector page that ++@Scott-Sumner linked, “32-bit applications can access the native system directory by substituting %windir%\Sysnative”, so if you are using 32-bit Notepad++, and want to edit a file in the OS’s 64-bit system32\Drivers directory, you can browse to %windir%\Sysnative\Drivers or c:\windows\sysnative\Drivers (you can paste that in the File name box, or in the path-box at the top, if you’ve got that displayed), and it will be the files you expected.

  • Can I make NotePad++ auto-replace a string?

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Scott SumnerS

    @Henry-Vistbacka

    As @Mikhail-V suggests, you could do such a thing if you are willing to install and use the PythonScript plugin. Maybe there are other ways as well, but all would involve installing something extra, so why not the PS plugin? :-)

    Here’s some quick sample PS code, modify/experiment/enhance as you like:

    search_text = '--' replacement_text = 'en-dash' # <----- this is just placeholder, put what you want here def callback_sci_CHARADDED(args): if chr(args['ch']) == search_text[-1]: cp = editor.getCurrentPos() search_text_length = len(search_text) start_of_search_text_pos = cp - search_text_length if editor.getTextRange(start_of_search_text_pos, cp) == search_text: editor.beginUndoAction() editor.deleteRange(start_of_search_text_pos, search_text_length) editor.insertText(start_of_search_text_pos, replacement_text) editor.endUndoAction() end_of_search_text_pos = start_of_search_text_pos + len(replacement_text) editor.setCurrentPos(end_of_search_text_pos) editor.setSelection(end_of_search_text_pos, end_of_search_text_pos) editor.chooseCaretX() editor.callback(callback_sci_CHARADDED, [SCINTILLANOTIFICATION.CHARADDED])
  • Rename bulk xml tag with current value

    Locked
    1
    0 Votes
    1 Posts
    531 Views
    No one has replied
  • Issues with "Scintilla commands" keyboard shortcuts

    Locked
    8
    0 Votes
    8 Posts
    4k Views
    Scott SumnerS

    @Mikhail-V

    I think the issue with “Enter” binding should be reported if it is not yet been.

    Yes, sure, go ahead and report it if it isn’t already an issue.

    I assigned it to Alt+F and luckily it works without invoking the menu

    Okay, now that is odd…but nice for what you need at the moment!

    …maybe strange…and adds overhead…for me it feels totally ok.

    It is totally okay…any “overhead” is meaningless…plus you are ready when editor.lineDuplicate() doesn’t meet your needs in all cases…you already have a script file started…for your “enhancements”! :-D

  • Search/replace macro options change, easier way?

    9
    0 Votes
    9 Posts
    5k Views
    hoytprH

    Awesome. Thanks. Are you as lazy as the noob who just says “help”? Probably not.
    Good idea to put it in the startup.py.

  • Keyboard Shortcuts

    Locked
    3
    1 Votes
    3 Posts
    853 Views
    Carl ReynoldsC

    Can’t believe I hadn’t tried that - Exactly what I need.

    Thanks!

  • Error with report.asp

    Locked
    2
    0 Votes
    2 Posts
    517 Views
  • Can't get Aspell spell check to learn new words

    Locked
    2
    0 Votes
    2 Posts
    604 Views
    chcgC

    You may want to create a issue at https://github.com/Predelnik/DSpellCheck/issues.
    Could you please add some info about the used versions of N++, DSpellcheck plugin, Aspell version.

  • Notepad++ Minimal Version Source Code?

    Locked
    4
    0 Votes
    4 Posts
    1k Views
    Juha Kallio-KujalaJ

    @Scott-Sumner

    Thank you so much for your help. I thought the minimalist version has some parts of the source code stripped away and not compiled into the binaries, I should have investigated that more closely.

    Thank you again for you fast and clear response, have a great day.

  • Horizontal Scrollbar Enhancement.

    Locked
    3
    0 Votes
    3 Posts
    4k Views
    SalviaSageS

    I found the answer to my question here.

    https://superuser.com/questions/1098202/reset-width-in-notepad

    Looks like we will never be getting this feature…

  • 1 Votes
    3 Posts
    1k Views
    Peter LobleyP

    That worked! Thankyou.

  • Notepad++ "Stops working..." when app exited ...

    Locked
    1
    0 Votes
    1 Posts
    571 Views
    No one has replied
  • automatic line numbering help.

    Locked
    5
    0 Votes
    5 Posts
    8k Views
    Mikhail VM

    Hi , I would recommend you to install the Pythonscript plugin. So you can do all kind of document processing.
    I had similar scripts for similar tasks - I’ve edited one so it will work for your case.
    So once you have the plugin installed, this script will do the replacement in the whole active document
    (assuming brackets are used only for numbers and do not appear in other context):

    def cursorinfo(): # get caret info pos = editor.getCurrentPos() # current caret position LN = editor.lineFromPosition(pos) # current line number # LP = editor.positionFromLine(C) # buffer position at current line start return pos, LN # replace text in brackets with a number def replace_num(S, num): LC = S.find( "[" ) if LC >= 0 : RC = S.find( "]" ) number = str(num) S_new = S[0:LC + 1] + number + S[RC:] return S_new return S # process all text def process(): textL = [] for i in range (0, total): s = editor.getLine(i) # get text in line s = replace_num(s, i+1) textL.append(s) text = "".join(textL) return text pos, LN = cursorinfo() total = editor.getLineCount() # get lines total editor.setText( process() ) editor.gotoPos(pos) # restore caret position