• Operations with spaces

    2
    0 Votes
    2 Posts
    185 Views
    PeterJonesP

    @Сергей-Никольский ,

    Something was lost in translation, because the entry names you use do not exist in the default English translation. However, you seem to be complaining that Edit > Blank Operations > Remove Leading Space will remove leading spaces in the whole document, rather than just in the selection.

    If that is what you are saying, then you appear to be correct, as I have confirmed that with Notepad++ v7.9.5.

    Isn’t it time to fix it?

    If you would like to request that the developers give you the option to have that work “on selection” instead of “on the whole document”, you can look in the FAQ section and read the feature request or bug report FAQ entry. Until a request is made, they cannot know that you want that feature, so “isn’t it time” is the wrong question to be asking.

  • Syntax support blade.php for laravel

    2
    0 Votes
    2 Posts
    815 Views
    EkopalypseE

    @Константин-Сарапулов said in Syntax support blade.php for laravel:

    is it even possible?

    Only if someone takes the trouble to create a completion file.

  • "Keep this file in editor" - annoying.

    9
    1 Votes
    9 Posts
    2k Views
    PeterJonesP

    @Ams627 said in "Keep this file in editor" - annoying.:

    But the problem is, update silently doesn’t work if you disable File Status auto-detection. I need to disable it because of the constant prompts about files being deleted.

    That’s the design decision that was made in Notepad++. It will update contents silently if set to silent, but a file disappearing out from under you was deemed important enough that it will warn you if auto-detection is enabled at all, regardless of the “update silently” option.

    If you disagree with that design decision, you can request that a new feature be added (see the FAQ), but requesting a new feature doesn’t guarantee it will be implemented, nor how long it would take to implement it.

  • Problem with big files (50+MB)

    5
    -2 Votes
    5 Posts
    1k Views
    PeterJonesP

    @User-Name said in Problem with big files (50+MB):

    For example 300MB c++ file I can’t replace any text. It caused 50 second pause… I need just disable c++ language and set as text ?

    It’s what, more than 5 million lines of code (LOC) to get 300MB of source code even for dense code? All in one file? Yikes, talk about a maintenance nightmare!

    I ran some experiments with a dummy c++ that looked like

    #include <stdlib> int main() { return 0; } int dummy(void) { return 32; } int dummy(void) { return 32; } int dummy(void) { return 32; } ...

    … with enough copies of dummy to get about 1M LOC for about 32MB file length.

    In Language=C++, a search-and-replace for 32; to 23; took 2-5min. Switching to Language=None/Normal Text and replacing the other way dropped to 1-2min. For my 8-core CPU, it was pegging one of the 8 cores at 100%, whereas the other cores were all sane usage levels. (My guess is that the search-and-replace is implemented in a single thread – at the scintilla/boost level, so not something that Notepad++ source code could change) because it’s a linear activity, so it doesn’t make good use of multiple cores)

    Huge files are hard to handle, especially in applications like Notepad++ that keep the whole file open in a single buffer; it makes for large memory requirements and for large cpu requirements when doing whole-file activities. Turning off the lexer (Language menu) and not using View > Function List feature will both speed things up, as will not having plugins working in the background. But at hundreds of megs, it will still be slow, and probably slower than you would like.

    I cannot imagine a corporate code-style-guide that would allow a single source file to be 300MB / 5M LOC. Even if filesize or LOC-per-file aren’t mandated or given guidelines, I cannot imagine maintaining a single file that has grown that big – whether in a corporate situation or in a personal or open source project.

    As a bit of advice, I would recommend, for the long term, refactoring that code into multiple files, which will be easier to maintain. If it’s mandated by management to not spend time refactoring, explain to them that even activities like simple search/replace calls will take 5 minutes each, and that it can really add up. If they still won’t approve the time to refactor, I feel sorry for you.

    If you’re stuck with 300MB source code, I might recommend a streaming-style search and/or search-and-replace command-line utility, rather than Notepad++, so it doesn’t have to be all in memory at the same time. Gnuwin32 project on SourceForge has functional versions of grep for searches and sed for search/replace, which I use when I don’t want to load the whole file into memory (I like those because I have a lot of linux experience with those tools, and these are gnu-compatible versions, old but functional enough for me). Or the windows powershell command-line-environment has some good command-line tools, but I am not a powershell expert, so cannot recommend large-file or multi-file search-and-replace syntax. And support for grep/sed and/or powershell is not on-topic for this forum, so you’d have to find help elsewhere.

  • Non-unicode encodings discussion

    10
    1 Votes
    10 Posts
    1k Views
    Alan KilbornA

    @dinkumoil said in Non-unicode encodings discussion:

    for example CharTableGenerator.vbs

    For Pythonists that might want to generate the same data, here’s something short to make them feel comfortable:

    number_list = list(range(128, 255 + 1)) with open('CharTable.txt', 'wb') as f: f.write(bytearray(number_list))
  • Strange behavior of Find All in Current Document with Regular Expression

    5
    0 Votes
    5 Posts
    489 Views
    PeterJonesP

    @Todd-Hoatson said in Strange behavior of Find All in Current Document with Regular Expression:

    I didn’t realize that there is no automatic update feature in N++, so I didn’t think my version was so back-level. (Is it because I am using N++ portable?)

    The portable instance does not enable the auto-updater, because the auto-updater downloads the installer, which would really confuse users.

    If you’re unsure about the version, you can always look here in the Announcements thread, or at the official downloads page, or at the latest github release for the truly most-recent release… Or you can look at the same URL as the updater uses (https://notepad-plus-plus.org/update/getDownloadUrl.php) to see what version is being pushed to the updater as “most recent” (that XML at that URL only gets updated once the developer is convinced a release is stable enough to go to auto-update)

  • Limit File Types in 'Save As Type'?

    2
    0 Votes
    2 Posts
    212 Views
    PeterJonesP

    @Don-Moore ,

    Go to Settings > Preferences > Language, then move the unused languages to the “Disabled Items” side (docs). This has the primary effect of hiding those language types from the Language menu, but it also has the secondary effect of removing those languages from the SaveAs list as well, which is what you want.

    Also, if you select the Language entry before doing the Save/SaveAs action, it will automatically select the right entry from that drop-down.

    Altnerately, if you have Settings > Preferences > MISC > Set save dialog extension to *.*, then you can just type the extension you want, and that extension will be applied and Notepad++ will automatically assign that file to the right Language menu entry, just like when you load a file with that extension.

  • Difference between the 7zip and zip versions?

    3
    0 Votes
    3 Posts
    503 Views
    klepp0906K

    @Alan-Kilborn hash match n all? dont understand it. will have to keep playing around and see i suppose. for now im “locked-in” to downloading the 7z variant lol.

  • Notepad++ for mac

    11
    0 Votes
    11 Posts
    192k Views
    phenomenal11P

    @Jesper-Knudsen Please make this a separate post and tag the dev directly. I see myself using macbooks in the future and np++ on macos would be a goddamn treat

  • How come there isn't a version to stand for BLM?

    1
    -4 Votes
    1 Posts
    153 Views
    No one has replied
  • blocking the tab from closing

    5
    0 Votes
    5 Posts
    1k Views
    Ana Rosa Guimaraes BrazA

    ![alt text](image url)

  • The code editor that fired-up when coding

    3
    0 Votes
    3 Posts
    219 Views
    Michael VincentM

    @Umair-Hussain said in The code editor that fired-up when coding:

    if you fast code and a fire will blaze when you code

    Recently asked and answered.

    Cheers.

  • Column alignment

    4
    0 Votes
    4 Posts
    2k Views
    EkopalypseE

    @xl600

    Not exactly what you are looking for, but do you know the
    BetterMultiSelection plugin?
    It could be an alternative in the way you format your code.

  • Search and remove items within tags.

    13
    1 Votes
    13 Posts
    4k Views
    John Thompson 0J

    @Alan-Kilborn said in Search and remove items within tags.:

    @John-Thompson-0

    So what you’ve been given to solve your problem is one more most basic and core substitutions of this type that you can do.
    You can see the power of it now, I’m sure.
    Do yourself a favor and acquaint yourself with other similar techniques buy having a read HERE.

    I do understand your point. My old business partner and best friend for 20+ years was a programmer and I just could never get my head around it. Like, I can decipher a lot of what’s in the line but to sit down and write it myself? no way. But I suppose if I just started doing it I could. I mean isn’t that how most people learned html and css? I know it’s how I did. back 25 years ago.

    It’s been hard to get it. I’ve tried taking jquery courses and basic JavaScripting and it just never ‘took hold’ and got me interested. I suppose it’s because I never really ‘had’ to learn that like I did markup etc.

  • Is it possible to map multiple keys to notepad++ functions?

    26
    0 Votes
    26 Posts
    2k Views
    PeterJonesP

    @Anthony-Blinco,

    @Alan-Kilborn said in Is it possible to map multiple keys to notepad++ functions?:

    Regarding editor.search() – which is proper for this thread since we’ve been discussing PythonScript – why not just move your caret to an instance of that in your text and invoke Context-Help from the PythonScript menu, right in Notepad++ ?

    Am i looking at the right one

    http://npppythonscript.sourceforge.net/docs/latest/scintilla.html#helper-methods

    I’d give that a “no”.

    Specifically, the old sourceforge copy of the documentation is severely out of date.

    When you install PythonScript, it also installs a local up to date version of the PythonScript documentation, which can be accessed through Notepad++ menu Plugins > PythonScript > Context-Help (and, as @Alan-Kilborn mentioned, if your caret is on the editor.search() command, it should open the help to the right place). Use that for all documentation needs on PythonScript. But yes, it is in the helper-methods section of the editor object documentation.

  • Admin vs. non-Admin inconsistency?

    12
    3 Votes
    12 Posts
    547 Views
    gstaviG

    Based on the link that @mere-human found, Admin Notepad++ may be able to get drag and drop messages by disabling filters with a call to ChangeWindowMessageFilterEx.

    So there is point to file an issue.

  • Poor performance removing blank lines

    9
    0 Votes
    9 Posts
    802 Views
    Alan KilbornA

    @Ekopalypse

    Well, I guess.
    Sometimes there’s an art to data creation, though.
    For instance, perhaps really long lines impact how fast something will run.
    Perhaps the ratio of empty to non-empty lines makes a difference.
    Perhaps…perhaps…perhaps…

    I suppose it would have been best to have the OP’s data file, since it was the one that had the original complaint…

  • Win10x64, NPP 7.6.4 32bit, restoring last session not work after reboot

    10
    0 Votes
    10 Posts
    1k Views
    Laurie StearnL

    The explanation, solution and follow-up with the issue was suggested at Github, and ended up with the creation of two backup directories on the cloud for my two user names. All working well now. :)

  • Direct folders/Notepad++

    9
    0 Votes
    9 Posts
    639 Views
    Anthony BlincoA

    I thought so. Thanks for your help yet again.

  • Wrap at column 72 as i am typing

    10
    0 Votes
    10 Posts
    1k Views
    Anthony BlincoA

    That is super helpful. Thanks you guys so much!!