• Very simple Language definition (ZPL)

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    Jim DaileyJ

    @Wayne-Ivory
    I don’t think there is any way to do what you’d like other than listing the individual commands.

  • Problem with the search and replace function

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    Wolf KürschnerW

    YES!!

    Stupid me…

    Works well now!

    Thanks a lot!!
    :-) Wolf
    (By the way: Is there a help file somewhere? Beside foum and “Command LIne Arguments”?

  • ShellExecute failed (2): Is this command Correct?

    Locked
    3
    1 Votes
    3 Posts
    3k Views
    Albert DonderoA

    I got this same error, I marked Notepad++ to run as “Administrator” when I right click on a text file and select “Open in Notepad++”, I get this same error.

    When I try to save files, I get following message and have to click “Yes” so I can save file.

    “The File cannot be saved and it may be protected. Do you want to launch Notepad++ in Admin mode?”

    Would be nice to be able to setup the EXE to run as administrator and not have to worry or deal with the modal when trying to save.

  • Unable to reformat XML/JSON files opened from email

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @Matt-Storr

    sorry, but I don’t understand what you are doing.
    Does it mean you double click or open an attachment
    in your mail application like thunderbird/outlook and
    then npp starts and shows the content of the attachment?
    Now you use xml tools for reformatting and try to save it?
    But without reattaching it, it wouldn’t update in the mail.

    Cheers
    Claudia

  • ASCII Hex of Current Character

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    Scott SumnerS

    @iamtestplay

    I don’t believe this is possible…without scripting. With scripting (e.g. Pythonscript plugin), however, it is fairly straightforward–for the simplistic case of ASCII and not Unicode–if you don’t mind part of the statusbar being utilized for the display:

    Imgur

    Script:

    def callback_sci_UPDATEUI(args): c = editor.getCharAt(editor.getCurrentPos()) try: info = "HEX:{0:02X} DEC:{0} '{1}'".format(c, chr(c) if c not in [13, 10, 0] else 'LINE-ENDING' if c != 0 else 'END-OF-FILE') except ValueError: info = "HEX:?? DEC:?" notepad.setStatusBar(STATUSBARSECTION.DOCTYPE, info) editor.callback(callback_sci_UPDATEUI, [SCINTILLANOTIFICATION.UPDATEUI])
  • How make .nfo files use my HTML style ?

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    Rob StowR

    Many thanks - it worked once I went to the other thread you referenced (about the .ss files) and saw the note to clear the recent files list. I had already edited my langs.xml and stylers.xml files with NotePad++ but checked them with MicroSoft’s NotePad anyway just to make sure my changes had stuck when I exited NP++.

  • UDL highlighting a string

    Locked
    8
    0 Votes
    8 Posts
    3k Views
    Claudia FrankC

    @Daniel-Scholz

    afaik, ((EOL)) is the only one,
    but to answer the question, I don’t know any other than the source code.

    Cheers
    Claudia

  • Line Indent 2 spaces

    Locked
    6
    1 Votes
    6 Posts
    16k Views
    Scott SumnerS

    @Joey-de-Keizer

    FWIW, if I wanted to insert a blank column(s) throughout a range (especially a large range) of lines–without relying on the tab settings in effect, here’s what I’d do:

    move the caret to the first position of the first line to affect invoke Edit (menu) -> Begin/End Select (sadly, this useful feature has no default shortcut key!) move the caret to the first position of the last line to affect press Shift+Alt+RightArrow press Shift+Alt+LeftArrow invoke Edit (menu) -> Begin/End Select again

    This should get you a “thin caret” in front of the first column over the span of lines. From there it is easy to insert spaces on each and every line by pressing the spacebar the appropriate number of times.

    Of course, if you range is small, then simply:

    move the caret to the first position of the first line to affect press Shift+Alt+DownArrow repeatedly to define the “thin caret” over the desired line range.
  • LESS - is there a plugin that allows auto-completion?

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Lukasz kowalL

    Thank you. This helped me a lot. I created a LESS XML file from my CSS XML file and now auto-completion for LESS is working.
    I will use this method in the future to add new words for auto-completion for my other languages, for example my CSS lacks CSS3 tags.

    Thanks for help.

  • Adds text in php after pressing enter

    6
    0 Votes
    6 Posts
    2k Views
    Claudia FrankC

    @Mike214

    this is a switch which is used in combination with npp startup.
    notepad++.exe -noPlugin
    What it does is that it doesn’t load any plugin to be sure that the issue
    is caused by npp instead of a misbehaving plugin. What you can do instead
    of using the switch is to temporarily rename the plugin folder and then start npp.

    But from your last comment

    Once it happens again I will find something to use.

    I get that this doesn’t happen always but from time to time. Is this the case?
    If so, you should describe in detail what you did, what you expected to be happen and what
    happened instead. As already said, a screenshot or a document which shows the behavior
    would make it a lot easier to find out the root of the problem.

    Cheers
    Claudia

  • How to get it to read .ss files as html?

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Nika RudolfN

    Thank you so much, I did it and it works fine!

  • Partial word search not working.....

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Daniel GaliD

    yes it was!! duh! thanks Man!!

  • Cannot Change Recent Files History Count

    6
    0 Votes
    6 Posts
    3k Views
    Claudia FrankC

    @Dave-Manning

    Sorry, was pretty confident that it is %APPDATA%\notepad++,
    but could be that my memory plays a trick on me.
    It’s been a while since I’ve used windows.

    As far as I know, no, npp doesn’t save this in the registry instead
    it uses different config files. The one in question is config.xml.

    And the line is

    <History nbMaxFile="10" inSubMenu="no" customLength="-1">

    From your debug-info output it should be the one under %APPDATA% as the
    Local Conf mode is OFF but just to be sure, check the one under C:\Program Files (x86)\Notepad++ as well.

    Cheers
    Claudia

  • Entering ZWNJ Zero Width Non-Joiner

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    PeterJonesP

    I have two ideas:

    Is it the character or the keyboard shortcut that’s having the problem?

    Try assigning the AutoHotKey sequence to something different for the ZWNJ insertion, and see if that helps. Alternately: in my Settings > Shortcut Mapper, I see that Main Menu: #58: Function Completion is assigned to that key sequence; yours may be a different number, but you could try to select Function Completion and CLEAR its shortcut, and then try doing the Ctrl+Space shortcut again.

    If AHK cannot seem to insert it, even after playing with shortcuts, you might want a PythonScript solution.

    create a short script, and save it in the appropriate directory for PythonScripts (in a <executable directory>\plugins\PythonScript\scripts for Machine Scripts, or in %AppData%\Notepad++\plugins\PythonScript\scripts for User Scripts)

    editor.addText( u’\u200c’ )

    assign it as a menu item using Plugins > Python Script > Configuration, selecting the appropriate Machine or User scripts, clicking ADD

    assign it a shortcut via Settings > Shortcut Mapper > Plugin Commands

    (I verified the PythonScript version worked, though I had to use the PythonScript console to run editor.setRepresentation(u'\u200C', "ZWNJ") to confirm it had really inserted the right character, and editor.clearRepresentation(u'\u200C') once I knew it was really there.)

  • Combining multiple .txt files and sending to outlook

    Locked
    4
    0 Votes
    4 Posts
    1k Views
    Jim DaileyJ

    FNR is the line number of each file as the file is processed. It is not possible for FNR to be 1, 2, and 5 simultaneously! :-) That is what the condition you tried:

    FNR == 1 && FNR == 2 && FNR == 5

    means. That is why you saw no output.

    If you want to print lines 1, 2, and 5, then if FNR is 1 or 2 or 5, you want to print the line. That translates to:

    gawk "FNR==1 || FNR==2 || FNR==5{print}" *.* > FileOfFiles.txt

    so, you nearly had it.

    If you want to print the filename before the lines of each file, you can do that like this:

    gawk "FNR==1{print FILENAME} FNR==1 || FNR==2 || FNR==5{print}" *.* > FileOfFiles.txt
  • Wrongly replaced multiple variables recover ??

    Locked
    4
    0 Votes
    4 Posts
    1k Views
    Ard WesA

    Ok

    I fixed the problem. But in 90% of the changes it had no effect.

    I have not used any of the offered options.

    It would be a useful tool if Notepad offered the possibilty recover a range of errors in the menu widget.

    Thanks for your time and suggestions.

  • Adding } to the end of a text line

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    guy038G

    Hi, @uwe-helmer,

    Ah, OK ! Sorry for my late reply, but I was studying the haunting problem of the suppression of duplicate lines, without corrupting the order of the file contents :-)) See, below :

    https://notepad-plus-plus.org/community/topic/14729/deleting-lines-that-repeat-the-first-15-characters/13

    So, let’s consider your example text, below, in a new tab :

    {Ausgang {door {Eingang} {Eintritt} {entry {exit} {gate} {gateway} {ingress {Pforte} {Portal} {slammer} {Tor {Türe} {Zugang} Gatter Tor Torbogen Treppen Stufen Wände Gelaender {banister {handrail} {railing} Innenraum {interior}

    Open the Replace dialog ( Ctrl + H )

    Check the Regular expression search mode

    SEARCH (?-s)^\{.*[^}\r\n](?=\R)

    REPLACE $0}

    Click, once, on the Replace All button ( or, successively, on the Replace button )

    => You should get the text :

    {Ausgang} {door} {Eingang} {Eintritt} {entry} {exit} {gate} {gateway} {ingress} {Pforte} {Portal} {slammer} {Tor} {Türe} {Zugang} Gatter Tor Torbogen Treppen Stufen Wände Gelaender {banister} {handrail} {railing} Innenraum {interior}

    Et voilà !

    Notes :

    First, the (?-s) modifier forces the regex engine to interpret the special . character as matching a single standard character, only

    Then, the part ^\{ looks the \{ character, at beginning of line ^. Note that the special { regex character have to be escaped !

    Now, the part .* searches any amount, even empty, of standard characters, till …

    A character different from the } character ( part [^}\r\n] ) which is followed by EOL characters ( look-ahead feature (?=\R) )

    The part [^}\r\n] is a negative character class, looking for any character, different from, either, the } character, the EOL character \r and the EOL character \n

    The \R stands for any kind of line break ( \r\n, \n or \r )

    In replacement, it rewrites the overall matched string $0, simply followed by the } character

    Best Regards,

    guy038

  • "Queue overflowed" dialog

    2
    1 Votes
    2 Posts
    4k Views
    Shree ThatteS

    I get this message often. The only thing that gets rid of it is if I restart notepad++.

  • Desperately seeking installable version of Notepad++ for Windows Vista

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    chcgC

    Which version do you try to install? https://notepad-plus-plus.org/download/v7.5.1.html? 32bit/64bit. At least there is no intentional break of the backwards compatibility even winxp sp3 should be still supported.

  • Comparing two txt files. Finding differences.

    11
    0 Votes
    11 Posts
    9k Views
    chcgC

    https://github.com/pnedev/compare-plugin might help you for simple ordered file lists or some other standalone diff programs like kdiff3, winmerge, …