• NPP will open file with one extension, but not another for same content

    5
    0 Votes
    5 Posts
    837 Views
    PeterJonesP

    @Paul-Hutson ,

    Yes, if you have either of those preference blanks set, then files of that type will always be opened as a session or workspace config XML, and Notepad++ won’t ever let you read/edit the raw data inside.

    See for reference Footnote 1 in “Sessions, Workspaces, and Projects” from npp-user-manual.org

  • 0 Votes
    15 Posts
    853 Views
    Alan KilbornA

    @Robin-Cruise said in replace / move numbers from one row to another with regular expression (in parentheses):

    by the way, on replace, what does it mean ?1(\3#)\2(\3#) (step by step, please) ?

    It’s fairly “easy”: :-)

    ?1 controls the rest of it: If capture group #1 was NOT matched, the replacement is “nothing” (aka deletion)

    If capture group #1 WAS matched, then the replacement consists of:

    opening parens: ( what was matched with capture group #3 a literal # closing parens: ) what was matched with capture group #2 opening parens: ( what was matched with capture group #3 a literal # closing parens: )
  • Systematic addition of text and the current file name into 320 files

    3
    0 Votes
    3 Posts
    297 Views
    mkupperM

    @Aaron-Mills - I use Windows command prompt’s built in scripting and GNU sed to do what you need. For example, start up command prompt and cd to the top directory of where your HTML files are. Run this command for /r %i in (*.htm) do @echo %~ni You will see a list with the file names for each *.htm files from the current directory on down.

    Let’s say you want to add a <title>file-name</title> element at the top of the <head> section of each file.

    for /r %i in (*.htm) do sed -i -r -e "s~(<head>)~\1\n<title>%~ni</title>~" "%i" del sed??????

    You asked for the file name. If you also want the file extension included in the title then use %~nxi
    If you want or need to use the full file path then it gets painful. While the full path is available using %~fi you can’t use it as-is in a regular expression as the path contains \ backslash characters. There are workarounds but that’s getting out of the scope of how to do this given my suggestion does not use Notepad++.

    The second line with del sed?????? removes the temporary files created by sed’s -i command line option which I used to do in-place editing of all the HTML files.

  • Excluding all of a Line when using Add / Replace

    8
    0 Votes
    8 Posts
    2k Views
    Steven WarrensS

    A BIG thanks to all for your help. It looks like I will be using several different combinations of suggestions offered here. Wish me luck and thanks again!!

  • Trouble with Windows XP

    7
    0 Votes
    7 Posts
    997 Views
    Juan Manuel Carrillo CamposJ

    Well, some time later I have reviewed and the versa 350 has pentium M processor, my very old device is also a Pentium III and got the same errors that ARI1972’s. I assume the VM are installed in a more recent hardware then they support the machine instructions that fail in P-III hardware. I use the version of NP++ that gives me the two exception errors but it works anyway. I’ll continue using my p-III until the device gets a “no-more” condition.

  • Search in folder (encoding)

    41
    0 Votes
    41 Posts
    4k Views
    EkopalypseE

    @gstavi said in Search in folder (encoding):

    If you will ever open regedit on a Hebrew Windows and see all the English content aligned right-to-left you would lose all respect to Microsoft.

    Maybe I should give it a try to finally be persuaded to switch to Linux :-D

  • Making fonts larger so old men can read

    4
    0 Votes
    4 Posts
    960 Views
    Alan KilbornA

    @Michael-DeLigny

    To be a bit more specific, these might be the settings you’ll want to experiment with:

    5dd3553b-ae2f-46a6-804c-3fec7b08f3f3-image.png

    Also: You can temporarily change the size of text by pointing your mouse at the window, holding the Ctrl key, and scrolling the mouse wheel in either direction.

    I don’t want to change the native format of the text I’m viewing

    This shows you have a basic misunderstanding about what text editing is and what a text editor does. @zanud clarifies nicely with:

    (None) of file types supported by Notepad++ have font-related properties. All font names, sizes, styles used by Notepad++ are for viewing only, and they are never stored in the files.

  • 'In Selection' grayed out in the find/replace box

    3
    1 Votes
    3 Posts
    1k Views
    PeterJonesP

    @mkupper ,

    I could be wrong, but this sounds like this recent discussion and also this earlier discussion. On those, I don’t know if anyone has bothered putting in an official github issue or not. But if what you describe is the same as those (especially the first I mentioned), and if there isn’t an existing issue in the repo, then maybe you would be willing to submit the report.

  • Why won't NPP open .txt files

    10
    0 Votes
    10 Posts
    8k Views
    EkopalypseE

    @wwwdeals said in Why won't NPP open .txt files:

    I’m surprised after 5 years this issue is still around.

    Unless there is a way to reproduce the cause, it is hard to fix I guess.

  • Delay in saving files after latest upgrade

    8
    0 Votes
    8 Posts
    1k Views
    pnedevP

    @Mario-Valle ,

    To avoid a potential data corruption in case of sudden power loss, Notepad++ since version 7.9.1 writes files directly to disk on save - no operating system RAM caching is used. This ensures that your files are really safely written to disk when you save them but writing to disk is slower than writing to RAM buffer.
    Now if your “disk” is slow in write speed then that might be the reason you are seeing such delay. By “disk” here I mean the non-volatile (persistent) media where your files are located.
    Mapped network drives, SD cards, USB drives are examples of medias (“disks”) that are relatively slow on write.

  • uploading files to nitrado

    4
    0 Votes
    4 Posts
    436 Views
    dinkumoilD

    @Kerry-Down

    I don’t know anything about nitrado, but i guess it’s a web hosting provider. Read the FAQ or the wiki of nitrado to learn how to configure SFTP or FTP access to your server. This forum is a support forum for Notepad++.

  • Notepad++ v 7.9.2 ignores "Print Line Number" preference

    3
  • repeating code with increment in time

    3
    0 Votes
    3 Posts
    212 Views
    Alan KilbornA

    I’m not usually one for guessing, but could be the OP wants the second occurrence of <o> to be turned into 1, the third turned into 2, etc. ?

    But yes, I agree, the problem could be stated better, and real text provided as a starting point for someone that wants to try working on it.

  • Locking file from other editing while opened in Notepad++

    5
    0 Votes
    5 Posts
    7k Views
    PeterJonesP

    @Alan-Kilborn ,

    Thanks for that clarification. Yes, the Set Read Only is a toggle (I guess it uses a ✔, not a ⦿). And Clear Read-Only Flag might be better phrased Clear OS Read-Only Flag.

  • Problem with Simplified Chinese in localization

    2
    0 Votes
    2 Posts
    187 Views
    astrosofistaA

    Hi @im-FL

    It’s a known issue and will be fixed on next release. Here is a workaround.

    Take care and have fun!

  • Comment left align

    2
    0 Votes
    2 Posts
    303 Views
    PeterJonesP

    @Jürgen-Nießen ,

    Sorry, auto-indent keeps comments at the same level of indentation as the code block the comment is a part of (because the auto-indentation is a feature coded at the editor level, whereas the marking of “comment” is coded at the lexer/syntax-highlighter level).

    That said, alternatives include:

    running code through an external “pretty print” utility – @Michael-Vincent gives examples of how to do that in an old post <edit>: in this old post (which was linked from the other; sorry.)</edit> using one of the scripting plugins (like PythonScript) to set up a hook to watch what you type, and if you type the comment indicator on a line that has only whitespace before that indicator, the script could un-indent for you. Similar things have been done recently, and if you need help, we could dig up links to those previous discussions, and/or someone might be willing to hack up a script engineer a solution for you, if it catches their fancy
  • Load stylers.xml failed

    3
    0 Votes
    3 Posts
    4k Views
    Paulius BrazauskasP

    @PeterJones said in Load stylers.xml failed:

    I am assuming your tomorrow.xml file is somehow corrupted. I suggest re-downloading it from https://raw.githubusercontent.com/chriskempson/tomorrow-theme/master/notepad%2B%2B/tomorrow.xml, with the steps:
    3. Download from https://raw.githubusercontent.com/chriskempson/tomorrow-theme/master/notepad%2B%2B/tomorrow.xml and save as %AppData%\Notepad++\themes\tomorrow.xml

    Thank you @PeterJones for helping me sort it out. I now know what the problem was for me.

    On the Github, I would right-click tommorow.xml file and save as and for some reason, that file would give me an error message that I posted. When I right-clicked on your link that had raw. in the beginning and saved as it worked fine. I use Google Chrome I don’t know if that has to do anything with it.

    So for the rest variations of the style instead of right-clicking on the tommorow.xml I clicked on it then selected RAW and then saved the page as and it worked for all the rest of the styles.

    Thank You

  • display only the delta

    5
    0 Votes
    5 Posts
    584 Views
    Magnus BerglundM

    @pnedev
    Ok, i’ll look into this.
    Thansk for your reply!
    //berglund

  • Strange characters while using column select

    3
    0 Votes
    3 Posts
    252 Views
    Pierre van der VenP

    @Alan-Kilborn That looks exactly like my issue. Thanks!

  • I wish to make C programs, what compiler can I use ?

    2
    0 Votes
    2 Posts
    180 Views
    EkopalypseE

    @Cloud-Stray

    Using npp on Linux to program in C is like using a fork to eat soup, I guess. The compilers installed depend on the operating system you are using.