• 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
    771 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
    198 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
    222 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
    159 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
    206 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
    419 Views
    rbjassoc66R

    @Ekopalypse Ok thank you :-)

  • User Defined Language as Default Language for New File

    2
    0 Votes
    2 Posts
    296 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
    240 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
    690 Views
    bunklungB

    Thanks for the information! This explains it all now.

  • printing of line numbers unstoppable

    2
    0 Votes
    2 Posts
    146 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
    201 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
    274 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.

  • Link on Html page

    2
    0 Votes
    2 Posts
    179 Views
    PeterJonesP

    @FANT-OME ,

    I would like to insert a link which, when I click on it, takes me to a sentence on my page

    If you mean, “I want to insert in my HTML source code a link which, when I click on it while viewing the file in my browser, takes me to a sentence on my page in the browser”, that’s an HTML question, and off-topic here (but I will give you the hint to search the web for documentation on how to create HTML anchors 🛈 and how to link to anchors 🛈 – that’s pretty basic HTML technology, and quite well documented)

    If you mean, "I want to insert a link which, when I click on it inside the Notepad++ editor window, takes me to a sentence on my page inside the Notepad++ editor window so that I can edit there, then I’m sorry to say, there is no built-in way of doing that. There are things you can do in a plugin (either purpose-written, or one of the generic scripting plugins like PythonScript). If you choose to go down that route, but need some pointers in the right direction, you can show what you’ve tried and we can give you some help.

  • NOTEPAD++ TEXT STAYS THE SAME WHEN VIEWED IN BROWSER

    4
    0 Votes
    4 Posts
    3k Views
    Newbie104N

    Thank you for insight guys! I guess I’ll be paying attention to what type of file I am saving Ha ha ha. Cheers!

  • Basic Language and Folding Questions

    12
    0 Votes
    12 Posts
    1k Views
    David LinD

    @PeterJones said in Basic Language and Folding Questions:

    @David-Lin said in Basic Language and Folding Questions:

    maybe indent-based code folding as an option could help

    I know the Python language lexer uses indent-based folding. But once again, that’s not transferrable to any other arbitrary lexer, and the UDL does not implement indent-based folding.

    Especially since, from my perspective, nesting /folding of code across all languages isn’t a property unique to a language the way keywords and specific functions are.

    From my perspective, it very much is language dependent. In Python, indenting is the only way of indicating blocks; in Perl, indentation only matters for the human reader, and blocks are defined by {}. In other languages, there are keywords like BEGIN/END or FOR/NEXT or IF/ELSE IF/ELSE/ENDIF which will define levels. Each lexer only codes in the level-determining code necessary for its language, because each lexer is completely separate. (And, once again, that’s not something that’s likely to change in Notepad++, because Notepad++ just passes along the lexers that were released with Scintilla.)

    Got it. thanks for the explanation - now i understand why my use case in SQL is different than the intent of the built-in code folding. For me, there are not generally large blocks of code between “level-determining code necessary for its language”, because in my use for preparing data tables, there is little purpose to long nested statements or loops, just moving around and rearranging data for other programs to eventually access and do analysis looping etc… occasionally there is a very long nested query. Procedures that might involve longer segments of code within loops are quite painful in SQL.

    For my use, I am separating large sections of code into my subjective segments that I would like to see nested, but these are not exactly “necessary” for the language.

  • remove string after a limiter

    6
    0 Votes
    6 Posts
    522 Views
    Alan KilbornA

    @guy038 said in remove string after a limiter:

    Alan beat me too. Moreover, with exactly the same regex :-)

    Haha, well does this show that some of us are learning?
    See, it can happen, people!

  • question about saving themes

    7
    0 Votes
    7 Posts
    491 Views
    PeterJonesP

    @mere-human , @Alan-Kilborn

    I believe what I had seen was pull #9339 commit 52e8c68 … though it looks like it’s not working yet.

    AFAIK, that is separate from wingup commit 9b193fa.