• Override Default Style Colors in Custom Language

    6
    1 Votes
    6 Posts
    2k Views
    ArkadiuszMichalskiA

    I remember having a similar problem in the past, I wanted the default colors everywhere except my UDL. Thanks for the tip above, I will check later if it works for me.

  • line by line modification using macro

    9
    0 Votes
    9 Posts
    3k Views
    TroshinDVT

    @Alan-Kilborn said in line by line modification using macro:

    A script feels a bit “heavy” for this simple operation.

    This is if we mean only this operation.
    In fact, there are many possibilities as the brackets are customizable.
    Often it is necessary, for example: to complete the lines on the right or left.

  • How to add an new entry in the "FunctionList"?

    14
    0 Votes
    14 Posts
    4k Views
    Magnus BerglundM

    @PeterJones
    Hello Peter,
    What a fantastic zipfile! :-)
    It works even for me, jippy!

    Thanks for the support!
    Have a great Christmas together with your family

  • Copy Find Result

    9
    0 Votes
    9 Posts
    10k Views
    caryptC

    Aaaahhhh ! yes , thats it . shame on me , i was not updated to 7.9.1 . i beg your pardon , but there is no excuse . shame on me

  • Limit display to lines with content to the left of "x".

    6
    0 Votes
    6 Posts
    2k Views
    fred339F

    @PeterJones Thank you! That works nicely. It appears that a “level” is defined by the appearance of a curly bracket - which is fine.

  • Ciao a tutti, ho una domanda credo facile

    2
    0 Votes
    2 Posts
    161 Views
    Alan KilbornA

    @Livio-Panuello said in Ciao a tutti, ho una domanda credo facile:

    I have a text file:
    ‘723’,
    ‘722’,
    ‘721’,
    ‘720’,
    ‘719’,
    ‘718’,
    ‘717’,
    I can quickly get a format like this:
    ‘723’,‘722’,‘721’,
    ‘720’,‘719’,‘718’,
    ‘717’,
    Thanks
    Hello

    I might try it like this:

    find: ^(.\d+.,)\R(.\d+.,)\R(.\d+.,\R)
    repl: \1 \2 \3
    search mode: regular expression

    I used a . for the single quote, since it could truly be one of several types of single-quote characters.

  • i want new option

    4
    0 Votes
    4 Posts
    185 Views
    Alan KilbornA

    @carypt

    Maybe a reasonable supposition.
    But why not let the OP say more?
    Replying to such a post only encourages questioners to put the minimum effort in.
    Instead it should be if GI then GO.

  • NP++ does not show me the message on the console

    2
    0 Votes
    2 Posts
    287 Views
    dinkumoilD

    @Alejandra-Bernal

    I don’t know how to use g++ from the command line, but I guess if you call it like you did it will create an executable file with some kind of default name and then terminates. Thus, the message regarding the started process with PID 5744 from your screenshot is about g++ itself and not about the created executable.

    Try to add the following as the last line of your NppExec script:

    $(CURRENT_DIRECTORY)\$(NAME_PART).exe

    If this doesn’t work, add some command line options to the line where g++ is called to tell the compiler where to create the output file and which name to use.

  • Invisible spaces

    10
    0 Votes
    10 Posts
    8k Views
    caryptC

    @Alan-Kilborn oh yes , i see , i forgot that i made that special setting for my npp-search, thus ctrl-f couldnt work as intended . sry for trouble . on the other hand i want to say that i might have not the time or knowledge to pile up a fully complete solution for a problem , but still wanting to share the results of my research (time consuming too) as "hints"even if it might need tweaking . thats why its called unprooven , to not cause messing up the tidyness of thoughts

  • My Notepad++ can't read style correctly

    2
    0 Votes
    2 Posts
    2k Views
    PeterJonesP

    @Huanying04 ,

    Your JSON is showing as styled, so Notepad++ is properly behaving as designed, and styling the JSON correctly.

    However, I think what you’re commenting on is that stylers.model.xml lists 14 different styles, but your Style Configurator only shows 6.

    That’s because a default installation of Notepad++ uses %AppData%\Notepad++\stylers.xml as the Style Configurator config file. The stylers.model.xml you found in the Notepad++ program directory is what Notepad++ uses to re-create %AppData%\Notepad++\stylers.xml if there isn’t one found. So, my guess is that you’ve updated Notepad++ on this computer, so that its stylers.model.xml is newer than your %AppData%\Notepad++\stylers.xml. If you opened %AppData%\Notepad++\stylers.xml (File | Open, and paste that string in), I believe it would only show the 6 styles that you can see.

    To fix this, you have two options:

    Delete and Re-create stylers.xml: WARNING: if you had customized any of your colors in the style configurator, this method will delete those customizations and you will have to redo them. I do not recommend this method if you want to keep your custom colors; try method#2 instead. Close all open Notepad++ windows Go to %AppData%\Notepad++\ and delete the stylers.xml file Open Notepad++. It will re-create %AppData%\Notepad++\stylers.xml Style Configurator > JSON should show all 14 styles now. Manually merge the two WARNING: Do not change any Notepad++ settings until after step #6. Close all open Notepad++ windows. Open a single Notepad++ window. Open the files stylers.model.xml in one view, and %AppData%\Notepad++\stylers.xml in the other If you have the Compare plugin, you can compare the two files to find where differences are; otherwise, you can just manually compare the two, and copy rows from stylers.model.xml to stylers.xml that were missing in stylers.xml. Close Notepad++ without changing any other settings Open Notepad++. Style Configurator > JSON should show all 14 styles now.


    PS: For more on %AppData%\Notepad++ folder, see “FAQ Desk: What is %AppData%”

  • 1 Votes
    6 Posts
    1k Views
    PeterJonesP

    Tangent:

    I was curious what SCI_DELETEBACKNOTLINE did differently than the normal backspace behavior, so since I had it mapped in that fresh portable, I tried it. If you have text on the line you are editing, that command will erase normally. But if you are at the first character of the line, where a normal backspace would delete the previous line’s EOL characters and take you to the end of the previous line, the SCI_DELETEBACKNOTLINE will not erase the EOL characters or take you to the end of the previous line – it will just stop at the beginning of the line you’re at.

    Interesting. I don’t know that I’ve ever had a desire for the editor to stop me from accidentally backspacing to the previous line… but I guess it’s good to know such a feature exists. :-)

  • All versions crash at startup

    13
    0 Votes
    13 Posts
    2k Views
    github4mosesG

    @github4moses Here I am again, having swapped the motherboard into one with a better CPU that can SSE2 now. The board takes all Windows Updates (that the previous one crashed upon) and runs even the most recent Notepad++ now. So I’m happy with the working tool and have to thank all the contributors having tried to help me.

  • How can I see the "Replaced files" after search and replace?

    11
    0 Votes
    11 Posts
    698 Views
    Alan KilbornA

    And, of course, the above advice was totally ignored. :-)

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

  • Notepad++ can't find the words that still exist

    3
    0 Votes
    3 Posts
    237 Views
    Robin CruiseR

    I made something about it. I put the cursor somewhere else, then I check and search “Backward direction” Seems that my search was forward, that is why.

    thanks

  • JSON Styles Broken on v7.9.1

    4
    0 Votes
    4 Posts
    2k Views
    Daniel FuchsD

    Just to add to that, JSON by design does not have comments. It is a data only file type. Some if not most parsers error upon finding comments, so I guess Notepad++ is right here.

    See also https://stackoverflow.com/questions/244777/can-comments-be-used-in-json

  • can a wordpress website coding reaten in Notepad++?

    3
    -1 Votes
    3 Posts
    270 Views
    satta king balckS

    yes you can do. I also write the code of my website. After modification, i have again posted in wordpress files.

  • Macro for a game

    Locked
    5
    -1 Votes
    5 Posts
    417 Views
    Michael VincentM

    @Noah-Thornquest said in Macro for a game:

    setup a macro to farm this game for me overnight

    Sounds like you want a script, not a text editor. Learn the API for your game and find a scripting language that has support for it.

    Cheers.

  • Delete ";" in a description column

    5
    0 Votes
    5 Posts
    531 Views
    Jose Emilio OsorioJ

    @PeterJones
    Hi Peter,
    After a lot of tries, it works with the following expression:

    (^[^;];[^;];|\G)[^;]\K;(?=.;[^;];[^;]$)

    Thank you very much.

  • Line break brainstorming (×_×)

    8
    -1 Votes
    8 Posts
    409 Views
    Neil SchipperN

    Faisal,

    It is almost certainly true that the text you want to modify came from a spreadsheet or database. If you have access to the original document(s), or their legitimate owner, then this is more an issue of how the data was exported. All modern tools allow exports that that use field separation by tabs or commas.

  • Replace certain characters when typing (YAML)

    11
    0 Votes
    11 Posts
    945 Views
    EkopalypseE

    @PeterJones

    That was quite a lengthy process.
    First I read through the question.
    Then I tried to understand the question and what a possible solution might look like.
    Then I had coffee and cake and had to start all over again.
    In no time at all, 2 hours went by :-D
    In the end I did a copy and paste so as not to miss dinner.

    :-D