• 0 Votes
    5 Posts
    270 Views
    VijayPrabakarV

    ``Hi

    The requirement It is not very technical related to Java… I Just mentioned like that…

    My requirement is,
    Always the java file will have package line as below

    package com.abc.edf.*

    I want to copy this line from the list of all the java files and paste above package line only in new.txt file

    ``

  • The Nul Error

    11
    0 Votes
    11 Posts
    703 Views
    Alan KilbornA

    @PeterJones said in The Nul Error:

    and click on the “Bookmark 1 ♥” again

    Works, thanks!!

  • Can I see a preview for the result of the "replace" form?

    14
    0 Votes
    14 Posts
    510 Views
    pnedevP

    @Alan-Kilborn said in Can I see a preview for the result of the "replace" form?:

    Isn’t there another way for the plugin to do what it needs to without messing with the undo history?
    If you release your version of the plugin, maybe give it a slightly different name to prevent confusion.

    Unfortunately Compare plugin cannot circumvent the Undo history clean-up.

    The new plugin will be called ComparePlus, it has completely new alignment approach and keeps the Undo intact.
    It is almost finished but sadly that’s its state for about 8 months now. I’m not sure when exactly it will be ready.

    BR

  • Troubles building and executing NPP

    25
    1 Votes
    25 Posts
    2k Views
    andrecool-68A

    @ErwanDelhoveUCL

    It can be even easier to build a project if you run it from these three bat-files:

    Run as administrator x86 Native Tools Command Prompt for VS 2017

    call "full_file_path\x32_x64_START_BOOST.bat" Enter

    @echo on cd C:\sources\boost_1_70_0 call bootstrap.bat cd C:\sources\boost_1_70_0\libs\regex\build C:\sources\boost_1_70_0\b2.exe toolset=msvc link=static threading=multi runtime-link=static address-model=32 release stage C:\sources\boost_1_70_0\b2.exe toolset=msvc link=static threading=multi runtime-link=static address-model=64 release stage md C:\tmp\boostregexLib\x32 md C:\tmp\boostregexLib\x64 copy C:\sources\boost_1_70_0\stage\lib\libboost_regex-vc141-mt-s-x32-1_70.lib C:\tmp\boostregexLib\x32 copy C:\sources\boost_1_70_0\stage\lib\libboost_regex-vc141-mt-s-x64-1_70.lib C:\tmp\boostregexLib\x64 exit

    Run as administrator x86 Native Tools Command Prompt for VS 2017

    call "full_file_path\x32_START_SCINTILLA.bat" Enter

    @echo on cd C:\notepad-plus-plus-master\scintilla\win32\ nmake -f scintilla.mak clean nmake BOOSTPATH=C:\sources\boost_1_70_0\ BOOSTREGEXLIBPATH=C:\tmp\boostregexLib\x32\ -f scintilla.mak copy /y "C:\notepad-plus-plus-master\scintilla\bin\SciLexer.dll" "C:\notepad-plus-plus-master\PowerEditor\bin\SciLexer32.dll" exit

    Run as administrator x86_x64 Cross Tools Command Prompt for VS 2017

    call "full_file_path\x64_START_SCINTILLA.bat" Enter

    @echo on cd C:\notepad-plus-plus-master\scintilla\win32\ nmake -f scintilla.mak clean cd C:\notepad-plus-plus-master\scintilla\win32\ nmake BOOSTPATH=C:\sources\boost_1_70_0\ BOOSTREGEXLIBPATH=C:\tmp\boostregexLib\x64\ -f scintilla.mak copy /y "C:\notepad-plus-plus-master\scintilla\bin\SciLexer.dll" "C:\notepad-plus-plus-master\PowerEditor\bin\SciLexer64.dll" exit
  • Speeding up searches

    6
    0 Votes
    6 Posts
    2k Views
    PeterJonesP

    @gstavi , @Alan-Kilborn ,

    If only there were somewhere or other where an experienced Notepad++ & Other App user were able to post a tutorial on how to use those two things together. 😉

  • NP++ and hidden files

    3
    1 Votes
    3 Posts
    2k Views
    gstaviG

    Treating dot files as hidden is only a convention for shells and some other applications. There is nothing “hidden” about them as far as Linux file system or wine care. When I worked with NPP over wine I opened many dot files and files in dot directories without a problem.

    I wonder if it is a bug in the Explorer plugin where it treats dot files (and dot directories) as files with empty name and an extension which confuses it. This may explain the coloring issues. If you have a Windows system you can try creating a dot file there and check if it behaves differently than with wine.

    I am quite sure that if you just try to open the files from the ‘Open’ dialog you would not have a problem.

  • 0 Votes
    22 Posts
    2k Views
    Terry RT

    @W-den-Boer said in Find/remove duplicate multiple lines and keep the first occasions:

    But, bad news. It doesn’t do the same.

    Sorry to hear the macro failed to faithfully follow the steps I had outlined. At least with the steps you may be able to generate your own macro. I will suggest if doing so to select the very first position in the file between each major step using Ctrl-Home (I think thats the hotkey).

    Lately I’ve been seing what appears to be an anomaly where after a process has finished a word is highlighted. As this becomes a “selection” any subsequent process will likely ONLY work on that selection rather than the whole document.

    Terry

  • Translate regex to notepad++'s dialect and 'Reverse expression'

    11
    0 Votes
    11 Posts
    801 Views
    Alan KilbornA

    @litos81 said in Translate regex to notepad++'s dialect and 'Reverse expression':

    I have to click the ‘Replace All’ at least a couple of times because in some cases the expression seems to miss rules that should be excluded.

    if the expression was meant to be used with one click only I honestly don’t know how to fix it

    Sometimes, due to the nature of the data, this situation results.
    Also sometimes, the search/replace expressions can be rewritten to be a “one-click” solution, sometimes not.
    Often the complexity involved in such a rewrite is, well, extreme and “not worth it” – meaning not putting the time required to figure it out into it.

    But, just in case you thought it was some kind of “bug”…it’s not.

  • Tabs always open on the right?

    29
    0 Votes
    29 Posts
    3k Views
    appyfaceA

    Ah, you may be on to something. Thankfully, nothing is lost, it just didn’t open them. I’ll see what I can hunt up.

  • HTML shows as code in browser

    3
    0 Votes
    3 Posts
    167 Views
    AstralJokerA

    yep, I just figured out it had no termination , it was just a file. Thank you for the response tho !

  • only replace exact numbers

    14
    0 Votes
    14 Posts
    890 Views
    Alan KilbornA

    @Olivier-Thomas said in only replace exact numbers:

    In the IVONA voice-over for film subtitles
    I have over 6000 abbreviated commands.
    I did not notice that the IVONA lector did not keep up with reading the text.

    I’m not sure what this means.
    Do you care to explain a bit, if it is relevant?
    After 20 minutes, of course… :-)

  • Where are the display settings stored?

    3
    0 Votes
    3 Posts
    536 Views
    Alan KilbornA

    @PeterJones said in Where are the display settings stored?:

    {🛈 , ↗}

    Oooooh, nice!

  • Prevent sending dump report when NP++ crashes?

    2
    0 Votes
    2 Posts
    106 Views
    PeterJonesP

    @Claudia-Svenson ,

    Is this true?

    Not as far as I know.

  • Notepad++ and Mod360

    8
    0 Votes
    8 Posts
    308 Views
    Lorenzo AtomL

    @Alan-Kilborn
    I really do nothing because is true… i am able to speak 3 languages, but is true i use noteapd++ for something very very simple… i do not know anything about programming scripting or something else…
    Should be the same if i ask you to write down a poem in italian… from scratch… i think you got the point.

  • How to disable auto-open last files at next startup?

    2
    0 Votes
    2 Posts
    1k Views
    ArkadiuszMichalskiA

    https://npp-user-manual.org/docs/preferences/#backup

    ☐ Remember current session for next launch: the current session is the current list of open files. The next time you run Notepad++, it will open with that same list of files
  • 0 Votes
    8 Posts
    414 Views
    Aleksandr OkunevA

    I upgraded from version 5.x to the latest version (I wish the best of luck to HK people, and doom to evil commies), and the text selection is indeed exactly what I need and exactly as it is in MS Word.
    Thanks a lot, everyone, stay safe and have a great weekend.
    :^)

  • TextFX menu

    4
    0 Votes
    4 Posts
    331 Views
    M Andre Z EckenrodeM

    In case this information is ever useful to anyone else, I’ve noticed that TextFX on my Windows 10 machine is back to being its own menu, and no longer a sub-menu of Plugins. The only things I recall having changed since I had the menu trouble are that I’ve removed the plugin Pork2Sausage, and I’ve installed the new NPP v7.9.0. Not sure if either of those were factors, but maybe.

  • .ics file selection problem

    20
    0 Votes
    20 Posts
    2k Views
    Terry RT

    @guy038 said in .ics file selection problem:

    at beginning of my post are totally independent !

    Firstly my apologies. I got fixated on the concept of using a positive lookahead after looking at both of your solutions. For some reason later on a did mix them together and thinking there were 2 steps.

    Perhaps in my defence I’ve just come to realise my reasoning all the way through was that there would be extraneous lines between the END:VEVENT and BEGIN:VEVENT lines, that is, between the record sets. I’ve just googled a typical ics file and whilst that isn’t true there are additional lines before AND after (header and footer info) the sets we were identifying with the regexes. I’ve got a longish one and reduced the size so you can see what shows in the file.

    BEGIN:VCALENDAR PRODID:-//Google Inc//Google Calendar 70.9054//EN VERSION:2.0 CALSCALE:GREGORIAN METHOD:PUBLISH X-WR-CALNAME:ECML PKDD 2015 X-WR-TIMEZONE:Europe/Lisbon X-WR-CALDESC:The European Conference on Machine Learning and Principles and Practice of\nKnowledge Discovery in Databases (ECMLPKDD) will take place i n Porto\,\nPortugal\, from September 7th to 11th\, 2015 (http://www.ecmlpkd d2015.org).\n\nThis event is the leading European scientific event on machi ne learning and\ndata mining and builds upon a very successful series of 25 ECML and 18 PKDD\nconferences\, which have been jointly organized for the past 14 years. BEGIN:VTIMEZONE TZID:Europe/Lisbon X-LIC-LOCATION:Europe/Lisbon BEGIN:STANDARD TZOFFSETFROM:+0100 TZOFFSETTO:+0000 TZNAME:WET DTSTART:19701025T020000 RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU END:STANDARD BEGIN:DAYLIGHT TZOFFSETFROM:+0000 TZOFFSETTO:+0100 TZNAME:WEST DTSTART:19700329T010000 RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU END:DAYLIGHT END:VTIMEZONE BEGIN:VEVENT DTSTART:20180907T083000Z ... SUMMARY:Ex. Ep. Especial: IP/PROGI TRANSP:OPAQUE END:VEVENT BEGIN:VEVENT DTSTART;VALUE=DATE:20150803 ... SUMMARY:Workshops - Camera Ready TRANSP:TRANSPARENT END:VEVENT BEGIN:VEVENT DTSTART;VALUE=DATE:20150901 ... SUMMARY:Tutorials - Tutorials Material TRANSP:TRANSPARENT END:VEVENT END:VCALENDAR

    So although the OP never showed this I had made the assumption I couldn’t guarantee there weren’t other lines, nor did I think to ask.

    Thanks for critiquing my regexes. I had made a discovery and couldn’t quite believe I hadn’t considered it before. There have been lots of instances where I wanted to find a data set with a specific string using the lookahead and seeing it would continue through other sets UNTIL it found the correct one. The realisation I had the power to stop it upon a failed string search within the 1 data set was (dare I say it) overwhelming. It was like a light had suddenly switched on, learning a new ability with regexes.

    Cheers
    Terry

  • replace all values of a variable by half

    3
    0 Votes
    3 Posts
    825 Views
    CynicC

    thanks a ton!

  • Open text file and jump to the end

    10
    0 Votes
    10 Posts
    2k Views
    Michael VincentM

    @Alan-Kilborn said in Open text file and jump to the end:

    I don’t see it as “hacky”.

    I was hoping -1 (negative one) would be like “last array element” and bring me to the last line, but it didn’t work. I would think that would be “less hacky”.

    :-)

    Cheers.