• 0 Votes
    2 Posts
    425 Views
    PeterJonesP

    @Gordon-Gordonplex said in Make indentation and cursor position like other tsxt editors:

    know what setting should be changed and what it should be set to to fix it

    It’s not a problem, it’s a feature. Just a feature that doesn’t currently help you. Which is why “there are so many settings”

    The Settings > Preferences > Auto-Completion > ☑ Auto-Indent checkbox controls this. It defaults on, and it sounds like you want it off.

    There are so many settings (both Preferences and Style Configurator) that I can’t figure out which one might help

    Did you try going to the preferences page in the User Manual and search for the word indent? There are exactly 9 matches right now, one third of which are talking about the setting you need. It would have taken less than 5 minutes of your time to follow the ?-menu’s Notepad++ Online User Manual link, then see that there’s a page on preferences, then search for indent and read the three sections that show up – and you would have had your answer in the second of those three sections.

    I think it thinks I’m writing Fortran or something.

    Does it say “Fortran” or similar on the lower-left of your Status Bar?
    a55bb9fb-dc1f-4ac0-8865-f72e1faefdbc-image.png
    Or if your Status Bar is hidden, or too narrow to show the language name, what does the Language menu indicate?
    Or did you just say “Fortran” because you assumed it must be treating it as some sort of programming language, and “Fortran” is the first that came to your mind. (BTW: congratulations if “Fortran” is the first programming language that comes to your mind; most people would have said “Python” or some plebian “modern” language, not something as noble as “Fortran”. :-) )

    If your text files have non .txt extensions, it might be an extension that Notepad++ associates with another language. If that’s the case, let us know, and we can explain how to get that extension to automatically be Normal Text instead of Fortran (or whatever it actually is).

  • Script for better counting

    1
    5 Votes
    1 Posts
    443 Views
    No one has replied
  • Regular formulas

    1
    0 Votes
    1 Posts
    186 Views
    No one has replied
  • Notepad++ batch is no longer showing up on the language pulldown

    3
    0 Votes
    3 Posts
    237 Views
    PeterJonesP

    @Robert-Maarschalkerweerd ,

    Notepad++ batch is no longer showing up on the language pulldown

    Most likely, either your langs.xml has been corrupted (and given your text file about is talking about editing langs.xml, that is highly likely), or you have used Settings > Preferences > Language and moved Batch into Disabled Items, like:
    7057f840-8606-4a9c-a25c-6036987a3dc1-image.png

    If the latter is the case, click on Batch in that list, then click the <– button to put it back into your Language Menu

  • Search for a setting by its name

    5
    1 Votes
    5 Posts
    534 Views
    fml2F

    @Mark-Olson Thank you! The plugin does indeed accomplish what I needed, although in a bit other way than I thought.

  • difference between file => save as and save a copy as.

    4
    0 Votes
    4 Posts
    8k Views
    Alan KilbornA

    @PeterJones said in difference between file => save as and save a copy as.:

    because I wanted to save the current state of the file as a backup under a new name

    That’s about the only useful use for it.
    The way I use it more often though, is to keep working with both files.
    Thus, it becomes a multistep procedure for me. I have to Save a Copy As, and then File > Open the other file.
    This annoyed me so much at one point that I wrote a script (or someone else did and I just started using it) that does it in one step.

  • 0 Votes
    9 Posts
    782 Views
    guy038G

    Hello, @mkupper and All,

    Refer to the this post in order to correctly use the free-spacing mode :

    https://community.notepad-plus-plus.org/post/61100

    IMPORTANT :

    Multi-lines free-spacing regexes, like, for example :

    (?x-i) ^ \x20 \x20 abc # String 'abc' with LEADING spaceq | # or ^ \x20 \x20 def # String 'def' with LEADING spaces

    Works correctly, ONLY IF you click on :

    The Find Next or the Count button of the Find dialog

    The Replace or the Replace All button of the Replace dialog

    The Mark All button of the Mark dialog

    It will fail if you click on :

    The Find All in Current document button, of the Find diaog

    The Find All in All Opened Documents button, of the Find dialog

    The Find All button, of the Find in Files dialog

    The Find All button, of the Find in Projects dialog

    In addition, it wrongly switches the search mode to the Extended mode

    Instead, when using these buttons, you’ll have to use, either :

    A free-spacing regex, on a single line, ONLY, as, for example, the regex (?x-i) ^ \x20 \x20 abc | ^ \x20 \x20 def

    The simple regex (?-i)^\x20\x20abc|^\x20\x20def, with all text attached

    Refer to my GitHub issue :

    https://github.com/notepad-plus-plus/notepad-plus-plus/issues/12673

    Best Regards,

    guy038

  • Trying to remove Line XXXXXX text in new document

    4
    1 Votes
    4 Posts
    32k Views
    Alan KilbornA

    @Mark-Olson

    I don’t know from the OP’s OP that his problem was related to the size of files he works with; I mean, he did hint at working with large files but the problem experienced itself didn’t seem related.

    Anyways, good to know about your plugin…

  • Problems with Math FAQ's Columns++ entry

    9
    0 Votes
    9 Posts
    693 Views
    CoisesC

    I said in Problems with Math FAQ's Columns++ entry:

    Beware of using a capture group like $1 immediately followed by a (?=…) substitution; at present, this does not work as expected. Instead, write the capture group as ${1} to avoid unintended results.

    This is fixed in version 0.7.3-alpha, so there is no further need for this warning.

  • Export settings?

    3
    0 Votes
    3 Posts
    4k Views
    m rM

    I moved contextMenu.xml, shortcuts.xml, langs.xml, stylers.xml, and config.xml to the current installation folder.

    Seems ok. Anything else?

  • Hearts Should Be Shown In Color

    5
    0 Votes
    5 Posts
    376 Views
    Alan KilbornA

    @mkupper

    I was hinting that as the Find what box data is tightly related to data in the editing window of Notepad++, perhaps the Find what box should also be a Scintilla control.

  • CSS comments should be in GREEN

    8
    1 Votes
    8 Posts
    2k Views
    rdipardoR

    @Gulshan-Negi-0 said in CSS comments should be in GREEN:

    Well, in my opinion and knowledge, the comment color of CSS is customizable, which means you can change the color of CSS comments.

    This topic is about inline CSS between <style>...</style> tags in HTML documents. You are talking about standalone style sheets with the *.css extension.

    To demonstrate that you cannot set the style of inline CSS in HTML files, you can try the following:

    Save this markup as index.html: <html> <style type="text/css"> /* comment */ </style> </html> Open index.html in any published version of Notepad++ Go to Settings > Style Configurator Select “Language: CSS” Select “Style: Comment” Change the style and save Observe that nothing happens

    html-with-inline-style-npp.8.5.7-002.png

    Now select CSS from the language menu at Language > C > CSS, and observe that CSS comments are styled as specified in Style Configurator:

    style-sheet-npp.8.5.7-002.png

  • Draconian ShellExecute Error Code 2

    2
    0 Votes
    2 Posts
    304 Views
    PeterJonesP

    @Brad-F said in Draconian ShellExecute Error Code 2:

    And am looking at this within my shortcuts.xml file.
    Could someone tell if it looks right? Does Shift=“no” matter? Otherwise I see nothing.

    The Shift="no" means that the keycode 71 (G) is not shifted. So Ctrl="yes" Alt="yes" Shift="no" Key="71" means Ctrl+Alt+G whereas Ctrl="yes" Alt="yes" Shift="yes" Key="71" would have meant Ctrl+Alt+Shift+G.

    <Command name="Chrome" Ctrl="yes" Alt="yes" Shift="no" Key="71">&quot;C:\Program Files\Google\Chrome\Application\chrome.exe&quot;&quot; $(FULL_CURRENT_PATH)&quot;</Command> <Command name="FF" Ctrl="yes" Alt="yes" Shift="no" Key="70">&quot;C:\Program Files\Mozilla Firefox\firefox.exe&quot;&quot; $(FULL_CURRENT_PATH)&quot;</Command>

    The &quot's seem to be on the wrong side of the space. When running the command, you want the equivalent of "path\chrome.exe" "$(FULL_CURRENT_PATH)" (quote space quote), but you have the equivalent of "path\chrome.exe"" $(FULL_CURRENT_PATH)" (quote quote space) – so there is no space between the executable and the name of the file, and the file’s path is being interpreted as starting with a space. My guess is that if you fix it to the following, it will work:

    <Command name="Chrome" Ctrl="yes" Alt="yes" Shift="no" Key="71">&quot;C:\Program Files\Google\Chrome\Application\chrome.exe&quot; &quot;$(FULL_CURRENT_PATH)&quot;</Command> <Command name="FF" Ctrl="yes" Alt="yes" Shift="no" Key="70">&quot;C:\Program Files\Mozilla Firefox\firefox.exe&quot; &quot;$(FULL_CURRENT_PATH)&quot;</Command>

    Unsolicited Advice #1: the View > View Current File In… menu has existed for years now for running the installed versions of Chrome, Firefox, and Edge (and even the horrendous IE). No need to duplicate the functionality in the Run menu, as long as you are not doing something weird (like installed Firefox/Chrome in non-standard locations, or with command-line options, neither of which you are doing, based on your pasted commands.)

    Unsolicited Advice #2:

    C:\Program Files (x86)\Notepad++

    Why are you using 32-bit Notepad++ on a 64-bit system? There’s virtually no good reason for doing that in 2023. (Any plugin worth having, that I know about, has been transferred to 64bit years ago.) Unless you know why you need 32-bit, you should install the 64-bit Notepad++. (Future versions of Windows OS are unlikely to support 32-bit applications, so you need to transition apps sooner rather than later to make the transition to the updated OS seamless.)

  • Can low reputation users be prevented from necroposting?

    10
    1 Votes
    10 Posts
    707 Views
    Lycan ThropeL

    @PeterJones
    Yeah, I guess it would be kind of difficult to automate that kind of abuse out, being committed by people that have no real skill sets other than to imitate being trained monkeys. :-)

  • Links with spaces in folder name...

    2
    0 Votes
    2 Posts
    370 Views
    PeterJonesP

    @Bob-Haikou ,

    URIs with spaces in them are supposed to be URL-encoded. Try file:///G:/travel%20in%202023/TRIP%20TO%20BLACK%20STOOL.NPS

    See the Wikipedia article on File URI Scheme .

    Notepad++ correctly recognizes the following standards-compliant file-URI as a link:

    file:///c:/program%20files/notepad++/change.log

    d3ddb420-fd3f-4d21-bdd8-817b6575191f-image.png

    Once again, this is actually a URI question, not anything that’s Notepad++ specific.

  • Open file safely in Notepad++

    2
    0 Votes
    2 Posts
    551 Views
    PeterJonesP

    @Bob-Haikou said in Open file safely in Notepad++:

    Notepad++ tried to execute the code in the text file!

    I am highly confident that it was PowerShell or START, not Notepad++, that tried to execute that text – Notepad++ does not “run” it’s command-line arguments.

    You might want to read up on the documentation of START, and make sure that it’s PowerShell compatible (since it’s really a cmd.exe command)

    You can see that it’s not Notepad++'s fault by not using the START prefix, and by running "C:\Program Files\Notepad++\notepad++.exe" "G:\codesamples.txt" from the cmd.exe prompt to run the application from the command line: it properly reads the file in Notepad++, it doesn’t try to run codesamples.txt as an executable.

    My experiments show that start-process "C:\Program Files\Notepad++\notepad++.exe" "G:\codesamples.txt" should work for you from the PowerShell command line. But that’s really a PowerShell question, not a Notepad++ question, so any further followup should be in a forum that answers PowerShell questions (ie, not here in a Notepad++ forum)

  • How to Backup notepad++ files from mac to external drive?

    Locked
    8
    -1 Votes
    8 Posts
    829 Views
    PeterJonesP

    This topic is obviously just a trap for repetitive copy/paste replies or generated content, and has nothing to do with Notepad++ itself, so has been locked to prevent further meaningless replies.

  • Disable reopening large files

    3
    0 Votes
    3 Posts
    419 Views
    Mark OlsonM

    FWIW it sounds like regular Notepad++ contributor xomx has indicated interest in the more general problem of lazy loading of files in Notepad++. If they succeeded in implementing lazy loading, such a setting would (probably) be unnecessary.

  • <NeedToBeUpdated> is always "yes"

    17
    2 Votes
    17 Posts
    2k Views
    T

    @donho Thanks a lot. This is much appreciated.

    You’ve broken one other feature along the way: the guide says:

    if you just paste https://notepad-plus-plus.org/update/getDownloadUrl.php into your browser’s address bar, you will only get a generic answer that currently contains this http download url:
    http://notepad-plus-plus.org/repository/7.x/7.5.9/npp.7.5.9.Installer.exe

    This is no longer the case. Omitting the version parameter just returns this:

    <GUP><NeedToBeUpdated>no</NeedToBeUpdated></GUP>

    instead of the latest version number and download link. Tbh it doesn’t affect me, but maybe someone else cares?

  • Displaying error in codes

    3
    0 Votes
    3 Posts
    266 Views
    rdipardoR

    P.S.

    Make sure to paste the following into your issue comment:

    `Accessor::ColourTo` is called on the high order byte of `】` as if it were a local variable: https://github.com/ScintillaOrg/lexilla/blob/4c5e7a0ef5410ed26bf99203cf27227413865f4d/lexers/LexBatch.cxx#L485-L497 The offset calculation should take multi-byte character boundaries into account.