• Run C++ within notepad++

    12
    0 Votes
    12 Posts
    15k Views
    PeterJonesP

    @william-busigo ,

    This discussion was relying on the fact that everyone involved had the NppExec plugin installed. Everything that has been said in this discussion assumed that as a given.

    I think before asking any more questions, you need to read and understand our FAQ on “how do I use Notepad++ to compile my source code”.

  • Plugin Admin bug

    2
    2 Votes
    2 Posts
    182 Views
    Michael VincentM

    @Michael-Vincent

    See https://community.notepad-plus-plus.org/topic/21853/notepad-8-1-5-rc2/3

    Using the RC thread first before opening a Notepad++ issue. I narrowed down to the particular commit which does change the pluginsAdmin.cpp file.

    Cheers.

  • Add some number like :1234 after the Name

    3
    0 Votes
    3 Posts
    288 Views
    PeterJonesP

    @Joseph-Gaitan ,

    FIND = Name
    REPLACE = Name:1234

    I’m sure that’s not what you actually wanted, but it’s the best guess possible given the limited information in your post. To get a better answer, you are going to have to supply example data, using the tools in the toolbar and the preview window to make sure you’re accurately communicating your data to us. Really, I suggest reading and understanding the generic help info below before responding.

    ----

    Do you want regex search/replace help? Then please be patient and polite, show some effort, and be willing to learn; answer questions and requests for clarification that are made of you. All example text should be marked as literal text using the </> toolbar button or manual Markdown syntax. To make regex in red (and so they keep their special characters like *), use backticks, like `^.*?blah.*?\z`. Screenshots can be pasted from the clipboard to your post using Ctrl+V to show graphical items, but any text should be included as literal text in your post so we can easily copy/paste your data. Show the data you have and the text you want to get from that data; include examples of things that should match and be transformed, and things that don’t match and should be left alone; show edge cases and make sure you examples are as varied as your real data. Show the regex you already tried, and why you thought it should work; tell us what’s wrong with what you do get. Read the official NPP Searching / Regex docs and the forum’s Regular Expression FAQ. If you follow these guidelines, you’re much more likely to get helpful replies that solve your problem in the shortest number of tries.

  • How can I make Notepad++open ALL notepad files

    2
    0 Votes
    2 Posts
    2k Views
    PeterJonesP

    @Davie-Green ,

    Windows has lots of different ways of setting file associations, and sometimes to have to work those in concert to make it all work together. Notepad++'s Settings > Preferences > File Associations uses the old registry entries that Windows 10 technically still accepts… but if any of Windows 10’s other methods of defining associations are also set, those will take precedence. It’s really a Windows problem, because Microsoft has defined too many conflicting ways of setting file associations. But it’s been talked about a lot in this forum, so you can search the forum for posts about “registry” and “regedit” and “association” for more ideas of things to try.

    When you install Notepad++, it usually creates a registry key that is always available in the Right Click menu for any file type, which is “Edit with Notepad++” or similar, so even if you cannot get double-click to work right, you might be able to access it that way. If not, some of my posts that will show up in the forum search will show my registry entry that I add for definding “Edit with Notepad++” as an option on all file types.

  • How to locate text separators and replace them?

    21
    0 Votes
    21 Posts
    11k Views
    Patrick ChatelleP

    This seemed like it should be top of list, but here goes

    I need to replace comma “,” with a pipe “|”, but only if a comma immediately follow a 2 digit decimal.

    So
    ,49.30,49.30,.00,.00,.00,
    needs to be
    |49.30|49.30|.00|.00|.00|

    notepad++ (Regular expression radio button clicked)
    in the “Find what:” box -> (?:[.\d\d]{0},)
    in the “Replace with:” box -> |

    add “\d” for more decimals.

  • Display Menubar when hidden

    3
    0 Votes
    3 Posts
    541 Views
    Neil MullerN

    Many thanks

  • Drop-Shadow Filter on Blockquote

    2
    0 Votes
    2 Posts
    227 Views
    PeterJonesP

    @Yahnah-Factor ,

    See the FAQ

  • How to search for words that do **not contain** the character: '

    5
    0 Votes
    5 Posts
    3k Views
    astrosofistaA

    @guy038, All:

    I usually try to understand OP’s messages as literally as possible, unless it is very obvious that there is some mistake, such as the single quotation mark. In this case I read words and thought they were single words, unconnected to each other, but not necessarily on separate lines. Hence the regular expression I posted.

    Nor did it cross my mind that there could be hyphenated compound words, since the posted sample did not include them.

    However, the scenario that you propose is entirely possible and in fact your two regular expressions are simpler than mine. If I were OP, I would choose one of them.

    Have a nice weekend

  • Macro problem (replace text)

    6
    0 Votes
    6 Posts
    394 Views
    Юрий МарковЮ

    @Alan-Kilborn said in Macro problem (replace text):

    @Юрий-Марков said in Macro problem (replace text):

    apparently some new setting has appeared

    Software is continually being enhanced

    and this request does not appear if you use the replacement window, not a macro.

    Incorrect, it appears either way, any time you use Replace All in All Opened Documents (unless you change the Preference setting that was shown for it)

    It’s just that I haven’t updated Notepad ++ for a very long time))) Purely by chance I saw that a dark theme appeared, I have been dreaming about it for 3 years, everything has a dark theme for a long time, even in Total Commander it appeared.

  • Looking for a plugin that is able to search for exceptions

    9
    0 Votes
    9 Posts
    716 Views
    Giovanni GozziG

    How can I now check something after? is it correct like this?
    this is the right expression “close_when_inactive”:true,“ffmpeg_options”:
    ("close_when_inactive":true?=)[^,"ff]
    Can’t see results, thanks

  • How to select and copy lines in notepad++ ?.

    3
    0 Votes
    3 Posts
    339 Views
    Alex Sunny 0A

    @Alex-Sunny-0 said in How to select and copy lines in notepad++ ?.:

    Hello,

    I want to select a particular region/ lines say from 1000 to 5000 and copy them to another file. I can go to these lines using begin/end option, but how to select and copy these lines? Ometv chatroulette omegle bazoocam

    thanks
    alexsunny

    thanks for the awesome information.

  • What is the blue dot in left margin

    3
    0 Votes
    3 Posts
    2k Views
    Alan KilbornA

    For my taste, the line number margin and the bookmark margin are not differentiated by color well enough. Sure, if you squint at it, you can tell that there is a difference, but I think often people think of this as only a single margin, containing the line number, and thus are confused when a “blue ball” marker also appears here.

    Here’s what the right-clicked bookmark margin looks like, for completeness:

    1a21c85a-8678-461c-a8fe-bc9e7e49865e-image.png

    BTW, Toggle Bookmark on this menu is fairly superfluous, as no one would right-click and choose that from the menu, when a simple left-click in the margin would toggle a bookmark on the current line. I think the N++ designers just left this in because it was easiest just to duplicate the Search (menu) > Bookmark (submenu), shown here to be the same:

    ee70d56b-a8f2-4c08-b7a1-a37b2da6001d-image.png

  • 0 Votes
    2 Posts
    2k Views
    PeterJonesP

    @Russell-Rolfe ,

    Make sure that you have proper write-permissions in the C:\Program Files\Notepad++\ and C:\Program Files\Notepad++\functionList\ directories. You might have to run the installer in Run as Administrator mode to get Windows to give you those permissions, or use Windows Explorer’s right click Properties > Security > Edit (or Advanced) to give your normal user permission on those directories.

    Also, make sure that when you run the installer, you don’t have another instance of Notepad++ running, and that no other application has c.xml open. (To make sure this is true, you may want to reboot before running the installer.)

  • My plugin crashes because of a C# NuGet

    12
    0 Votes
    12 Posts
    806 Views
    Nick BrownN

    From the Home page of NotepadPlusPlusPluginPack.Net

    References The prefered way to use dependencies is via References, in the best-case through NuGet. Via NuGet you are able to add packages to your project, certain versions etc. through a global repository. Package information is stored in your project and other developers can gather the same, correct versions through the global repository without committing masses of data. To use included references in your compiled plugin you need to merge these into the .dll as Notepad++ is not fond of locating non-plugin .dll's in its folder. ILMerge was developed for the purpose of merging managed libraries. It can be installed via NuGet and used manually. The best way is to install MSBuild.ILMerge.Task via NuGet in your plugin project. It will include ILMerge as dependency and attach itself to your Visual Studio build process. By that, with every build you compile a merged plugin .dll including all your custom references to use. ILMerge will add configuration files to your project: ILMerge.props and ILMergeOrder.txt. Refer to the official homepage for more information about the configuration possibilities. Note: To use ILMerge in your plugin you have to change the Target Framework of your plugin project to at least .NET Framework 4.0 (CP). ILMerge can work with .NET 3.5 and below, but requires additional configuration and adaptation. If you do not required the extreme backwards compatibility, upgrade the .NET Framework target as quick and easy solution.
  • Help needed with column mode editing

    12
    0 Votes
    12 Posts
    9k Views
    Alan KilbornA

    @vij4yd

    I know its frowned upon to reply to old threads

    I don’t know that this is true, at least here…

    I had to signup just to comment this

    Yes, you did. Is that a problem?

    If the alt key on the left side of your keyboard does not work, try with the one on the right

    I’ve never heard of this making a difference, but what does make a difference, and isn’t mentioned in this thread, is using the dedicated arrow keys (works) versus using the shared arrow keys on the numeric keypad (doesn’t work). So…if any future readers are trying to get column selecting to work with the numeric keypad arrows, it isn’t going to.

  • -nosession Switch on CmdLine Used, session still loaded

    4
    0 Votes
    4 Posts
    396 Views
    Alan KilbornA

    @Dennis-Bareis said in -nosession Switch on CmdLine Used, session still loaded:

    I may have downloaded plugins that I don’t remember.

    Well, of course there is any easy way to show yourself (and others) your plugins. Looking at your Plugins menu is one way, example:

    5e04d692-296a-4959-bcb2-2a9ac0b9f092-image.png

    And going to the ? menu and choosing Debug Info is another way:

    088eb0ee-beba-46a6-9cb0-a571be85ed23-image.png

    It will give you something that looks like this:

    Imgur

  • No C++ in language menu

    2
    0 Votes
    2 Posts
    242 Views
    PeterJonesP

    @queenidog1 ,

    Your config files were corrupted. Most likely, exiting Notepad++, renaming %AppData%\Notepad++ 🛈 (ie, open Windows Explorer, type%AppData% with the percent signs in the Explorer navigation bar, and renaming Notepad++ to Notepad++.bak), and re-starting Notepad++ will regenerate your config files to the default, and C++ should be back in the list.

    17a41278-f21d-4e36-8e9d-fc140f964535-image.png

  • Indentation from copy and paste of json not preserved

    2
    0 Votes
    2 Posts
    313 Views
    PeterJonesP

    @Tina-Davis ,

    I have gone through every setting on the ‘old’ install and matched it to the new.

    Have you compared the ?-menu’s Debug Info on the two? Maybe there’s a different plugin on the old that you don’t have on the new (or different setting in one of those plugins)

    Have you done a detailed check of the Settings > Preferences > Language dialog’s Tab Settings section? Each different language has a different setting. The important ones for JSON are [Default] and json
    e63be1fb-9670-4ee7-b5ed-e2f0b0dd53e0-image.png
    39bedec9-45a1-4f12-a563-0617f9ed418f-image.png

    Also, did you select the main menu > Language > J > JSON before pasting? That would affect the tab options while editing.

    Though really, a paste should preserve the existing indentation, no matter what type of file it’s pasting into, and no matter what Tab settings are defined. So my best guess is still a plugin.

  • Jquery will not work in notepad++

    7
    0 Votes
    7 Posts
    605 Views
    Michael VincentM

    @Spencer-Halstead said in Jquery will not work in notepad++:

    Oh, I am a bit confused, because usually it shows the result when I view it in chrome. I got a clock to

    As @Alan-Kilborn says, this is not really a Notepad++ question. Did you try Google?

    Cheers.

  • Replace a specific word to reinsert the word one character before

    4
    0 Votes
    4 Posts
    219 Views
    Josef MörtlJ

    Hey guys … sooo fast … you guys are fantastic … both solutions worked perfectly … thousand thanks from bavaria