• Is there a way to hide commands?

    21
    0 Votes
    21 Posts
    5k Views
    guy038G

    Hi, @jim-dailey,

    To be honest, the Google translation, of the American/English text, of my previous post, in French, wasn’t so bad, either !

    But I suppose that neuronal networks are, definitively, a + for translation matters and I was, also, a bit impressed by the press comments about DeepL translator performances ;-))

    Cheers,

    guy038

  • Folder in Workspace

    12
    0 Votes
    12 Posts
    8k Views
    Ingo MalchowI

    The prime problem seems to be solved. But in my opinion, there are some details left to do, to convenient create a dir or/and file within the workspace pane.

    Over the context menu I can open the selected directory to open it in the file explorer. There I can create directories and files.

    But the new directory will not sortet in the directories list, but will be append to the list (1. old dirs in alphabetical order, 2. files in alphabetical order, 3. new dir). Fatal: New files in this new directory will not be shown, if I create directory and file, one after another!

    With repeatly open the new directory in the explorer and create a second new file, this second new file will be shown. The file, that I create along with the directory, is still no displayed!

    Finally: It is not possible to make a popup to create new director(y/ies) and files? Nice to have: create a empty file in a new directory by typing: “newdir/newfile.php”.

    Do you agree with me?

  • Unable to replace spaces, newlines, tabs, etc.

    Locked
    3
    0 Votes
    3 Posts
    5k Views
    PeterJonesP

    As Scott said, it’s hard to tell, because the forum ate your whitespace (and we cannot see your EOL characters in a paste).

    I did an example: turn on View > Show Symbol > Show all characters to show the different results and make sure spaces, tabs, and EOL were all visible:
    Imgur

    On the left, I marked \n (LF SPACE SPACE) {top left}, and then replaced it with tab {bot left}. As you can see, it found two LF that were followed by two spaces – one in the WINDOWS EOL (CRLF) section, and one in the LINUX EOL (LF) section. But when it does the replace, it leaves the CR in the WINDOWS EOL section, which Notepad++ properly renders as a newline sequence for line purposes.

    On the right, I marked \r\n (CR LF SPACE SPACE) { top right }, and then replaced it with tab {bot right}. As you can see, it only found the one in the WINDOWS EOL section, but properly replaced the full EOL sequence, rather than just the LF portion of the CR LF.

    So, if your file has linux line endings, then your regex should have worked for your described data. If you file has windows line endings, then your regex only replaces part of the EOL, and you should use \r\n (CR LF SPACE SPACE) instead.

    If you switch to regular expression mode, then the magical \R is enabled: this magical regex sequence matches CR, LF, or CR LF. So search = \R (backslash big-R space space) and replace with \t would work for either style of line ending.

  • Create config file with variable

    Locked
    2
    0 Votes
    2 Posts
    738 Views
    Scott SumnerS

    @Bas-van-Roosmalen

    You’d probably have luck writing some Excel VBA to do this, turning this into not-a-Notepad++ -question…

  • Notepad++ cannot display unicode U+2237

    Locked
    3
    0 Votes
    3 Posts
    887 Views
    Sjaak SmetsersS

    Worked. Thanx!

  • Trying to get all files opened to be in the same instance

    Locked
    2
    0 Votes
    2 Posts
    622 Views
    PeterJonesP

    settings > preferences > multi-instance ☑ Default (mono-instance)

    Also, if that isn’t sufficient, make sure that your shortcuts and registry entries don’t add the -multiInst command line option.

  • 0 Votes
    2 Posts
    672 Views
    Ahu LeeA

    Disabling html/xml close tag auto-insert in Preferences > Auto-Competition seems to be the only option that “solves” it.

    Thanks everyone for your help!

  • Wrong keymap under Windows 7 (x64)

    Locked
    1
    1 Votes
    1 Posts
    573 Views
    No one has replied
  • File creation differes (Notepad++ & Winscp) vs Nano under SSH ??

    Locked
    2
    0 Votes
    2 Posts
    591 Views
    PeterJonesP

    My immediate guess would be line endings (assuming you are creating your file in Notepad++ and then transferring to a linux box via WinSCP). You can solve this either by setting WinSCP to transfer in ASCII mode, or you can change the line ending in Notepad++ before you save the file in Notepad++: Edit > EOL Conversion > Unix (LF).

  • Another weird EOL question from me.

    Locked
    12
    2 Votes
    12 Posts
    2k Views
    SalviaSageS

    @dinkumoil oh wow lol. you already made a plugin that can set the EOL of a file based on its file extension.

    Special thanks!

  • How to change all invalid characters to spaces

    Locked
    11
    0 Votes
    11 Posts
    6k Views
    guy038G

    Hello, @skevich21, @peterjones, @scott-sumner, @terry-r and All,

    Peter, before posting I had tested the Fileformat.Info site, which does provide a great amount of information ;-))

    However, I realized that it you try to paste a character, which has an Unicode code-point over \x{FFFF}, it does not find any character :-(( So, I preferred not to mention it, in my last post !

    For instance, using the character, given as an example, at the end, your can type in the value 12345, at http://www.cogsci.ed.ac.uk/~richard/utf-8.cgi? and click on the Go button

    => The white square 𒍅 should be displayed, in the Character line

    Now, simply, select and copy this 𒍅 character

    And paste it at http://www.fileformat.info/info/unicode/char/search.htm

    After clicking on the Search button, you’ll notice that it answers : Search 𒍅 => O hits

    Now move back to the http://www.cogsci.ed.ac.uk/~richard/utf-8.cgi? site

    Choose the first radio button Character

    Enter any single character, for instance, the letter A and valid

    Finally, delete the A char and paste the character 𒍅, instead

    => After validation, it does find the expected character :-))

    Of course, I’m pretty sure that there must be other websites, which properly manage these characters, either !

    Cheers,

    guy038

  • xml looks not as expected

    Locked
    9
    1 Votes
    9 Posts
    8k Views
    Daniel WehrliD

    Hello

    I tried to install XML Tools. But I was not able to do it.
    (Windows 7, 32 bit) I tried it also as Administrator.

    https://www.bilder-upload.eu/bild-29636d-1539075881.png.html

    ???

  • Need help search and replace with wildcards

    Locked
    3
    1 Votes
    3 Posts
    1k Views
    Patrick Huebgen6P

    Thank you - worked perfect!

  • Notepad ++ doesn't remember position in document after changing tab

    Locked
    4
    0 Votes
    4 Posts
    967 Views
    Nat TardisN

    Thank you for notifying us !

  • Replace everything before certain key

    Locked
    3
    1 Votes
    3 Posts
    4k Views
    Trung Michal NguyenT

    I knew there was some command users use but couldn’t find what kind of. I did some replacing by myself but hit the wall everytime i had to replace Line xxxx and couldn’t think of how to reference before the “id”. Anyway thank you very much for helping me and tips for my next post.

  • Search and replace inside the same blocks

    Locked
    4
    0 Votes
    4 Posts
    839 Views
    guy038G

    Hello, @anatol-sam,

    I think so. But we need some details, about the text to change !

    Simply, give us one or several example(s) of the bunch(es) of text which you want to search AND the corresponding text which you expect, for each bunch, after the S/R operation !

    To be sure that your text will NOT be interpreted with the Markdown syntax, used on this site, simply wrap all your BEFORE and AFTER stuff with, either :

    The starting line ```z and the ending line ``` ( using the backquote / backtick character ` )

    The starting line ~~~z and the ending line ~~~ ( using the tilde character ~ )

    For instance :

    I have :

    ```z
    Your BEFORE stuff
    ```

    And I would like :

    ~~~z
    Your AFTER stuff
    ~~~

    So, in short, give us some material to think about :-))

    Best Regards

    guy038

  • Hard to explain but need help

    Locked
    7
    0 Votes
    7 Posts
    1k Views
    guy038G

    Hello, @anthony-lovelady, @terry-r, @david-bailey, and All

    As Terry, I was confused about the final goal of the OP. Luckily, Terry almost clarified the problem :-)

    I say, “almost”,  because we must take in account some other points :

    We may consider that the initial text contains blocks, separated by blank lines. These blank lines must be deleted, before calling the Column editor !. Otherwise, the numbering wouldn’t be made of consecutive numbers :-((

    May be, the lines Cheat0_N = and Cheat0_O= may contain numbers different from 0, like, for instance, Cheat28_N = or Cheat72_O=

    Also, the word Cheat, in the original text, may be written in lower-case or with any case

    Finally, Terry, I think that you forgot an equal sign =, after the part Cheat\d+, in the second regex, at STEP 3

    So, given an initial text, as below :

    Cheat0=“Arms Connect”,80047F77 0022,81047F88 1836,81047F96 E836 Cheat28_N = Cheat72_O= cheat3=“First_Test”,702A65B7 0198,658CC6D0 9215,8921BF80 C123 cheat3_N = cheat3_O= Cheat12=“Example”,C9245F81 990A,42C845D1 0000,95AD692F A23B Cheat0_N = Cheat2_O= cheat07=“end of the Test”,004F2227 C52D,623C78B2 52F3,692A7D6C 5520 cheat00_N = cheat100_O=

    Then, this first regex S/R :

    SEARCH (?i-s)Cheat\d+_(N|O).+\R?|(^\h+\R)+

    REPLACE Leave EMPTY

    Would give the text, below :

    Cheat0=“Arms Connect”,80047F77 0022,81047F88 1836,81047F96 E836 cheat3=“First_Test”,702A65B7 0198,658CC6D0 9215,8921BF80 C123 Cheat12=“Example”,C9245F81 990A,42C845D1 0000,95AD692F A23B cheat07=“end of the Test”,004F2227 C52D,623C78B2 52F3,692A7D6C 5520

    Now, after performing the Column editor action, with a decimal starting number 0, we obtain :

    0Cheat0=“Arms Connect”,80047F77 0022,81047F88 1836,81047F96 E836 1cheat3=“First_Test”,702A65B7 0198,658CC6D0 9215,8921BF80 C123 2Cheat12=“Example”,C9245F81 990A,42C845D1 0000,95AD692F A23B 3cheat07=“end of the Test”,004F2227 C52D,623C78B2 52F3,692A7D6C 5520

    Finally, using the second regex S/R, below :

    SEARCH (?i-s)(\d+)Cheat\d+=(.+?”),(.+)(\R)

    REPLACE cheat\1_desc = \2\4cheat\1_enable = true\4cheat\1_code = “\3”\4

    You should get the expected text :

    cheat0_desc = “Arms Connect” cheat0_enable = true cheat0_code = “80047F77 0022,81047F88 1836,81047F96 E836” cheat1_desc = “First_Test” cheat1_enable = true cheat1_code = “702A65B7 0198,658CC6D0 9215,8921BF80 C123” cheat2_desc = “Example” cheat2_enable = true cheat2_code = “C9245F81 990A,42C845D1 0000,95AD692F A23B” cheat3_desc = “end of the Test” cheat3_enable = true cheat3_code = “004F2227 C52D,623C78B2 52F3,692A7D6C 5520”

    Best regards,

    guy038

  • Default language: Arduino not found

    Locked
    2
    0 Votes
    2 Posts
    688 Views
    PeterJonesP

    I am pretty sure [1] that Arduino uses C/C++ by default, so choosing Settings > Preferences > New Document to C++ would be what you want.

  • XML Tools - XML Parsing Error points to wrong line

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    chcgC

    Maybe you want to create an issue here https://github.com/morbac/xmltools/issues

  • Applying Defined Language to all open files

    Locked
    6
    0 Votes
    6 Posts
    2k Views
    PeterJonesP

    Assuming it’s a User Defined Language, I found the time to hack together a PythonScript to do it. This example assumes the UDL is named “Markdown” (because that’s a UDL I have), but you just have to change the udl_name in the code.

    # https://notepad-plus-plus.org/community/topic/16420/applying-defined-language-to-all-open-files # For each open file # * activate the file's tab # * select the Language menu's item for the MySuperCool UDL, or whatever it's named udl_name = 'Markdown' # change as needed #console.clear() #console.show() files_tups_list = notepad.getFiles() curr_file = notepad.getCurrentFilename() console.write("current:"+curr_file+"\n") for tup in files_tups_list: file = tup[0] console.write("file:"+tup[0]+"\t") console.write("id:"+str(tup[1])+"\t") console.write("idx:"+str(tup[2])+"\t") console.write("view:"+str(tup[3])+"\n") notepad.activateFile(file) keep = notepad.getCurrentLang() #console.write("lang:" + str(notepad.getCurrentLang()) + "\t" + str(int(notepad.getCurrentLang())) + "\n") # notepad.setLangType(LANGTYPE.USER) # couldn't find a way to make this select a particular UDL #notepad.menuCommand(MENUCOMMAND.LANG_USER) # ditto notepad.runMenuCommand('Language', udl_name) # here's one that will #console.write("lang:" + str(notepad.getCurrentLang()) + "\t" + str(int(notepad.getCurrentLang())) + "\n") #notepad.setLangType(keep) #console.write("lang:" + str(notepad.getCurrentLang()) + "\t" + str(int(notepad.getCurrentLang())) + "\n") notepad.activateFile(curr_file)

    I’ve left in my debug code (commented) so you can enable extra prints to help you see what’s going on.

    If you don’t want to set every file to the UDL, but just some of the open files, you can wrap it in an “if” block.

    Note, the thread https://notepad-plus-plus.org/community/topic/11341/using-a-user-defined-language-as-default/11 has similar content, but changes to a UDL it when you switch to a matching file (so it’s got an example of what the “if” block might look like)