• Opening files in Macintosh and i need in windows

    4
    0 Votes
    4 Posts
    8k Views
    John RinconJ

    @Scott-Sumner . Thanks Scott.

    September 2024 and this message is still very helpful. I had the same problem loading a file that usually loads without problems.

    This time, the problem was the one related with your diagnosis. The line terminators CRLF in the end of line of the records.

    Thanks for help the community.

  • Run C++ without compiling

    7
    0 Votes
    7 Posts
    684 Views
    rdipardoR

    The directory will change automatically after clicking on NppExec’s “Follow $(CURRENT_DIRECTORY)” option (which I thought was enabled by default – sorry):

    Screenshot 2024-09-10 121533.png

  • How can I setup that when I close NotePad++ all tabs will close?

    3
    0 Votes
    3 Posts
    193 Views
    H4P3RH

    @PeterJones thank you very much!

  • How to integrate Notepad++ and Microsoft Edge?

    5
    0 Votes
    5 Posts
    1k Views
    mkupperM

    @Thomas-S said in How to integrate Notepad++ and Microsoft Edge?:

    The solution works also with EDGE, you only have to create this entry in the registry:

    This either does not work on Windows 11, no longer works, or maybe I need to reboot. As the registry path was for IE I also did the same for Edge.

    Attempts to view the source of a web page in Edge still create a new Edge tab with the URL set to something like view-source:https://community.notepad-plus-plus.org/topic/23872/how-to-integrate-notepad-and-microsoft-edge/4

    I added these, first as a test to see of plain old Notepad.exe was launched. I had also tried the full path to Notepad++. No joy.

    Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Edge\View Source Editor\Editor Name] @="Notepad.exe" [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\View Source Editor\Editor Name] @="Notepad.exe"

    Google for site:answers.microsoft.com "View Source Editor" finds most of the answers are for Windows 7. This forum post on answers.microsoft.com is more generic as far as the Windows version goes and is presumably is the source of the information in @Thomas-Spost.

  • How to update title of plugin

    5
    0 Votes
    5 Posts
    273 Views
    SinghRajenMS

    @rdipardo

    The - separator is indeed fixed.

    Yes, it is fixed as we can see it here. Also, it seems we need to ensure tbData.pszAddInfo remains valid. If you want to change anything there, update the text on the original pointer.

    I feel, instead passing _hself to LPARAM, it should pass tTbData to NPPM_DMMUPDATEDISPINFO.

    Anyway, - is very minor stuff here. I am good with it. Thanks for the help on this.
    Cheers!

  • replacing all in line with veried numbers1

    4
    0 Votes
    4 Posts
    185 Views
    CoisesC

    @darkfang1989 said in replacing all in line with veried numbers1:

    @Mark-Olson

    <csv xpath=“/entitygroups/entitygroup[@name=‘sleeperHordeStageGS332’]/text()” delim=“\n” op=“add” >
    zombieFatHawaiianElite, .24
    zombieFemaleFatElite, .24
    zombieHazmatElite, .39
    zombieLumberjackElite, .39
    zombieSoldierElite, .39
    zombieLabElite, .58
    zombieSpiderElite, .58

    this is one of the blocks, all blocks having different numbers. i would like to know if there’s a way to change the “zombieSpiderElite, .58” number in each block despite the number being different in each one.

    You can use regular expression replacement to do that. From the main menu, select Search | Replace…, then enter:

    Find what: (?<=zombieSpiderElite,)\s*[.\d]+
    Replace with: .00 (note: there is a space before the period, but you can’t see it here)
    Wrap around: checked
    Search Mode: Regular expression

    and click the Replace All button.

  • 0 Votes
    7 Posts
    1k Views
    rdipardoR

    @Sylvia Ngari

    You could also try a third-party theme, like this one, which even includes a module attribute style — although it’s debatable how useful that feature really is:

    Python (Coral Reef theme)

  • How to set options for the current file?

    4
    0 Votes
    4 Posts
    305 Views
    Alan KilbornA

    @Coises

    Actually, I think any of those ideas could be made to work well.

  • Changing foreground color of strings

    3
    1 Votes
    3 Posts
    168 Views
    Karl PerryK

    @PeterJones Thank you! I’m not a web developer, I’m a software product manager so didn’t know about the embedded JavaScript.

    All fixed now.

  • HTML File changes background color mid-file

    4
    1 Votes
    4 Posts
    348 Views
    rdipardoR

    @PeterJones said in HTML File changes background color mid-file:

    the embedded-Javascript’s template-literal problem could very well be a bug (or non-implemented feature) of the Scintilla project’s Lexilla library’s LexHTML

    It’s a known issue that also affects PHP:

    https://github.com/notepad-plus-plus/notepad-plus-plus/issues/15228 https://github.com/notepad-plus-plus/notepad-plus-plus/issues/15368 https://github.com/notepad-plus-plus/notepad-plus-plus/issues/13946#issuecomment-2127806280

    A single lexer module provides highlighting for (X/HT)ML and a few embedded scripts, including PHP, JavaScript, VB and Python. It is many years behind the current JavaScript standard; it was simply never programmed for interpolated strings between backticks (a JS feature since ca. 2015).

  • Finding the Nth Word in a File

    6
    0 Votes
    6 Posts
    387 Views
    guy038G

    Hello, @kristopher-gill, @alan-kilborn and all,

    Personally, I would use the following regexes, having the same concept of Nth word :

    The regex \A\W*(?:\w+\W+){N-1}\K\w+ finds/marks the Nth word, of any file containing, at least, N words

    The regex (\A|\R\h*\R)\W*(?:\w+\W+){N-1}\K\w+ finds/marks the Nth word, of any paragrah containing, at least, N words

    The regex (?-s)^[^\w\r\n]*(?:\w+[^\w\r\n]+){N-1}\K\w+ finds/marks the Nth word, of any line containing, at least, N words

    Notes :

    The Regular expression radio button is selected

    The Wrap around option is checked

    In case of a Find Next search, move to beginning of file, first ( Ctrl + Home )

    Use, either, the Find Next, the Find All in Current Document, the Find All in All Opened Documents or the Mark All button

    Best Regards,

    guy038

  • Eliminate excess verbiage from audio transcript

    4
    1 Votes
    4 Posts
    343 Views
    guy038G

    Hello, @mark-d-worthen-psyd, @mark-olson and All,

    @mark-d-worthen-psyd, I didn’t answer before, as we were travelling back home. Holidays time is over :-(

    Just for information, I found out a method which needs two regex S/R only !

    Let’s take again the @mark-olson’s INPUT text :

    Dr Worthen: blah1 blah2 Dr Worthen: blah3 blah4 Dr Worthen: blah5 Dr Worthen: blah6 blah7 blah8 John Doe: zjk1 John Doe: zjk2 zjk3 zjk4 zjk5 John Doe: zjk6 pouy1 zjk8 John Doe: pouy2 Bob Quzenheim: vbg Dr Worthen: nvbm Bob Quzenheim: jrrke Bob Quzenheim: bnbnm

    With this first S/R, we simply add a line-break after each block of lines, beginning with the same string before the colon

    SEARCH (?-s)^(.+:).+\R(\1.+\R)*

    REPLACE $0\r\n

    Giving this temporary text :

    Dr Worthen: blah1 blah2 Dr Worthen: blah3 blah4 Dr Worthen: blah5 Dr Worthen: blah6 blah7 blah8 John Doe: zjk1 John Doe: zjk2 zjk3 zjk4 zjk5 John Doe: zjk6 pouy1 zjk8 John Doe: pouy2 Bob Quzenheim: vbg Dr Worthen: nvbm Bob Quzenheim: jrrke Bob Quzenheim: bnbnm

    Then, with the second S/R :

    It removes the line-break and the next zone till a colon, if this line-break do not begin the current line

    It removes any pure empty line, as well

    SEARCH (?<=.)\R.+:|^\R    OR    (?<!^)\R.+:|^\R

    REPLACE Leave EMPTY

    And we get our expected OUTPUT text :

    Dr Worthen: blah1 blah2 blah3 blah4 blah5 blah6 blah7 blah8 John Doe: zjk1 zjk2 zjk3 zjk4 zjk5 zjk6 pouy1 zjk8 pouy2 Bob Quzenheim: vbg Dr Worthen: nvbm Bob Quzenheim: jrrke bnbnm

    Best Regards,

    guy038

  • Clearing Marked Lines

    4
    0 Votes
    4 Posts
    996 Views
    Drake McClearyD

    @PeterJones

    This is exactly what I was looking for - Sorry for the vague description!

    Thanks for the help.

  • Notepad++ VS VSCode

    8
    0 Votes
    8 Posts
    5k Views
    Mark OlsonM

    To expand on Notepad++ (NPP) vs. VSCode as a general text editor, I tend to prefer VSCode for “find/replace in files” operations (it is much faster), but NPP has a more feature-rich regex engine, so there are many kinds of find/replace operations that are a lot easier in NPP. The macro system and ability to mark search results are also big time savers in NPP.

  • Best Plugins

    3
    0 Votes
    3 Posts
    349 Views
    Juan FeJ

    @PeterJones said in Best Plugins:

    I don’t know of any plugins that do anything specific to improve the C++ experience.

    QuickText or one of the other snippets programs for doing snippets of code to speed up coding.

    EditorConfig if you like having some file types indented with tabs and others with spaces (for example, using spaces in most source files, but using tabs in your makefile).

    And NppExec is great for doing a “build-then-run” sequence, which I think would be quite useful for C++ (you can search the forum for my posts that include NppExec and gcc for an example of how to set up such a build system.

    As a word of advice: this forum will work better for you if you ask specific, meaningful questions about how to use Notepad++ for a specific task (no, “coding c++” is not a specific enough task); and this isn’t the right place to ask general coding questions (“how do I do XXXX in C++?” is off topic in this forum). Your first two questions in the forum have been way too open ended (and you are giving off AI/bot-generated vibes, which doesn’t bode well for you, since moderators can ban accounts that even seem to be spewing AI nonsense.)

    Thanks, im new in this forum

  • 0 Votes
    4 Posts
    237 Views
    Ag JA

    Understood, thank you!

  • How to replace all numbered ID with a list of name in different languages

    5
    0 Votes
    5 Posts
    263 Views
    Farhan SyabibiF

    @Thomas-Knoefel
    I see, thanks i will try that later

  • 0 Votes
    8 Posts
    837 Views
    mkupperM

    @nkomarov said

    I wish this Shortcut Manager were open every time when someone presses Ctrl+T thrice or more in a row (obviously trying to open a new tab that way).

    That is an interesting idea though I’m not sure how a computer could best detect the difference between someone struggling to figure something out vs playing, exploring, seeing what looks better in the order of the lines, or taking advantage of the keyboard repeat to do something.

    Also, filtering for Ctrl+T works in the shortcut mapper. There is an irritation in that the filter results are only for the current tab meaning you need to flip through all the tabs using the mouse as there do not seem to be keyboard actions that let me flip through the tabs. Ideally, the filter thing would show the results for all tabs.

    Also, you need to type out the characters C t r l + T in the filter box and can’t do it via just a Ctrl+T on the keyboard to see what Ctrl+T is mapped to. At least the filter is not case sensitive.

  • Session File is either corrupted or not valid

    2
    0 Votes
    2 Posts
    151 Views
    PeterJonesP

    @Pim-Veld

    I am betting that weekmenu.html is an HTML file that you want to open, not a session file which contains a list of files to open in Notepad++'s XML-based session-file format.

    If you want to edit an HTML file named D:\Users\Pim\Documents\Websitemap KH\Kookhulp iPad\weekmenu.html, then you just run notepad++.exe "D:\Users\Pim\Documents\Websitemap KH\Kookhulp iPad\weekmenu.html"

    The -openSession command-line option needs to point to a specific session file (which is in Notepad++'s specific session-file XML syntax) which points to one or more files to open (you can create those files through File > Save Session…). It is for opening multiple files at once from a previously-saved session.

    Learn more about Notepad++'s session feature in the “Sessions” section of the Online User Manual

  • Insert Unicode characters not working - please help

    19
    0 Votes
    19 Posts
    6k Views
    Alan KilbornA

    @hfrmobile said in Insert Unicode characters not working - please help:

    that this setting was true per default on one machine, but false on others

    It would depend on what version was first installed on each of these machines.
    Recently, DirectWrite was defaulted to On for new installs, whereas on older versions, it was defaulted to Off.
    So yes, “true per default on one” and “false on others” is perfectly understandable.