• Login
Community
  • Login
  1. Home
  2. Help wanted · · · – – – · · ·
Log in to post
Load new posts
  • Recently Replied
  • Recently Created
  • Most Posts
  • Most Votes
  • Most Views
  • V

    Regex: Add new empty line before/after some word - separated

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Nov 26, 2016, 6:43 AM
    Nov 24, 2016, 9:52 PM
    0 Votes
    2 Posts
    6k Views
    V Nov 26, 2016, 6:43 AM

    Add a new line After the word_2:

    Search: WORD_2
    Replace By: \n\nWORD_2\n\n

    Add a new line Before word_1:

    Search: WORD_1
    Replace By: \n\nWORD_1\n

    Read here more:
    http://www.rexegg.com/regex-quickstart.html

  • C

    the result get from Nppexec is different from cmd

    Watching Ignoring Scheduled Pinned Locked Moved java nppexec
    1 Nov 25, 2016, 12:53 PM
    Nov 25, 2016, 12:53 PM
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • D

    Shortcut to replace all in replace dialog no longer works

    Watching Ignoring Scheduled Pinned Locked Moved
    5 Nov 24, 2016, 3:57 PM
    Nov 24, 2016, 12:56 PM
    0 Votes
    5 Posts
    5k Views
    S Nov 24, 2016, 3:57 PM

    @Darius-Damalakas

    It appears that between 7.2 and 7.2.1 the “FInd All In Current Document” was assigned Alt+A as a keyboard- accelerator. This appears to be a duplicate assignment, since as you point out, the “Replace All” button has the “A” underlined. When you press Alt+A, the software finds the “Find All in Curr Doc” binding first and invokes that. The technique I linked to earlier should allow you to fix this.

    Regarding “resort(ing) to such magic…”, I guess the positive takeaway is that you can fix such things yourself without waiting on someone else to do it. And for some people that stretch Notepad++ to its utter limits, the “magic” is sometimes indispensable. :-)

  • G

    saving files in notepad++

    Watching Ignoring Scheduled Pinned Locked Moved saving files file extensions
    3 Nov 24, 2016, 2:44 PM
    Nov 24, 2016, 12:31 AM
    0 Votes
    3 Posts
    5k Views
    S Nov 24, 2016, 2:44 PM

    @garyknott

    You can find a Notepad++ manual here: http://docs.notepad-plus-plus.org/index.php/NP%2B%2B_Guides

    I (re)found this by googling “Notepad++ manual” – not so difficult. :-)

  • M

    Automatically open files and files in subfolders

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Nov 24, 2016, 1:28 PM
    Nov 24, 2016, 1:28 PM
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • M

    How to show NPP Export Window

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Nov 24, 2016, 10:11 AM
    Nov 24, 2016, 10:11 AM
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • A

    Running a macro on all open docs

    Watching Ignoring Scheduled Pinned Locked Moved macro
    4 Nov 24, 2016, 9:40 AM
    Nov 23, 2016, 11:51 AM
    0 Votes
    4 Posts
    7k Views
    A Nov 24, 2016, 9:40 AM

    Thanks for the reply! The individual files are XML order files and have lines which include the number of orders in that particular file. Merging them all into one wouldn’t be ideal without being able to extract them all after - possibly using a custom header as you mention. Ideally, the files also need to retain their filenames.

  • B

    Notepad++ crashed twice today Access violation code 5 at 0x011AD46F

    Watching Ignoring Scheduled Pinned Locked Moved crash newfile
    2 Nov 23, 2016, 7:11 AM
    Nov 23, 2016, 12:09 AM
    0 Votes
    2 Posts
    2k Views
    C Nov 23, 2016, 7:11 AM

    Please, provide debug info.
    Try to do a fresh install

  • J

    Installation of plugins with Notepad ++ 64 bit

    Watching Ignoring Scheduled Pinned Locked Moved kutsche hello i would
    2 Nov 22, 2016, 6:08 PM
    Nov 21, 2016, 7:21 PM
    0 Votes
    2 Posts
    6k Views
    C Nov 22, 2016, 6:08 PM

    switch to 64 bit for the plugins is just on the way and expected to last some time, e.g. see the description of the compare plugin at github https://github.com/jsleroy/compare-plugin and the latest CI build at https://ci.appveyor.com/project/jsleroy/compare-plugin/build/1.5.7.101 , but that is not mainstream read to use, similar the pluginmanager for x64 at https://github.com/bruderstein/nppPluginManager/tree/x64

    So for N++ usage with plugins 32 bit is still the default for some time.

  • K

    Hidden Fields

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Nov 22, 2016, 1:31 PM
    Nov 21, 2016, 8:42 PM
    0 Votes
    3 Posts
    2k Views
    K Nov 22, 2016, 1:31 PM

    Yes I’m using Notepad++. I think I may have figured out the issue though.

  • B

    Functionlist - Different results with different line endings

    Watching Ignoring Scheduled Pinned Locked Moved functionlist
    5 Nov 22, 2016, 6:50 AM
    Nov 17, 2016, 7:36 AM
    0 Votes
    5 Posts
    5k Views
    B Nov 22, 2016, 6:50 AM

    Many thanks for your solution. Your Parser works fine.

    It also gives me a lot of stuff to study. I never heard of Pattern Modifiers before. I looked for Pattern Modifiers and found a tutorial on regular-expressions.info. I’ll try to work it through and learn more about Regular Expressions.

    Sincerely Bernd

  • G

    Notepad++ can't handle a 10MB text file

    Watching Ignoring Scheduled Pinned Locked Moved
    4 Nov 22, 2016, 5:56 AM
    Nov 21, 2016, 11:45 AM
    0 Votes
    4 Posts
    4k Views
    G Nov 22, 2016, 5:56 AM

    Dail - Thank you! I’ve disabled this “snapshots and periodic backups” feature. I don’t use Auto-Completion, so it is already disabled. And for the 64bit version, there are no extra plugins to be installed anyway, except those few installed by default. Still I could, or would want to, uninstall the “Converter” and “MIME Tools”, if needed.

    Guy038 - Thank you! Your numbers are amazing! I’ve now disabled the word wrap feature as well.

    I hope I don’t encounter the problem anymore.

    Again, thank you both!

  • Nazrulsyah Firaz Fauzee AndylimN

    Help needed :) Automate deleting number and spacing

    Watching Ignoring Scheduled Pinned Locked Moved
    5 Nov 21, 2016, 8:20 PM
    Nov 17, 2016, 2:04 PM
    0 Votes
    5 Posts
    3k Views
    guy038G Nov 21, 2016, 8:20 PM

    Hello Nazrulsyah Firaz Fauzee Andylim, Peter Jones and All

    If I fully understand the problem, your first line begins with one or more digits, followed by any spacing, followed by two time values, each of them, separated by a space and written with the template HH:MM:SS:CC ( CC = hundredth of second , from 00 to 99 )

    And you would like to delete the first number, at beginning of each line, containing the templates HH:MM:SS:CC, on 62 files, wouldn’t you ? If so :

    Backup your 62 TXT files, as the same 62 SRT files ( IMPORTANT )

    Open the Find in files dialog ( Ctrl + Shift + F )

    In the Find What : zone, type ^\d+\h+(?=\d\d:\d\d:\d\d:\d\d)

    Leave the Replace with : zone EMPTY

    In the Filters zone, type *.SRT

    In the Directory zone, type the absolute location of these 62 SRT files

    Select the Regular expression search mode

    Uncheck, if necessary, the In all sub-folders and In hidden folders options

    Click on the Replace in Files button and click on the OK button to valid that S/R

    Et voilà !

    Remark : If anything goes wrong, NO panic : just, delete the 62 SRT files, as you STILL get the 62 original TXT files :-)

    For instance, from the text below :

    2 15:25:23:80 15:25:25:37 Blah, blah Blah, blah Blah, blah ......... ......... 7 10:00:01:00 10:00:02:07 When I was a child, I used to go, 2 times per week, to Mr Parker's work-shop to contemplate, with fascination, all the automatons, build by the old man. More than 1 hundred, with their sparkling colours, lay on numerous shelves... ......... ......... 11 03:07:59:77 03:08:01:13 more than one line in the SRT goes here

    you would obtain, the replaced text below :

    15:25:23:80 15:25:25:37 Blah, blah Blah, blah Blah, blah ......... ......... 10:00:01:00 10:00:02:07 When I was a child, I used to go, 2 times per week, to Mr Parker's work-shop to contemplate, with fascination, all the automatons, build by the old man. More than 1 hundred, with their sparkling colours, lay on numerous shelves... ......... ......... 03:07:59:77 03:08:01:13 more than one line in the SRT goes here

    Notes :

    Only, the three numbers 2, 7 and 11, at beginning of lines, and the following spacing characters, are deleted

    Luckily, the lines, which begin with a number, but not followed by a template, of the form HH:MM:SS:CC, remain unchanged !

    From beginning of line ( ^ ), the regex engine looks for a non null range of digits ( \d+ ), followed by some non null spacing characters ( \h+ ).

    Then, due to the syntax (?=\d\d:\d\d:\d\d:\d\d), named a positive look-ahead, the regex engine, verifies that, at cursor position, a time value, with the template HH:MM:SS:CC can be found. If so, the overall regex matches that initial number and the spacing, after it.

    And, as the Replace zone is EMPTY, it’s , simply, deleted, from the file’s contents

    Best Regards,

    guy038

    P.S. :

    BTW, are my two sentences, at middle of the text, looks like “fair” English prose ?!

  • ArmingleggingsA

    I get it. 7.2 has silent uninstall. That's great, but how do I silent INSTALL?

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Nov 21, 2016, 2:56 PM
    Nov 21, 2016, 2:56 PM
    1 Votes
    1 Posts
    2k Views
    No one has replied
  • Andrew GreggA

    Plugin to let you preview BBcode?

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Nov 21, 2016, 2:42 PM
    Nov 20, 2016, 9:28 PM
    0 Votes
    2 Posts
    7k Views
    PeterJonesP Nov 21, 2016, 2:42 PM

    If it were me wanting to preview BBCode, I would use the Preview HTML plugin, which by default renders HTML… But it allows you to define a filter to run an external converter to convert from language “X” to HTML. Thus, I’ve got mine set up to convert Markdown and Perl’s POD documentation-markup to HTML.

    ; Content of Filters.ini file [Markdown] Extension=.md .markdown Language=Markdown Command=c:\perl\site\bin\multimarkdown.bat "%1" [PerlPOD] Extension=.pm .pod .pl Language=Perl Command=c:\perl\bin\pod2html_clean.bat -css=c:\perl\bin\pod2html.css "%1"

    If you can find a BBCode to HTML converter (I did a quick google, and saw some promising links, but I know nothing about it, so cannot evaluate the converters themselves). On my computer, I would probably grab a Perl module that does the conversion, like HTML::BBCode or Parse::BBCode, write a quick script to use the perl module to convert a BBCode file to HTML, and use that converter script up as the Command in a PreviewHTML Filter Definition:

    [BBCode] Extension=.bbcode .bbc Language=BBCode Command=c:\batch\bbcode2html.bat "%1"

    (One caveat on the Preview HTML plugin: the Notepad++ Installer seems to think it’s an “unstable” plugin, and disables it every time NPP upgrades. However, I have never seen Preview HTML crash NPP, so I don’t know why the installer claims that it is unstable. It might be one of those situations, discovered recently, where an earlier plugin in your plugin list gets incorrectly blamed for a later plugin’s crash, but I have no way of proving that. I just move the PreviewHTML.dll back into the main plugins directory from plugins\disabled after every upgrade.)

  • Saad MuhammadS

    features of notepad++

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Nov 21, 2016, 9:55 AM
    Nov 21, 2016, 9:55 AM
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Martin Kaymer BlakeM

    Hi there

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Nov 21, 2016, 9:22 AM
    Nov 20, 2016, 10:14 PM
    0 Votes
    3 Posts
    2k Views
    Saad MuhammadS Nov 21, 2016, 9:22 AM

    @Martin-Kaymer-Blake said:

    How do I use notepad ++ to compare 2 or more files and highlight or get an output of difference between these files?

    Install notepad++ on your PC and follow the instructions below:
    STEP 1- Go to files and then open the files you want to compare.
    STEP 2- Go to plugin > plugin manager > show plugin manager > available > compare.
    STEP 3- After that, both files you wanted to compare will be shown side by side on your screen and you will see the difference highlighted.

    Tips: You can also use Winmerge software to compare two text files.

  • Saad MuhammadS

    future features of notepad++

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Nov 21, 2016, 8:58 AM
    Nov 21, 2016, 8:58 AM
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Andrew ChurchA

    Folder as Workspace pane a pain every launch

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Nov 20, 2016, 2:19 AM
    Nov 20, 2016, 2:19 AM
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Gryffydd DavidG

    Margin fold collapsing for code blocks - Visual Studio Style

    Watching Ignoring Scheduled Pinned Locked Moved
    5 Nov 19, 2016, 11:11 PM
    Nov 19, 2016, 1:42 PM
    0 Votes
    5 Posts
    3k Views
    PhilCxP Nov 19, 2016, 11:11 PM

    Apparently, this is indeed a Scintilla issue. I found via Google search, a feature request thread titled “Fold { on relevant line”.
    https://sourceforge.net/p/scintilla/feature-requests/8/?page=0

    Note that this request is request number eight (8) and the date is fifteen (15) years ago! When an open request in a list currently numbering in four digits is numbered with a single digit, you can probably deduce no solution is likely anytime soon.

    Seems to me the only general solution for scintilla is to trigger fold start on the list of “foldable” language structures, and base fold ends on a multiline regex pattern that encompasses the language syntax definition of the structure. (That is, the one the language parser understands)

The Community of users of the Notepad++ text editor.
Powered by NodeBB | Contributors