• hotkey to browse user UDLs

    5
    0 Votes
    5 Posts
    1k Views
    PeterJonesP

    @MaximiIian said in hotkey to browse user UDLs:

    I just downloaded 100 or so and am quite curious.

    WooHoo! We apparently have an actual user of https://github.com/notepad-plus-plus/userDefinedLanguages. I’m glad that wasn’t wasted effort.

    @MaximiIian , like @Alan-Kilborn , I would highly recommend only keeping the UDL that you’re actually likely to use. If you do that, then the extension-awareness should usually not conflict with each other, and Notepad++ can automatically pick the right UDL for your file based on file extension. For example, I have Markdown defined as a UDL (though it’s a different UDL than comes with Notepad++ natively), with the extension list of md markdown readme, so if I go File > New then File > Save As, and save a file with any of .md or .markdown or .readme, Notepad++ will immediately apply my Markdown UDL to the active file, even before I’ve started typing anything – no Language pulldown menu required; or if I go File > Open and pick something.readme, it will automatically apply the Markdown UDL when it opens that pre-existing file as well.

    The only times I ever really use the Language menu:

    When defining a new UDL or editing an existing UDL for my own use When I’m helping someone in this forum, and I want to do something strange like intentionally applying CSS or JS highlighting to an HTML file when I have a quick File > New tab that I’m never going to save, but want to quickly apply a temporary UDL to the temporary file buffer. (unlike some, I don’t generally save a file for each person on the forum I help; sorry. I just use the forum itself as my archive of what I’ve done for others; NPP screenshots for the forum, OTOH, I rarely get around to deleting, despite the fact that they’re archived here and for my animated ones at imgur as well. Which reminds me, probably about time to clean out my NPP image directory on my work laptop. Thanks. :-) )

    That said, once you’ve pared it down to a manageable set of actually-used UDL, if you have a couple that you like switching between (akin to toggling generic XML to a specific XML-based language, or some such), there was a whole thread (https://community.notepad-plus-plus.org/topic/18988/how-to-change-syntax-via-hotkey) about various ways to switch between syntax highlighters (between two builtin lexers or between two UDLs); you might want to read through that thread, and see if any of that helps you.

  • word character list - special characters █►◄ not selected as expected

    12
    0 Votes
    12 Posts
    2k Views
    Alan KilbornA

    @astrosofista said

    caret…move in circles from the beginning to the end of the word: \A(?=\b).

    You must mean with Wrap around ticked.
    I’m not surprised by the behavior of this regex.

    It makes sense how it is working.
    Well, within the confines of Notepad++ anyway. :-)

  • Make vertical scroll bar darker

    18
    0 Votes
    18 Posts
    2k Views
    Makwana PrahladM

    Hello ,@Michael-Vincent

    Please try this information,To Make vertical scroll bar darker

    Control Panel
    Display
    Appearance
    Advanced
    Item: 3D Objects Color 1: <-darker colour->
    Item: Scrollbar Size: <-larger size->

    I hope this information will be usefull for you.
    Thank You.

  • how delete a specific line and next line?

    3
    0 Votes
    3 Posts
    251 Views
    김성찬

    @astrosofista said in how delete a specific line and next line?:

    (?-s)Not dissected data bytes (\d+ bytes):\R^.*\R

    thanks your comment
    i do it this way well

  • Changing Text Direction RTL/LTR hotkey to Ctrl+right/left shift

    4
    0 Votes
    4 Posts
    3k Views
    PeterJonesP

    @amymor said in Changing Text Direction RTL/LTR hotkey to Ctrl+right/left shift:

    @Ekopalypse
    i cant set ctrl+right shift or left shift. is it impossible?
    ty

    All keyboard shortcut assignments have to have one actual key, along with 0 or more modifier keys. Ctrl and Shift are both modifier keys (so is Alt), and keyboard shortcuts cannot tell the difference between left-shift and right-shift, so you have to pick an actual key (from the drop-down choices) to go with it.

    You could choose something like Ctrl+Shift+Left and Ctrl+Shift+Right to use the left and right arrows in combination with the control and shift keys. However, both of those are usually mapped to select-word-left and select-word-right. At least in mine, Ctrl+Alt+Shift+Left and Ctrl+Alt+Shift+Right aren’t used, so you could map them to all three modifiers plus the left and right arrow keys.

  • Why NotePad++ doesn't edit Dart codes?

    4
    0 Votes
    4 Posts
    9k Views
    Dark GTD

    Better choice is to select “SmallTalk”, much more highlights.

  • Show git status in the sidebar

    1
    0 Votes
    1 Posts
    228 Views
    No one has replied
  • Comparing text files that are sorted differently - similar function lists

    1
    0 Votes
    1 Posts
    249 Views
    No one has replied
  • I want to make a certain range one line

    2
    0 Votes
    2 Posts
    170 Views
    guy038G

    Hello, @김성찬 and All,

    Here is a method, using regular expression syntax :

    Open the Replace dialog ( Ctrl + F )

    SEARCH ^\R|(\R)(?!\R)

    REPLACE ?1\x20

    Tick the Wrap around option, if necessary

    Select the Regular expression search mode

    Click on the Replace All button

    Voila !

    Notes :

    The search regex tries to match, either :

    True empty lines ( part ^\R ), which are deleted during replacement

    EOL char(s), stored in group 1 ( as embedded in parentheses ) ONLY IF  not followed with others EOL character(s) ( part (\R)(?!\R) )

    In replacement, when group1 exists ( second alternative ) we replace the line-break with a space char

    Best Regards

    guy038

  • Not able to download dictionary for DSpell Check plugin

    1
    0 Votes
    1 Posts
    225 Views
    No one has replied
  • Help with changing view of single line

    7
    0 Votes
    7 Posts
    13k Views
    Alan KilbornA

    If the OP really wants an “alternate view” of the file, I think the true answer might be to use a script to capture the opening/closing events. The opening even could do the replacement operation I provided earlier and the closing/saving event could put the data all back on one line. I’m keeping this rather vague because the OP was rather vague about the whole thing.

  • Shell language highlighting completely fucked after upgrade

    2
    0 Votes
    2 Posts
    230 Views
    EkopalypseE

    @Santiago-DIEZ

    That’s a big version jump, a lot of changes etc…
    I assume you have to delete, risking to loose all custom changes if any done, stylers.xml, langs.xml and let it recreate during npp startup.
    Depending on your configuration those files are on different places.
    See here for more details.

  • reopening unsaved document(urgent)

    2
    0 Votes
    2 Posts
    213 Views
    Alan KilbornA

    @Elif-Taşkın

    If it was a file you had taken the time to give a name to on disk, when you close it, the last saved version would be there.

    However, if you were operating on an “I’m not going to save my files, I’m going to let Notepad++ keep track of them” basis, then if you close it and say no to the prompt to save, IT’S GONE.

  • Why is my macro not working?

    6
    0 Votes
    6 Posts
    743 Views
    yhjtgt6hhrf 4frtgyY

    Have same problem, restart macro

  • Notepad++ 7.1: network drives not visible

    4
    0 Votes
    4 Posts
    6k Views
    Costa ZachariouC

    @Stickleback-Ne Thank you. Works like a charm… :-)

  • Need help filtering lines starting with same strings

    10
    0 Votes
    10 Posts
    4k Views
    Terry RT

    @guy038 said in Need help filtering lines starting with same strings:

    Ah, Terry, nice shot ! Just one question :

    I guess I’m not a greedy person😉. Actually I guess I just didn’t proof my solution well enough. I had a concept in my mind, quickly tested it, found it worked and posted.

    Of course as I was intending to grab the whole line use of the lazy parameter was just a rookie mistake. At least no harm, no foul, eh? (<-- oops, there it goes again)

    Terry

  • I have some problems making my own Language.

    3
    0 Votes
    3 Posts
    1k Views
    EkopalypseE

    Not sure you can do this but what I normally do in such a case is
    using Delimiters with different open but same close tags
    and one unique folder setting.
    Something like this for example

    6991876e-76a0-4151-ab08-49528ce7831c-image.png

    c0613137-4dd1-4911-8cbc-d811353fc66f-image.png

  • Webedit working but prompt every time

    2
    0 Votes
    2 Posts
    203 Views
    EkopalypseE

    @Vikrant-Chauhan

    sounds like you are trying to load a plugin which has a different “bitness”
    as to compared to Npp. For example, trying to use a 32bit plugin with a 64bit Npp or vice versa.

  • Deleting characters after 30,000 length

    9
    0 Votes
    9 Posts
    1k Views
    Alan KilbornA

    @Matt-Bennett

    This is true but probably the OP has no idea what gnu/cut/linux/cygwin/wsl are.
    As this is a Notepad++ forum, please try to confine answers to techniques within Notepad++ unless there truly is no way to do it with Notepad++.

  • no Auto-Indent in Preferences Misc in version 7.8.5

    3
    0 Votes
    3 Posts
    223 Views
    Eric MüllerE

    Great, that is it! Thanks!