• Run Shift+F5 = Shell execure current file missing after update 7.6.3

    11
    0 Votes
    11 Posts
    2k Views
    PeterJonesP

    @Oliver-Majchrzak ,

    Alternately, if you’ve got a batch file that critically needs its current directory to be the same as the directory it’s in, that should be handled in the batch file itself. For example,

    @cd /d %~dp0

    (note that %~dp0 is using the “parameter extensions” on the %0 (which is the .bat’s pathname) as described at https://ss64.com/nt/syntax-args.html, to extract the drive and path, but not the filename).

    With that near the beginning of your batch script, you won’t need to change directory externally.

  • 0 Votes
    5 Posts
    2k Views
    Alan KilbornA

    when a power line went down in my neighborhood and there was no chance for a graceful shutdown.

    People…Name your files…Save (use the command) often. Jeez.

  • 0 Votes
    2 Posts
    943 Views
    EkopalypseE

    @Jack-Moorhead

    see here for more information

  • Replace Comma Before & After All 13 Digit Numbers

    Locked
    3
    0 Votes
    3 Posts
    890 Views
    BecauseICanTBHB

    Worked! Thanks a lot!

  • 0 Votes
    4 Posts
    895 Views
    Richard Brock Jr.R

    Thank you both very much.

  • Delete whole line based on search

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Omar KO

    Thanks Terry. That’s exactly what I was looking for. Just couldn’t see the Remove Bookmarked Lines option where I looked.

    Appreciate the quick response.

  • Need help with Replacing lines

    Locked
    2
    0 Votes
    2 Posts
    414 Views
    guy038G

    Hello @ilya-levadny and All,

    Actually, you want to delete all characters located after the second colon character, included, of any line

    Indeed, not difficult with regular expressions !

    Open the Replace dialog ( Ctrl + H )

    SEARCH (?-s)^(.+?:.+?):.+

    REPLACE \1

    Select the Regular expression search mode

    Check, preferably, the Wrap around option

    Click, once on the Replace All button or several times on the Replace button

    An other formulation would be :

    SEACRH (?-s)^.+?:.+?\K:.+

    REPLACE Leave EMPTY

    This time, due to the \K syntax you must use the Replace All button, exclusively

    Notes :

    The (?-s) in-line modifier means that dot ( . ) matches any single standard character, only

    The .+?: part looks for the shortest non-null range of characters till a colon ( : )

    The part between parentheses ( .+?:.+? ) is stored as group 1, which must be rewritten, during the replacement phase

    At the end, the .+ syntax represents the rest of the line, after the second colon char, included, of the current line

    In the second version, after matching the implicit group 1, the \K syntax resets the regex engine, so the final overall match is the part :.+ which corresponds to the second colon char with all the subsequent chars of current line, which are deleted as the replacement zone is empty

    Best Regards,

    guy038

  • Problem with Path names containing spaces ?

    9
    0 Votes
    9 Posts
    7k Views
    Stewart ClarkS

    Thanks Meta Chuh - that solved it!!

  • Cant Run a file in a browser??...

    Locked
    2
    0 Votes
    2 Posts
    435 Views
    Meta ChuhM

    welcome to the notepad++ community, @ForceTraps

    we would need more information to be eventually of help regarding your request.

    specify if by “run” you mean to open a file in notepad++ or to execute it with an external program ?
    if it is an external program you want to pass your document to, please name this external program.

    what file did you try to run ?
    (file location and name including it’s extension, aka “full path”)

    please clarify “Is it because i need a specific version”.
    what version of what program are you referring to ?

    please go to the notepad++ menu ? > debug info... > copy debug info into clipboard and paste the content here, as we will need this information, if some config files will have to be edited for your specific installation.

  • NppExec Problem

    Locked
    6
    1 Votes
    6 Posts
    869 Views
    PaoloRicardoP

    OK, I’ve found the problem. Instead of:

    c:\gnucobol\bin\cobc -x -std=mf $(FULL_CURRENT_PATH)

    I should have c:\gnucobol3\bin\cobc -x -std=mf $(FULL_CURRENT_PATH)
    ^
    Also, since I’ve already defined the PATH variable I can just use:

    cobc -x -std=mf $(FULL_CURRENT_PATH)
    or
    cobc -x -std=mf $(FILE_NAME)

    Thanks for the suggestions, guys.

    Paul

  • Search and replace with wildcards

    Locked
    6
    0 Votes
    6 Posts
    2k Views
    Meta ChuhM

    @Pingponguin

    I followed the noob path but really did not understand how this should help me with my question.

    yes, i can relate completely.
    whilst we (as the notepad++ community) do have a vast library of regex examples and guides, it can be difficult to get a first firm grip at regex, without having a few real life examples, one can personally relate to.

    also there are some vast differences on how different users reach the same results with almost completely different syntaxes (let’s call them “personal regex dialects”).
    for example @Alan-Kilborn 's regex syntax for your request is perfect to begin with, because it is as easy as possible to read and understand.

    but if you stick around, you will also see regexes that often do the same and are very difficult to digest.
    (i usually still stick to syntaxes i can completely understand and/or are easier to break down to smaller parts)

  • Problem mit Notepad++ / Problem with Notepad ++

    Locked
    5
    1 Votes
    5 Posts
    5k Views
    Meta ChuhM

    @PeterJones

    it seems as if we all get more and more multilingual lately …

    … if it continues like that, @Alan-Kilborn is going to answer every request in swedish only, and @guy038 will do all explanations in a specific japanese dialect, only spoken in a single village, north of gokayama 😂😂😂

    @Dennis-Schlüter
    yes, @PeterJones is absolutely correct.
    as long as you stick to one single encoding (like ansi) and no other software requires anything else (like utf-8), you will be on the safe side.
    and it is better to rely on yourself, choosing the file format encoding, than any auto-detection.

    note: once you manually changed to ansi, please re-check all vital documents for incorrect characters instead of german umlauts, as wrong characters are likely to exist, once the document has been switched back and forth from one encoding to another.

    @PeterJones

    最近私たち全員がますます多言語を話すようになります…

    …それでもこのように続けば、アランはすべての要求にスウェーデン語で答えることになります、そして男は特定の日本語の方言ですべての説明をするでしょう、gokayamaの北の単一の村で話されるだけです😂😂😂

    @Dennis-Schlüter
    はい、@PeterJones は正しいです。
    (ansiのように)1つのエンコーディングに固執し、他のソフトウェアが(utf-8のように)他に必要としない限り、あなたは安全な側にいるでしょう。
    自動検出よりも、ファイル形式のエンコーディングを選択して自分に頼ることをお勧めします。

    注:手動でansiに変更した場合は、文書をあるエンコードから別のエンコードに切り替えた後に、誤った文字が存在する可能性があるため、重要な文書すべてにドイツ語のウムラウトではなく誤った文字がないか再確認してください。

    😉

  • 0 Votes
    8 Posts
    1k Views
    PPsmmP

    Thanks Meta Chuh, that’s a really clever idea - I’ll definitely give this a try

  • 0 Votes
    4 Posts
    1k Views
    Ziad AboramiZ

    Thanks very much.
    It worked fine.
    I have put
    \R(?!(<article>(.+?)</article>))
    Then the same method

    Best wishes

  • How can i use zen coading plugin in Notepad++ 7.6.3 ?

    1
    0 Votes
    1 Posts
    305 Views
    No one has replied
  • 3 Votes
    2 Posts
    2k Views
    Meta ChuhM

    @Drew-Wesley

    this is a nice question and a good idea, but unfortunately not built into notepad++.

    currently it is not possible to start nppftp and connect to a server using command line switches, but it could be done using scripting plugins like pythonscript or luascript as a workaround and playground.

    first you would have to record a macro, as connecting to a specific ftp server can not be triggered by using the menu bar items.

    then, using pythonscript in this example, you can put something like Notepad.runMenuCommand('Macro', 'Connect to your FTP') in your startup.py startup script.

    of course there would be more things to do, like connecting to the corresponding ftp if a file is opened via command line from a specific list of locations, but it’s just an idea, in case you want to dig deeper into scripting.

  • Latest Version: Browser Export

    Locked
    5
    0 Votes
    5 Posts
    5k Views
    PeterJonesP

    Did you edit the right shortcuts.xml? Did you remember to do the exit, notepad++, edit, save, exit, notepad++ sequence that I gave?

    Please give us your ? > Debug Info > Copy debug info into clipboard, and tell us the full path name to the shortcuts.xml that you edited (if it’s still open, RClick on the tab name, select Full File Path to Clipboard).

  • 0 Votes
    6 Posts
    3k Views
    rinku singhR

    @Adriano-Ellero
    it works without plugin but without language name change you can watch at youtube

  • Autocompletion and spaces

    7
    2 Votes
    7 Posts
    1k Views
    Alan KilbornA

    @Adriano-Ellero said:

    To solve this in the end i have to cancel by hand the invisible   and replace it with a “Normal” empty space.

    Seems like you could make that part as painless as possible by recording a macro of the replacement and tying that macro’s execution to a convenient keycombination.

  • autocomplete for complex svg tag

    Locked
    6
    0 Votes
    6 Posts
    938 Views
    Adriano ElleroA

    Thanks a lot Peter, I tried Macro also and I found it simple and “clean enough”…