• Copy unmarked lines notepad++

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    ani rodetA

    thanks you very much

  • A separate place for all Regex related posts.

    Locked
    1
    0 Votes
    1 Posts
    499 Views
    No one has replied
  • Remove lines that meet a requirement using notepad ++

    Locked
    5
    0 Votes
    5 Posts
    3k Views
    ani rodetA

    great friend, thank you very much for your help, I’m learning every day,
    If you work, thank you, I do not know how to thank you

  • Folding based on indent like YAML define your own language

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • regular expression - search until 1st occurence of

    Locked
    4
    1 Votes
    4 Posts
    4k Views
    Diego Di FilippoD

    thank you guys!!!
    D.

  • How to recover previous version of saved Notepad++ file?

    Locked
    2
    0 Votes
    2 Posts
    10k Views
    PeterJonesP

    Unfortunately for you, Notepad++ does not double as backup software with version control (by default).

    There is a microscopic chance that following the “Possible File Recovery” section of this FAQ would help you… IF you had Settings > Preferences > Backup > Backup on save = ☑ Verbose backup, then every time you hit Save in NPP, it would create a backup copy of the file with a different timestame (see NPP Wiki: Document Management, search for “verbose”) – but that’s not enabled by default. (If you had ☑ Simple backup, only the most recent version is saved.)

    Windows has an option: if you right click on a file, there’s a “Restore Previous Versions” option – if you happen to have configured Windows in the right way (I don’t know what that way is), then maybe that would help.

    The best advice (mentioned in that FAQ I linked earlier) is to proactively control your own destiny, especially with important files. If you only ever need the most recent version of a file, then most automated backup software will cover you. Some automated backup programs will even keep multiple versions of the same file, so you can go back in time to a certain extent. Some cloud file services might keep a few versions going back, as well, so if you’re editing files in your cloud folders, there might be some historical versions – see your cloud provider’s documentation. But if going back through the change history of a file is very important to you, then the best bet is version control software (like Subversion or Git) and remembering to “commit early, commit often”.

    Unfortunately, most of this advice requires that you already knew how to set up all those various options, and had decided to do so. If the hints above don’t help you recover this file, hopefully they will at least encourage you to set up a backup and file-history system that will meet your needs.

  • can someone talk me thru compiling on vs17

    Locked
    2
    0 Votes
    2 Posts
    889 Views
    Scott SumnerS

    @james-pruett

    As a first step, perhaps turn OFF the option to treat warnings as errors…and see if that gets you further along? :-)

  • Document Map is useful at huge files

    Locked
    2
    1 Votes
    2 Posts
    1k Views
    Scott SumnerS

    @Vincitydaimo-Vincity

    See here for how to officially make a feature request.

  • 1 Votes
    6 Posts
    1k Views
    PeterJonesP

    @SuperCPU,

    I understand the solution you and Scott were thinking of would be best. I was just trying to give you a workaround, because even if you do submit a feature request, it may be quite some time (if ever) before that request is implemented.

    The workaround does work for “Numpad 0” or “INS” or “DEL” or others: you just type the first character of the text of the menu item: for “Numpad 0”, you would hit “N” twice; for “INS”, you would hit “I” once (because the INS entry comes before the I entry); similarly type “D” for “DEL”. That’s the way it works in Notepad++, and quite a few other Windows applications with dropdown menus: if you type the first character of the option, it will go to the next option that starts with that character.

  • 0 Votes
    1 Posts
    576 Views
    No one has replied
  • Feature request: Modify Lines dialog for adding prefix/suffix to lines

    Locked
    6
    0 Votes
    6 Posts
    3k Views
    Scott SumnerS

    Here’s an example of a scripting-based solution, with Pythonscript.

    When you run the script, it walks you through your choices to get the job done:

    Step A:
    Imgur

    Step B:
    Imgur

    Step C:
    Imgur

    Here’s the short script, which I call PrefixOrSuffixLines.py:

    def POSL__main(): title = 'MODIFY LINES - Prefix or Suffix' result = notepad.messageBox( 'PREFIX {} lines (the alternative being to SUFFIX ) ?'.format('all' if editor.getSelectionEmpty() else 'selected'), title, MESSAGEBOXFLAGS.YESNOCANCEL ) if result == MESSAGEBOXFLAGS.RESULTYES: prefix_or_suffix = 'pre' elif result == MESSAGEBOXFLAGS.RESULTNO: prefix_or_suffix = 'suf' else: return result = notepad.messageBox( 'Apply {}fixing to EMPTY lines ?'.format(prefix_or_suffix), title, MESSAGEBOXFLAGS.YESNOCANCEL ) if result == MESSAGEBOXFLAGS.RESULTYES: do_empty_lines = True elif result == MESSAGEBOXFLAGS.RESULTNO: do_empty_lines = False else: return user_text = notepad.prompt( 'TEXT to {}fix all {}lines with:'.format(prefix_or_suffix, '' if do_empty_lines else 'non-empty '), title, '' # have input box start out empty ) if user_text == None: return editor.rereplace(r'(?-s)^(.' + ('*' if do_empty_lines else '+') + ')', lambda m: (user_text + m.group(1)) if prefix_or_suffix == 'pre' else (m.group(1) + user_text), 0, editor.positionFromLine(editor.getUserLineSelection()[0]), editor.positionFromLine(editor.getUserLineSelection()[1]) ) POSL__main()
  • Delete text with notepad ++

    Locked
    3
    -1 Votes
    3 Posts
    7k Views
    lolo germL

    very grateful to you, I’ve tried it and it works

  • My setting get lost when closing N++

    Locked
    1
    0 Votes
    1 Posts
    608 Views
    No one has replied
  • Feature request: Filter by shortcut too in the Shortcut Mapper

    Locked
    2
    2 Votes
    2 Posts
    835 Views
  • What happened to NPP's wiki page?

    5
    1 Votes
    5 Posts
    2k Views
    古旮

    Thanks for the reply. I’ve once been to Sublime’s forum, and I also find regex-related questions. So I think it is common to have regex questions for text editor forums. But here, NPP forum, is a perfect place for regex questions, especially the complicated ones, because of guy038.

    As for my case, my first post was about Regex syntax of “Replace with”, because I didn’t find it in the wiki page about regular expression. It was guy038 who showed me the right direction right away. After that, I learnt regex myself and I didn’t find it very difficult to cover 80% of all the syntax. If the wiki page had covered the essential information about Regex syntax of “Replace with”, I wouldn’t have posted that question. So I think essential wiki page information is very important.

    Some last words about learning regex. I didn’t used any of the regex sites. I just practiced on NPP, following the official regex documentation on BOOST. And it’s very good to know that there is a NPP version with less bug in regex, which is mentioned in the FAQ Desk.

    Actually, talking about regex questions is a little off-topic. I’m still curious about the technical status of the wiki page. I mean, can you devs log-in the wiki right now? Is the wiki page editable? Can you give or borrow me an account? Or maybe give an account to guy038 to let him organize the regex page. I also noticed that the Plugin Central is a little outdated. It’s unclear where to find the newest plugins.

    Things are getting a little messy, because being outdated. Where is the most recent official documentation of NPP? Is it gonna be in the FAQ catagory of this forum?

  • 1 Votes
    3 Posts
    1k Views
  • How to remove quotes on lines with notepad?

    Locked
    7
    0 Votes
    7 Posts
    5k Views
    jamie rolJ

    Thank you Mr. PeterJones

  • notepad++运行python 如何调用 cmder 或 git bash

    Locked
    5
    0 Votes
    5 Posts
    3k Views
    wzz xxW

    问题解决,感谢百度贴吧的 千城真人 吧友 ,
    其原始命令为 C:\downloads\cmder_mini\Cmder.exe /task {cmd::Cmder}&"C:\npMingw64\mingw\bin\python3.exe $(FULL_CURRENT_PATH) &echo "
    因为设置过环境变量, 精简为 cmder /task {cmd::Cmder}&"python $(FULL_CURRENT_PATH) " (后引号前空格不能省)

    详情见链接 https://tieba.baidu.com/p/5877576881

  • HOW TO ELIMINATE THE TEXT THAT IS REPEATED WITH NOTEPAD

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    ani rodetA

    thanks you very much

  • How to eliminate lines that meet a specific condition with Notepad?

    Locked
    6
    0 Votes
    6 Posts
    3k Views
    oscar remicccO

    @Scott-Sumner said:

    ^((:.+)|(.+:))(\R|\z)

    I appreciate your help friends