• Deploy with Command for Translation

    2
    0 Votes
    2 Posts
    322 Views
    EkopalypseE

    @Bernhard-Iceman

    Afaik it is the nativeLang.xml which does get its content replaced with the chosen one.

  • Indent lines missing

    3
    0 Votes
    3 Posts
    440 Views
    Antonio RoscianoA

    Thank you Mr. Alan, I didn’t know.

  • Macro ignores Python script & erratic Shortcut Mapper

    11
    0 Votes
    11 Posts
    874 Views
    Peter GreistorferP

    @Alan-Kilborn Thank you too … now it’s clear ;-)

  • Replace 0 with 0.000

    3
    0 Votes
    3 Posts
    904 Views
    Lakhwinder SinghL

    @PeterJones Thanks, it worked and solved my issue.
    It really saved my time.

  • Page won't load in a browser

    2
    -1 Votes
    2 Posts
    276 Views
    Alan KilbornA

    @Diana

    This forum is about Notepad++, so you’ve asked your question in the wrong place to get help of the type of problem you’ve asked about.

  • How to get correct syntax highlighting for Python 3 formatted strings

    9
    0 Votes
    9 Posts
    1k Views
    J VickroyJ

    @PeterJones
    Thanks again Peter for your followup post with the link on how to repair for non-default themes! This is great and I learned something in the process!

  • 0 Votes
    3 Posts
    497 Views
    EkopalypseE

    @carlos-navarro

    One way to get around this limitation is to use something like my EnhanceAnyLexer.py script.

  • 0 Votes
    7 Posts
    9k Views
    PeterJonesP

    @Vasile-Caraus ,

    Here are some takeaways from this problem. Hopefully, you will remember these, and act accordingly in the future:

    The documentation at https://npp-user-manual.org/docs/searching/ describes all the proper syntax for searching and replacements. In it, you would find the list of \-escapes that are allowed in the REPLACE WITH field (https://npp-user-manual.org/docs/searching/#substitution-escape-sequences). You will notice that the \s and \S are not valid sequences in that field, as @guy038 tried to explain. If you want to search for text that contains spaces, the space character or escape sequence must go in the FIND WHAT, not in the REPLACE WITH The quality of answers you receive is directly proportional to the quality of the question you ask

    Other advice: you have been pointed to the documentation many times over your 5+ years of visiting this forum. You should take advantage of that resource, and read and study that document.

    ----

    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.

  • Moving Background

    5
    -1 Votes
    5 Posts
    917 Views
    Terry RT

    @Kacper-Kantarowski said in Moving Background:

    I would like to make my background move as the page scrolls.

    @PeterJones @Alan-Kilborn I think he’s actually referring to a webpage, possibly created within NPP and using NPP to open it in his web browser of choice. So he’s asking the question here about html code, how to change his code to fit his need.

    @Kacper-Kantarowski this is a forum about Notepad++, not html coding. You’d be better off asking the coding question in a html forum.

    Terry

  • keep specific urls from text file and delete rest.

    2
    0 Votes
    2 Posts
    216 Views
    Alan KilbornA

    @Ravi-K

    You probably should first refer to previous postings you’ve made here on very similar subjects.

  • 32/64 bit update Notepad++ through Portable app

    2
    0 Votes
    2 Posts
    369 Views
    EkopalypseE

    @Teddy-Quentin-Chung

    How exactly do you install and update PORTABLE npp versions?
    Do you use the ones from PortableApps.com?
    If so, they build the package and you need to ask the question there.

  • How to create syntax highlighting [video tutorial]

    2
    1 Votes
    2 Posts
    546 Views
    EkopalypseE

    @iwanPlays

    If you want to define a themaware UDL, you just have to click with the right mouse button on the color rectangle, so that you see a hatched rectangle.
    To color digits inside {} differently than normal ones
    use delimiters.

  • Python colored syntax?

    2
    0 Votes
    2 Posts
    4k Views
    mere-humanM

    Ensure you have the language set correctly:
    67549ce2-2ac7-44bd-9504-581f67b52c4e-image.png
    It is usually done automatically if the extension is standard (e.g. *.py).

    As for the background colors, there are a lot of predefined themes for that.
    Take a look at this in menu: Settings > Style Configurator > Theme - Obsidian

  • sample config

    24
    0 Votes
    24 Posts
    10k Views
    Alan KilbornA

    @guy038 said in sample config:

    After ticking this option, in the Preferences dialog and closing N++, the value of the dlgAlwaysVisible attribute is still no in the config.xml file !

    Hmm. I would think that dlgAlwaysVisible would get erased from the FindHistory section at the N++ release that moves control to the Searching section of config.xml; example of that:

    <GUIConfig name="Searching" monospacedFontFindDlg="yes" stopFillingFindField="no" findDlgAlwaysVisible="yes" confirmReplaceInAllOpenDocs="yes" />

    Notice the name is now slightly different, too: findDlgAlwaysVisible

    But…I really don’t know how such “obsolete” items are handled.

    So , no need to create any issue

    If obsolete settings are supposed to be removed, maybe THAT’S an issue you could open!

  • batch execution

    4
    0 Votes
    4 Posts
    1k Views
    Manfred HumphriesM

    I used to write batch files and coldfusin apps, but that was long ago and far from my present mental haze… Thanks, but it looks like I’m going to load and save each file.

  • Run C++ Codes in npp

    2
    0 Votes
    2 Posts
    274 Views
    PeterJonesP

    @Ali-Abbaspour ,

    Natively, you cannot.

    Fortunately for you, this is a FAQ, “How do I use Notepad++ to Compile my Source Code”, where the example in there actually shows using the gcc compiler to compile c source code and run the resulting executable, so I believe it matches what you want to do and should be easily adapted to your compiler needs.

  • Regex help with replacement

    13
    1 Votes
    13 Posts
    817 Views
    A

    @PeterJones awesome thank you so much! Learning regex is a long marathon lol

  • 0 Votes
    9 Posts
    1k Views
    PeterJonesP

    @guy038 ,

    I don’t think that’s necessary. There’s probably enough in my post to re-create the original problem for anyone who was that curious. And I’ve left my reply public in case @jbenh ever comes back and wants the solution.

  • Python script plugin console to open multiple files

    19
    1 Votes
    19 Posts
    2k Views
    PeterJonesP

    @June-Wang said in Python script plugin console to open multiple files:

    The software I used to output my current data is unable to output unicode data

    Unicode was invented in 1991 , and UTF-8 encoding was invented in 1992 . Software developers have had 30 years to adapt. And most software I’ve seen from the last decade or so knows how to use UTF-8. Any software still under active development should have figured out UTF-8 by now; if they haven’t, and if you (or a company you work for) are a paying customer, I would start making frequent requests to find out what their schedule for upgrading from pre-1990’s technology is.

    That said, I’m glad that Notepad++ (plus plugins) is able to help you overcome this extreme deficiency in output ability of this other software. Good luck.

  • Слишком большой файл

    8
    0 Votes
    8 Posts
    6k Views
    Игорь ЗавалейИ

    Спасибо всем!