• replace " by "

    10
    0 Votes
    10 Posts
    810 Views
    Pouemes44P

    hello Guy

    Yes only these quotes (i dont succeed here to put in bold it give me these **)

    if i do a normal S/R it will change all the quotes of my html page

    is it possible with regex to S/R only inside a part of a page
    in my example inside these two blocks when notepad++ find them

    <div class=“texte”>
    </div>
    and
    <div class=“txt”>
    </div>

    if it is possible it will be great for me even for others S/R i can do

  • RegEX - How can I make automatic a new line (break) at x character

    12
    0 Votes
    12 Posts
    823 Views
    PeterJonesP

    @PeterJones said in RegEX - How can I make automatic a new line (break) at x character:

    Yes, the documentation that you were linked to could have described that to you

    specifically, the section https://npp-user-manual.org/docs/searching/#multiplying-operators.

  • Notepad++ 7.9.2(64bit) and Coldfusion

    2
    0 Votes
    2 Posts
    624 Views
    dinkumoilD

    @nnp729

    Have a look at >>> this thread <<<, the answers of @rddim and me are still valid.

  • Trying to avoid reload prompt

    2
    1 Votes
    2 Posts
    271 Views
    EkopalypseE

    Npp uses ReadDirectoryChangesW to get notified when a file has been modified. I don’t think you can catch this message.
    Reopening might be the only solution I guess.

  • html, php and css

    3
    0 Votes
    3 Posts
    2k Views
    PeterJonesP

    @Ana-Mendes ,

    Yum, cookies!

    You can use Notepad++ to type the valid HTML or PHP code that calls the appropriate CSS or included-PHP. The syntax for what those calls look like would be found on help sites for HTML, PHP, and/or CSS.

    This forum is about how to use the Notepad++ text editor – using its builtin and plugin features, finding the correct menu entry, etc. Specifics on coding (whether it’s HTML/PHP/CSS or C++ coding) aren’t on-topic for this forum, because we cannot be expected to be experts on every type of file that you might want to type.

    For example (and to explain my first statement), just because you’re typing your favorite chocolate chip cookie recipe using Notepad++ doesn’t mean that the members of this forum can tell you why they taste bitter. There might be someone here who knows, but it’s not the topic of the forum.

    If your question really is, “when I type code (insert example here) in Notepad++ and save the file as filename, my browser cannot read the file; but when I type the same code with microsoft windows’ builtin notepad app and save filename2”, then it’s on topic, because the difference is in how you are using Notepad++, not in what you are typing – if so, explain why you think it is on topic. But if you can type the same things in Notepad++ and in any other text editor, and you get the same end results, then the problem is obviously with what you typed, not with how you are using Notepad++ itself. Since this is a Notepad++ forum, then the answer to your question isn’t best found here.

  • How to create multiple files from a single text file ?

    5
    0 Votes
    5 Posts
    4k Views
    Robin CruiseR

    WORKS PERFECTLY, thanks !!

  • C - Check for unused variables and defines

    3
    0 Votes
    3 Posts
    834 Views
    Alan KilbornA

    @Robert-Lewis

    To elaborate on what Eko is meaning is that you would set up a compiler to run a compile on your source file, and produce output for you which would indicate your “unused variables” in an output window.

    Ideally the output window has clickable links which would take you to the point of the problem in your original source code.

    This would be a “manual run” kind of thing; if you were looking for something that would be an “as you type” solution, I think you’re out of luck.

    There is some good info in this vein to be found HERE.

  • Won't save

    3
    0 Votes
    3 Posts
    215 Views
    Alan KilbornA

    I suppose the OP isn’t coming back…but I believe this could have something to do with a bug in the SessionManager plugin, if that is used.

  • Mirror for npp-user-manual.org

    3
    0 Votes
    3 Posts
    232 Views
    snmnarumS

    @Ekopalypse Thanks! I didn’t think to check for it there.

  • Opening a sesson seems to disable Doc Switcher

    3
    0 Votes
    3 Posts
    172 Views
    PeterJonesP

    Sorry, just confirmed, the change log listed:

    Fix dockable panels not being displayed regression due to multi-instance mode activation. (Fix #9341 & #9363)

    According to #9491’s links, #9341’s fix is included in v7.9.3, and the comments on #9491 say that the fix will also fix the session / Document List Panel interaction.

  • I don't uderstand "folder Backup"...

    5
    0 Votes
    5 Posts
    2k Views
    Antonio RoscianoA

    (I have two laptops with Win 10. The XP is used for testing)

  • CSS Syntax Highlighting

    2
    0 Votes
    2 Posts
    230 Views
    Ds CreativeD

    Sorry, figured it out. There was a really old langs.xml file in my Users{username}\AppData\Roaming\Notepad++ folder that was being used. All sorted now.

  • backtick key on keyboard doing weird things when writing JS

    8
    1 Votes
    8 Posts
    459 Views
    rbjassoc66R

    @Ekopalypse Ok thank you :-)

  • User Defined Language as Default Language for New File

    2
    0 Votes
    2 Posts
    319 Views
    EkopalypseE

    @Rafael-Fontan

    Afaik there is no builtin way to assign new documents to an UDL.
    Solution are possible by using scripting language plugins.
    Let us know if you want to go this way.

  • 0 Votes
    2 Posts
    262 Views
    L

    Hi @Harold-Vogelaar

    Did you try to add the argument --profile-directory to your call to chrome? Something like: chrome --profile-directory=&quot;<your_profile_folder>&quot; &quot;$(FULL_CURRENT_PATH)&quot;

    You can find the actual name of your profile folder by opening Chrome and entering chrome://version in the search bar. The end of the string Profile Path is your profile folder (perhaps is something like “Profile 2” because they don’t usually match the actual name of your profile).

  • What is Style: COMMENT DOC KEYWORD ERROR?

    4
    0 Votes
    4 Posts
    727 Views
    bunklungB

    Thanks for the information! This explains it all now.

  • printing of line numbers unstoppable

    2
    0 Votes
    2 Posts
    158 Views
    PeterJonesP

    @Günter-Dierks ,

    Yes, you are right. v7.9.1 and earlier turned off line-number printing just fine, but v7.9.2 always prints the line numbers, ignoring that setting.

    It looks like Don already fixed it, so the next version (v7.9.3) should work again, once that gets released.

    Until then, you can either install v7.9.1, or just live with the line numbers in your printing.

  • Notepad ++ .txt association keeps reverting to Windows Notepad

    2
    0 Votes
    2 Posts
    1k Views
    PeterJonesP

    @Terry-Musser,

    Sorry that’s happening to you. Windows 10 is annoyingly difficult to get stable file associations in. The NPP developers do their best to set the right registry settings, but sometimes there is a buried entry that gets in the way.

    this recent discussion talks some about registry locations that might be interfering with the association attempts – especially my final post. That might give you some pointers where to look next.

  • Notepad and latexml

    2
    0 Votes
    2 Posts
    218 Views
    PeterJonesP

    @Klaus-Lang said in Notepad and latexml:

    Is notepad the culprit?

    A warning, you said “notepad” throughout your question. Notepad is a Microsoft application that ships with Windows OS. Notepad++ is a standalone open-source application that we discuss here. They are two separate applications, despite sharing some letters in the name. If you are really asking about the editor that ships with the Windows OS, then this forum is not the right place for help.

    I doubt that your text editor is the culprit in the above scenerio – firstly, because text editors (whether wimpy ones like MS Notepad, or great and powerful editors like Notepad++) are really good at editing text and asking Windows to save the file to disk. My guess is that your problem lies with your sequence of events, or things aren’t in the state you seem to think they are.

    If you are really using the Notepad++ editor, and you think that the culprit really is the Notepad++ editor, please more fully describe your sequence of events, being careful with the details (like not confusing Notepad with Notepad++) and the exact sequence of events.

  • Keep certain blocks of text

    2
    0 Votes
    2 Posts
    285 Views
    PeterJonesP

    @737simpilot ,

    No plugin, specifically. But I think your goal can be met with the regular expression searching (regex) and bookmarking built into Notepad++.

    It’s hard to tell exactly how bad your text has been mangled by the forum (use the </> button when making your post to make sure the text is treated as plain text, rather than being in forum markdown), which might influence the exact makeup of the regex. But my first guess for a solution, assuming it’s always exactly 8 lines in the match, and that the port always has to say exacty 53/tcp open cwmp on the eighth line.

    Search > Mark FIND WHAT = ^Nmap scan report for(.*\R){7}^53/tcp open cwmp start of line, the literal text Nmap scan report for, followed by 7 instances of anything up to the newline sequence, followed by exactly 53/tcp open cwmp Search Mode = regular expression enable ☑ Bookmark Line click Clear all marks if you already have previous bookmarks that you want to get rid of click Mark All

    What you do next depends on what you want to do with the matching data.

    If you want all the matching data in the Windows clipboard to paste somewhere else, Copy Marked Text in the dialog, and paste it wherever you want If you want to delete everything that’s not a matching section, then go to the Search menu, then the Bookmark > submenu, and Remove Unbookmarked Lines That **Search > Bookmark > ** submenu has many other options for manipulating the bookmarked

    For more info on bookmarking, see https://npp-user-manual.org/docs/searching/#highlighting-and-bookmarking

    Example Data (using the formatting hint from above, also mentioned in the footnote at the bottom):

    Nmap scan report for such*such.net (12.3.4) Host is up (0.14s latency). PORT STATE SERVICE 53/tcp filtered cwmp Nmap scan report for such&such.com (4.3.2.1) Host is up (0.14s latency). PORT STATE SERVICE 53/tcp open cwmp Nmap scan report for such*such.net (12.3.4) Host is up (0.14s latency). PORT STATE SERVICE 53/tcp filtered cwmp Nmap scan report for such&such.com (4.3.2.1) Host is up (0.14s latency). PORT STATE SERVICE 53/tcp closed so don't match Nmap scan report for such*such.net (12.3.4) Host is up (0.14s latency). PORT STATE SERVICE 53/tcp filtered cwmp Nmap scan report for such&such.com (4.3.2.1) Host is up (0.14s latency). PORT STATE SERVICE 53/tcp open cwmp

    In this example, I believe you want the first 8 lines and the last 8 lines to match, but not the center 8 lines.
    For me, it does match:
    a660329c-6fae-4a36-aa2d-6bdceab16033-image.png

    If this isn’t sufficient for you, please follow the advice below and clarify.

    ----

    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.