• File Association gave me more than I bargained for

    8
    1 Votes
    8 Posts
    500 Views
    EkopalypseE

    @Alan-Kilborn
    found some discussion from the community.
    I still haven’t found the problem, maybe it was the linked post
    I mistakenly thought was reported as a problem.

  • Patching?

    2
    0 Votes
    2 Posts
    212 Views
    EkopalypseE

    Notepad++ is an standalone Win32 application. No client/server concept.
    The application itself does get updated whenever Don, the author of npp,
    sees a need to do so.

  • CSV file first field check

    12
    0 Votes
    12 Posts
    757 Views
    SofistanppS

    Hi @Wally-Kempf

    Maybe I’m assuming too much, but if you want to get rid of those false line wraps, extend @Alan-Kilborn 's regex as follows:

    Search: (?s)(\R)(?!"\d{6}",) Replace: \x20

    which produces this two-lines outcome:

    "040339","0006","013","Amherst at City View","","","","","","HOUSTON","TX","77060","17103 IMPERIAL VALLEY DR","227","75.00","8.000000","AI","gate code 2070","","1","","","","","","","","29.946850","-95.396846","1.00","","","174350" "041217","0001","001","PALM BEACH ESTATES ","","","","","","HOUSTON","TX","77060","16818 CITY VIEW PL","227","76.00","8.000000","AI","GATE CODE 1454 SECTION 1 GATE CODE 1453 ACROSS THE STREET ENTRANCE IS ON CITY VIEW OFF BENMAR","","1","","","","","","","","29.934018","-95.396125","1.00","","","174325"

    Best Regards.

  • Notepad++ Run a Batch File From Current Directory

    14
    1 Votes
    14 Posts
    4k Views
    PeterJonesP

    I will try this and will surely tell you if it worked

    It wasn’t so much a “worked” as “we need to see what Notepad++ is sending to the command processor to figure out what’s going wrong”.

    But with the bit of information, it’s irrelevant now:

    I used %cd% to go to the directory… but cd /d "%~dp0" should be used in case of opening batch file

    Yes, the /d makes sense. I tend to forget that changing directory and drive using cd is more difficult; I primarily use single-drive systems (well, at work, we have network drives mapped to letters, but I’m almost never cd-ing into those directories)

    The %~dp0 changes the batch/script name to just be a drive and folder… but since in the NotepadPlusPlus user-commands, you don’t have a batch/script filename, and $(CURRENT_DIRECTORY) already gives what you want (just the drive and folder), you don’t need that part.

    So, the command you need is

    <Command name="Java_Executor" Ctrl="no" Alt="no" Shift="no" Key="0">cmd /k cd /d &quot;$(CURRENT_DIRECTORY)&quot; &amp;&amp; &quot;D:\Projects\Java\Executor_Java.bat&quot;</Command>

    Note: I also put quotes around $(CURRENT_DIRECTORY) as well, in case it has spaces in the path.

    BTW: Thanks for linking to the SO thread; when asking a question in multiple forums, it’s polite to crosslink both right away, so people can see whether it’s already been answered in the other location, or can learn from the other community’s responses.

  • Search line without ending tag

    8
    1 Votes
    8 Posts
    997 Views
  • eseguire il lavoro

    16
    0 Votes
    16 Posts
    1k Views
    Umberto CapuanoU

    Now I have another problem no matter how much you save the file in html on the browser where I run it exit the scripts without letting me see the content (sorry for English)

  • Notepad ++ update

    2
    0 Votes
    2 Posts
    225 Views
    EkopalypseE

    @godavari-gupta

    what about disabling this setting

    3aaf6592-047d-49e7-81fd-fc4a7179021c-image.png

  • Can I style a code starting with $ and ending with a space?

    3
    0 Votes
    3 Posts
    293 Views
    EkopalypseE

    Perhaps also a standard UDL (User Defined Language) can help in your case; this would also make the styling permanent.

    Yes, use $ as a keyword and check prefix box.
    Will color everything starting from $ til first non-word-char.

  • Notepad++ macro not working correctly

    5
    1 Votes
    5 Posts
    5k Views
    guy038G

    Hello, @tarek-faham,

    I’m a bit surprised because this kind of replacement is quite easy to process, even in normal search mode !

    SEARCH ""

    REPLACE "

    giving the new macro :

    <Macro name='UnEscape &quot;&quot; to &quot;' Ctrl="no" Alt="no" Shift="no" Key="0"> <!-- Macro NAME & possible SHORTCUT --> <Action type="3" message="1700" wParam="0" lParam="0" sParam="" /> <!-- Initialization S/R --> <Action type="3" message="1601" wParam="0" lParam="0" sParam='&quot;&quot;' /> <!-- SEARCH "" --> <Action type="3" message="1625" wParam="0" lParam="0" sParam="" /> <!-- NORMAL search mode --> <Action type="3" message="1602" wParam="0" lParam="0" sParam='&quot;' /> <!-- REPLACE " --> <Action type="3" message="1702" wParam="0" lParam="768" sParam="" /> <!-- or 512, if NO Wrap-around --> <Action type="3" message="1701" wParam="0" lParam="1609" sParam="" /> <!-- Replace All, in CURRENT file --> </Macro>

    Best Regards,

    guy038

  • how remove only number in notpad++

    3
    0 Votes
    3 Posts
    3k Views
    guy038G

    Hello, @the-best-of-voice and *All,

    Open the Replace dialog ( Ctrl + H )

    SEARCH ^\h*\d+\h*\R

    REPLACE Leave EMPTY

    Tick the Wrap around option, if all the file must be processed and untick this option if the replacement must occur from current location till the very end of file, only

    Select the Regular expression search mode

    Click on the Replace All button

    Notes :

    From beginning of line ( ^ ), it matches possible horizontal blank characters, as Space, Tabulation ( \h* )

    Followed with a non-null range of digits (\d+ )

    Followed with possible horizontal blank characters, again ( \h* )

    And ended with its EOL chars ( \r\n for Windows files, \n in Unix files or \r in Mac files )

    As replacement zone is EMPTY, the entire line, containing digits, only, with possible blank chars, is then deleted

    Best Regards,

    guy038

  • Replace all spaces with a dash (-) but with a certain limit !

    9
    0 Votes
    9 Posts
    1k Views
    Antoine GautierA

    this lesson is well understood :)

    I’m an amateur in website creation, and I have several pages under different names, that I have to put dashes (-) instead of Space and at the end of each line before the / I’ll add extension .html and the rest after (/) is the title of each page.

  • 0 Votes
    2 Posts
    330 Views
    Alan KilbornA

    @Don-Patton

    Maybe try a file compare on the original file and the file after alteration with Notepad++? It seems like something unintended is getting changed (I guess that is a fairly obvious statement).

  • [BUMP] Previous installation not detected?

    10
    0 Votes
    10 Posts
    729 Views
    Alan KilbornA

    @TBugReporter

    if I use fifteen programs by Compatublo, eight by DidgeryDot, and twelve from NaNsoft…

    I’ll bet that you don’t. :-)

    when the fix might only require a three line code change

    People that make these kinds of statements, and we seem to see them a lot here, just show they don’t know what they are talking about.

    create an issue on the GitHub…done

    And well done at that.

    devs should also be allowed to decide for themselves

    They surely do. Those people are golden, and in general, underappreciated. Three cheers.

  • Find text and replace at the top of file

    10
    0 Votes
    10 Posts
    556 Views
    Srirup DasS

    Thanks @Alan-Kilborn and @guy038 . Both of them worked what I was looking for. I’m still new to regular expressions, but I will try to dig in more on both of your solutions.

  • "Open all" from Search result window takes a LOOONG time?

    11
    2 Votes
    11 Posts
    666 Views
    guy038G

    Hi, @alan-kilborn, @ekopalypse and all,

    Alan, I gave it a try to verify the behavior of my very old and weak XP SP3 system, on my old NEC M350 laptop ;-))

    Some time ago , for various tests, I downloaded the N++ source files, so the two folders PowerEditor and scintilla in a new folder, named Sources. With my last installed N++ release ( v7.8.3 ) I ran the following Files in Files search

    Search "(?-s)the.*not" (167 hits in 45 files) D:\@@\770\Sources\PowerEditor\bin\license.txt (18 hits) D:\@@\770\Sources\PowerEditor\bin\readme.txt (1 hit) D:\@@\770\Sources\PowerEditor\src\MISC\Common\Common.h (1 hit) D:\@@\770\Sources\PowerEditor\src\MISC\Common\mutex.h (4 hits) D:\@@\770\Sources\PowerEditor\src\MISC\Common\Sorters.h (2 hits) D:\@@\770\Sources\PowerEditor\src\MISC\Common\verifySignedfile.h (1 hit) D:\@@\770\Sources\PowerEditor\src\MISC\PluginsManager\Notepad_plus_msgs.h (7 hits) D:\@@\770\Sources\PowerEditor\src\TinyXml\tinyxml.h (15 hits) D:\@@\770\Sources\PowerEditor\src\TinyXml\tinyXmlA\tinyxmlA.h (15 hits) D:\@@\770\Sources\PowerEditor\src\uchardet\CharDistribution.h (4 hits) D:\@@\770\Sources\PowerEditor\src\uchardet\JpCntx.h (4 hits) D:\@@\770\Sources\PowerEditor\src\uchardet\nsBig5Prober.h (4 hits) D:\@@\770\Sources\PowerEditor\src\uchardet\nsCharSetProber.h (4 hits) D:\@@\770\Sources\PowerEditor\src\uchardet\nsCodingStateMachine.h (4 hits) D:\@@\770\Sources\PowerEditor\src\uchardet\nscore.h (4 hits) D:\@@\770\Sources\PowerEditor\src\uchardet\nsEscCharsetProber.h (4 hits) D:\@@\770\Sources\PowerEditor\src\uchardet\nsEUCJPProber.h (4 hits) D:\@@\770\Sources\PowerEditor\src\uchardet\nsEUCKRProber.h (4 hits) D:\@@\770\Sources\PowerEditor\src\uchardet\nsEUCTWProber.h (4 hits) D:\@@\770\Sources\PowerEditor\src\uchardet\nsGB2312Prober.h (4 hits) D:\@@\770\Sources\PowerEditor\src\uchardet\nsHebrewProber.h (4 hits) D:\@@\770\Sources\PowerEditor\src\uchardet\nsLatin1Prober.h (4 hits) D:\@@\770\Sources\PowerEditor\src\uchardet\nsMBCSGroupProber.h (4 hits) D:\@@\770\Sources\PowerEditor\src\uchardet\nsPkgInt.h (4 hits) D:\@@\770\Sources\PowerEditor\src\uchardet\nsSBCharSetProber.h (4 hits) D:\@@\770\Sources\PowerEditor\src\uchardet\nsSBCSGroupProber.h (4 hits) D:\@@\770\Sources\PowerEditor\src\uchardet\nsSJISProber.h (4 hits) D:\@@\770\Sources\PowerEditor\src\uchardet\nsUniversalDetector.h (4 hits) D:\@@\770\Sources\PowerEditor\src\uchardet\nsUTF8Prober.h (4 hits) D:\@@\770\Sources\PowerEditor\src\uchardet\prmem.h (4 hits) D:\@@\770\Sources\PowerEditor\src\uchardet\uchardet.h (4 hits) D:\@@\770\Sources\PowerEditor\src\Utf8.h (1 hit) D:\@@\770\Sources\PowerEditor\src\Utf8_16.h (1 hit) D:\@@\770\Sources\PowerEditor\src\WinControls\PluginsAdmin\pluginsAdmin.h (1 hit) D:\@@\770\Sources\PowerEditor\src\WinControls\shortcut\shortcut.h (1 hit) D:\@@\770\Sources\scintilla\cocoa\PlatCocoa.h (1 hit) D:\@@\770\Sources\scintilla\cocoa\ScintillaView.h (1 hit) D:\@@\770\Sources\scintilla\doc\Lexer.txt (1 hit) D:\@@\770\Sources\scintilla\include\Platform.h (2 hits) D:\@@\770\Sources\scintilla\License.txt (1 hit) D:\@@\770\Sources\scintilla\src\AutoComplete.h (1 hit) D:\@@\770\Sources\scintilla\src\CaseConvert.h (1 hit) D:\@@\770\Sources\scintilla\src\Document.h (1 hit) D:\@@\770\Sources\scintilla\src\Style.h (1 hit) D:\@@\770\Sources\scintilla\src\ViewStyle.h (1 hit)

    Presently, my current session already contained 36 opened files, in various folders

    The search directory was D:\@@\770\Sources and the filters zone contained *.txt *.h. All the search was done in 1,9 s

    Note that the total size, of these 45 files, is not very important : 336,206 bytes

    The opening, within N++, of these 45 files, with the Open All option, took 3,09 s Then, I just have to use 45 times the Ctrl + W shortcut to get rid of all these additional test files ;-))

    May be, you could open the Windows Event Manager ( eventvwr.msc ), choose System, then the menu option View > Filter.... Now, tick Error events only and valid. You may also choose disk in the event source list, for an additional filtering ?

    Best Regards,

    guy038

  • Make ctrl-shift-tab move like ctrl-tab

    6
    1 Votes
    6 Posts
    734 Views
    Alan KilbornA

    @VTGroupGitHub said in Make ctrl-shift-tab move like ctrl-tab:

    In case anyone needs this in the future, choose “Settings” / “Shortcut Mapper”

    Your description is specific to what you’ve configured, but in general, that’s how you’d remap anything, so really, you’ve created a general description of how to use Shortcut Mapper. :-)

  • Two instances, dnd works to first, not to second?

    11
    0 Votes
    11 Posts
    761 Views
    Alan KilbornA

    @Ekopalypse

    Only changes by the instance which get closed last will be saved.

    Oh, yea. Knew that. Another reason to dislike M.I. :-)

  • Persistent highlight of characters (e.g. no-break space)

    14
    1 Votes
    14 Posts
    1k Views
    EkopalypseE

    @Alan-Kilborn

    I’m not sure what the code is you’re showing.

    It’s cythonized python code :)
    Basically this
    editor.callbackSync(self.on_updateui, [SCINTILLANOTIFICATION.UPDATEUI])
    is equivalent to

    cdef void beNotified(SCNotification *notifyCode): global notification if notifyCode.nmhdr.code == SCN_UPDATEUI: mark_spaces()

    With pythonscript on_updateui would handle the notifcation and
    here it is mark_spaces.

    mark_spces uses SendMessage method to do the communication with
    scintilla to show and proof that this message can be used to some
    certain of degree, so this can’t be the only reason. I assume it has to do
    with locking/releasing GIL and threads but I’m not going to dig deeper
    as I’m working on a replacement for PS - so from my point of view it doesn’t make sense to spent time on it. :)

  • auto complete\insert multiple html tags?

    9
    0 Votes
    9 Posts
    1k Views
    mzeshleM

    @mzeshle I solved the issue after looking at the error the Python Script plug-in console was showing. So to solve it, you can download the x64 from https://github.com/emmetio/npp/issues/19#issuecomment-383800041 then making sure to:

    Install the python script plug-in Copy everything (python scripts) in the Emmet folder except the .dll to the scripts folder of Python Script plug-in. Make sure to go to Settings>Shortcut Mapper to change the default Emmet shortcut something other than ctrl-alt-enter because this has conflict with another NPP shortcut

    It worked! thank you all guys!

  • Opening the same file in multiinstance

    2
    0 Votes
    2 Posts
    245 Views
    Alan KilbornA

    @gr-ch

    Sounds like a case of wanting too much. Multiple instances are fully independent and (future instances – where this would have to be detected) have no real (reasonable) way of knowing what files another instance has open.