• Is there any way to use Npp with WSL?

    11
    2 Votes
    11 Posts
    4k Views
    Griffin O'NeillG

    I recently made a script to aid the use of Npp within WSL with the help of wslpath. I was trying to make an easy way to edit files in the WSL filesystem without breaking the rule that Linux files must not be directly edited by Windows software. It seems to work as far as my initial tests go. Take a look here, and feel free to modify it for your own use. (Let me know if you find any better ways to do this).

  • Partial css syntax highlighting does not work

    Locked
    4
    0 Votes
    4 Posts
    771 Views
    andrecool-68A

    Imgur
    :))))

  • 0 Votes
    4 Posts
    688 Views
    PeterJonesP

    @guy038 said:

    I noticed the two consecutive items javascript and javascript.js

    I think this also harkens back to the functionList.xml having two entries (L_JS=19 and L_JAVASCRIPT=58)

    I’m not a specialist of Java,

    Obviously not ☺, since you made the common mistake of confusing Java and JavaScript (or you made a typo).

  • Can't type national signs in ANSI files anymore

    Locked
    3
    0 Votes
    3 Posts
    536 Views
    Cheshire CatC

    You’re right, I installed back the older version and everything went back to normal. Thank you.

  • Json search found field not dark enough

    Locked
    2
    0 Votes
    2 Posts
    506 Views
    EkopalypseE

    @bob-kraft

    how can you search using json viewer plugin?
    Afaik, json viewer shows only a tree like view of your current json file.

    If a normal search is meant, you can change the styling via settings->style configurator->global styles->current line background and/or smart highlighting

  • VS2019 debugging of Notepad++ source code yields admin mode

    Locked
    9
    1 Votes
    9 Posts
    1k Views
    PeterJonesP

    @Alan-Kilborn said:

    I did some of that same research.

    I assumed you would have. But I know that often, I just don’t come up with the right combo of keywords for google to give me the answer that I need. Sometimes it just takes another googler to find it for you – well, for me, anway. Obviously, I didn’t find it for you :-)

    I was hoping you would find a solution. There have been hints at work that a project or two down the road (so probably next year), I’ll be switching from my proprietary-program-language-to-support-hardware-A which I’ve been using for the last decade to a VisualStudio/C++ -with-proprietary-libraries-to-support-hardware-B… so if VS is going to be giving RunAsAdmin difficulties, I was going to want someone else to have blazed the trail to a solution for me. :-)

  • How to select *A to *B in Notepad++

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    Alan KilbornA

    @pranav-garware said:

    I don’t want to scroll down too long either

    An often overlooked N++ command is Begin/End Select on the Edit menu. Find where you want your eventual selection to start and run that command. Then find where you want the future selection to stop (maybe use a Find action for this…or big scrollbar drag…or whatever…) and invoke the command again. Blammo, you now have a big marked selection.

  • How to get correct syntax highlighting for Python 3 formatted strings

    Locked
    9
    1 Votes
    9 Posts
    3k Views
    Giulio.PortioliG

    Thanks all for the comments. Yes, adding those four lines to stylers.xml worked perfectly.

    I’m glad it will be fixed in the next release. I knew the issue must have already been picked up by someone.

  • Notepad++ crashing on startup

    Locked
    17
    0 Votes
    17 Posts
    6k Views
    PeterJonesP

    @Віталій-Лукіянчук said:

    Only -nosession helps.

    I just deleted AppData\Roaming\Notepad++\session.xml and it seems problem is solved.

    Glad it works for you now. (My guess is that you had either a file that no longer exists, or a file that does exist, but on a network drive rather than a local drive… By ignoring or deleting the old session, it stopped trying to access that file, and was able to properly load Notepad++.)

  • Need Assistance Regarding a Find/Replace

    Locked
    5
    0 Votes
    5 Posts
    734 Views
    Justin E. MillerJ

    I got it.
    Find my requested string:
    ^([A-Z])\w+\s+([A-Z])\w+,

    Replace with:
    \n$0

    Making sure match case is set.
    This separates everything out so that it looks like this:
    Bethys Grimlaw, a capable trapper. Has wild blue
    eyes, straight blond hair, a plain face, and a lean
    build. Described as sympathetic though dull.
    Spouse: Senn. 1 child

    Laval Heldsheath, a talented herder. Has large
    blue eyes, wavy red hair, a smooth face, and a
    stocky build. Described as adventurous though
    stubborn. Spouse: Mirri. 2 children

    Jakov Buckhorn, a talented trapper. Has close-set
    brown eyes, dry brown hair, a sculpted face, and a
    willowy build. Characterized as insecure and
    critical. Spouse: Arveera.

    Gothar Longborn, a competent farmer. Has
    knowing blue eyes, brittle auburn hair, a
    blemished face, and a sinewy build. Said to be
    gentle though coy. Spouse: Shatha. 1 child

    Eliminates the issue with lines with no children.

    Do a find\replace of “\r\n” replacing with nothing, changing to extended search mode.
    This made 2500 lines how I needed it out of a document that was originally 9,982 lines long.

  • Notepad++ generates corrupt files for Linux (Shell script)

    Locked
    7
    0 Votes
    7 Posts
    2k Views
    Meta ChuhM

    @dinkumoil

    oooops, my apologies, i just wrote this from top to bottom, after already having done those settings.
    thanks for the correction before anything happens.

    upsi, klaro … ich sollte besser mitschreiben während ich was einstelle, statt danach aus dem gedächtnis.
    sorry, für meinen senf. war gut gemeint, bringt aber natürlich nichts, wenn dadurch das eol format nicht mitgespeichert wird.
    danke für’s ausbessern, bevor was passiert.

    glg

  • 0 Votes
    8 Posts
    934 Views
    Ricardo E. TrellesR

    UPDATE TWO:
    All my concerns and doubts in this post seem to be solved!

    Original, not modified, versions of NP++ come with style for JavaScript/“operator” set to black/bold. Surprisingly that makes all braces/brackets bold by default! One has to remove that original bold setting to have that match check shown with black/bold.

    It seems there is no way to set a full even background color for a language, except when it is embedded. JS (embedded) can be set, PHP too, actualy PHP is always embedded between <?php ?> tags, even if there is nothing else outside the tags. Contents of a JS file isn;t embedded when you check it by itself.
    I had the wrong impresion code of a JS file was shown in a light blue tint for the background, actually it has a white background (I would like to see it as it is when embedded, though!).

    Finally
    3. If one makes a new installation in a fresh folder and copy config.xml from another installation, this config.xml carries a line like
    <GUIConfig name=“stylerTheme” path=“C:\ …\np++previous\stylers.xml” />
    and previous stylers.xml continue to be used in the fresh new installation.

    So now everything is working basically well for me, I 'm happy, and very thankful to Meta Chu for the quick start.

    But I’ll be back. We need a better way to use sessions than having several installations ( or having to save/load sessions files all the time ).

    Thank you for the attention.

  • Batch delete a RANGE OF LINES in multiple files?

    Locked
    4
    1 Votes
    4 Posts
    1k Views
    Alan KilbornA

    @Mike-Mitchell

    Well…let’s see how it goes on your data…

  • 1 Votes
    3 Posts
    647 Views
    ThomasLeighT

    Looks interesting, thank You. I
    decided to use AutoHotkey as a workaround. I can ascribe a keyboard shortcut for it to insert the current date and time. Interestingly, it acts similarly to the TextFX - i.e. it obeys a user’s OS language. So instead of using native syntax to display a month’s name - I’ve used this:

    formattime, monthvar, , MM if (monthvar=01) (cmonth:="January") if (monthvar=02) (cmonth:="February")

    …and so on. And then, if I want to insert the current month’s name:

    send ...some nice %cmonth%
  • Notepad++ não localiza termo procurado existente em arquivo.

    Locked
    2
    0 Votes
    2 Posts
    772 Views
    Alan KilbornA

    @Leandro-Silva

    Can you provide a screenshot of your data and the Find window so we can see your settings? You haven’t provided much detail in order for someone to give help. Info on how to do a screenshot here is found in this link.

  • Bracket Matching in Batch files (.bat)

    Locked
    4
    0 Votes
    4 Posts
    805 Views
    rinku singhR

    in code of .bat do

    if “%tjkdrrdiiff%”==“” (goto notselecteditem) else (goto selecteditem)
    :notselecteditem
    bin\filebrowse UNPACK_REPACK_V3.8_FINAL file_contexts.bin,file_contexts,boot.img, “boot.img|boot;file_contexts” > bin\fil76elocate.txt
    set /p tjkdrrdiiff=< bin\fil76elocate.txt
    if “%tjkdrrdiiff%”==“” (goto ejhcnnsjdj)
    :selecteditem
    del /S/Q bin\fil76elocate.txt

  • Double click on file fails

    Locked
    3
    0 Votes
    3 Posts
    545 Views
    micstanM

    Removed it and reinstalled 7.7x32 didn’t help. removed and installed 5.86, worked, upgraded several iterations, at 7.7 problem reappeared. Copied my preferences, plugins, etc. to a safe area. Completely removed it, deleted folders, went through regedit and deleted all reference to notepad++. Worked up to 7.5.1 and only a minor issue with the old Coldfusion plugin that I had fixed before. I can work at it again or ignore it for the time being. The ColdFusion plugin is probably part of the problem and me forcing x35 may have messed up the “edit with Notepad++”, it appeared that there was enough of x64 left in the registry that windows was trying to start the x64 but only finding the x32 and could not keep it running.

    Thanks…

  • will notepad++ ever be released for mac?

    Locked
    3
    0 Votes
    3 Posts
    623 Views
  • 64Bit causing problems with windows 10

    Locked
    2
    0 Votes
    2 Posts
    499 Views
    Alan KilbornA

    @Alex-Boyd said:

    I would get a message stating to reinstall NotePadStarter

    AFAIK, something called NotePadStarter isn’t related to Notepad++ so I might look really hard at that for this complaint.

  • How to quick insert Unicode characters in Notepad++

    Locked
    2
    0 Votes
    2 Posts
    15k Views
    PeterJonesP

    @acapi said:

    Do I have to use the Charaters Map program and then past it in the window?

    There are other ways. If you have a small handful, you can build macros and assign keyboard shortcuts. Or you could use something like a pythonscript-based procedure that when it sees a certain set of characters (like \U+2261), it could back up and replace it with the unicode character. (There may even be a plugin that does that; I don’t know.)

    If you know the unicode number, like U+2261, you can use the Windows Alt-±hex notation. For example, hold down Alt, then use the numeric-keypad + key, then type the hex digits (where 0-9 should be on the keypad; a-f must be normal keyboard), then release the Alt key. Thus, Alt-+2261 puts the identical-to character.