• Hyperlink problem

    2
    0 Votes
    2 Posts
    108 Views
    Alan KilbornA

    @Colin-Troth

    I think you might find your answer HERE.

  • How to remove paragraphs with specific pattern ?

    11
    0 Votes
    11 Posts
    2k Views
    Harl XuH

    Hi @guy038 , and All

    Thank you for taking some extra work to explain the differences. Those schematic and details… You are so cool… :)
    Then like I said in above post, regex 3 is what I need.

    Best Regards,

    Harl

  • Colouring the text

    2
    0 Votes
    2 Posts
    150 Views
    EkopalypseE

    @Silent-Pill

    something like this?

  • Bind extension (filetype) to theme

    2
    0 Votes
    2 Posts
    179 Views
    EkopalypseE

    @Sebastian-Janik

    short answer, no.

  • Strange tab behaviour in text

    5
    0 Votes
    5 Posts
    882 Views
    lar3rycaL

    @lar3ryca said in Strange tab behaviour in text:

    Thank you!!!
    I had the Elastic Tab Stops installed. No idea why.
    Now I wonder where you set the tab length. I obviously set it before, but I can’t find the setting now.
    Thanks again!

    Never mind. Found it.

  • Removing numbers and emoji

    6
    0 Votes
    6 Posts
    2k Views
    astrosofistaA

    @guy038 said in Removing numbers and emoji:

    our Boost regex engine is, generally, not able to find them properly

    @guy038, yes sorry, you’re right, I was misguided by my PCRE education :(

  • Backspace Unindents

    24
    1 Votes
    24 Posts
    2k Views
    Alan KilbornA

    Based upon @guy038’s in-depth treatment just ABOVE, and some experimentation on my own based upon it, I decided that I think I don’t like how Scintilla’s backspace-unindents works. :-(

    So I am getting rid of the script I posted above, and going back to the script I had previously (where I did things much more “manually”), which did more of what I want/expect. :-)

  • Adding at the number on the beginning of every line

    5
    0 Votes
    5 Posts
    332 Views
    guy038G

    Hello, @ryan-jay-alfonso and All,

    Ah, OK ! Here is the macro code that does the work :

    <Macro name="Test_#" Ctrl="no" Alt="yes" Shift="no" Key="187"> <!-- Shortcut : ALT + = --> <Action type="3" message="1700" wParam="0" lParam="0" sParam="" /> <!-- Search Initialisation --> <Action type="3" message="1601" wParam="0" lParam="0" sParam="#$" /> <!-- Search Regex : # at END --> <Action type="3" message="1625" wParam="0" lParam="2" sParam="" /> <!-- Regular Expression mode --> <Action type="3" message="1702" wParam="0" lParam="512" sParam="" /> <!-- Search Downwards --> <Action type="3" message="1701" wParam="0" lParam="1" sParam="" /> <!-- Hit on Find Next button --> <Action type="0" message="2453" wParam="0" lParam="0" sParam="" /> <!-- Hit on HOME key --> <Action type="1" message="2170" wParam="0" lParam="0" sParam="1" /> <!-- Writing of the digit 1 --> <Action type="1" message="2170" wParam="0" lParam="0" sParam="0" /> <!-- Writing of the digit 0 --> <Action type="1" message="2170" wParam="0" lParam="0" sParam="0" /> <!-- Writing of the digit 0 --> <Action type="0" message="2451" wParam="0" lParam="0" sParam="" /> <!-- Hit on END key --> </Macro>

    Remark :

    If you’re totally sure that the # only occurs, once, at the end of some specific lines, we can, simply, use the Normal search mode, giving the following macro code :

    <Macro name="Test_#" Ctrl="no" Alt="yes" Shift="no" Key="187"> <!-- Shortcut : ALT + = --> <Action type="3" message="1700" wParam="0" lParam="0" sParam="" /> <!-- Search Initialisation --> <Action type="3" message="1601" wParam="0" lParam="0" sParam="#" /> <!-- Search of the # symbol --> <Action type="3" message="1625" wParam="0" lParam="0" sParam="" /> <!-- Normal search mode --> <Action type="3" message="1702" wParam="0" lParam="512" sParam="" /> <!-- Search Downwards --> <Action type="3" message="1701" wParam="0" lParam="1" sParam="" /> <!-- Hit on Find Next button --> <Action type="0" message="2453" wParam="0" lParam="0" sParam="" /> <!-- Hit on HOME key --> <Action type="1" message="2170" wParam="0" lParam="0" sParam="1" /> <!-- Writing of the digit 1 --> <Action type="1" message="2170" wParam="0" lParam="0" sParam="0" /> <!-- Writing of the digit 0 --> <Action type="1" message="2170" wParam="0" lParam="0" sParam="0" /> <!-- Writing of the digit 0 --> <Action type="0" message="2451" wParam="0" lParam="0" sParam="" /> <!-- Hit on END key --> </Macro>

    Now,

    First, determine the location of your active shortcuts.xml configuration file. It depends if you have a local N++ install or not :

    Along with the notepad++.exe file, for a local configuration, in any folder different from C:\Program files[(x86)]

    In the path %AppData%\Notepad++, in case of use of the installer to install N++

    Stop any Notepad++ instance

    Insert 1 of the codes, above, in the <Macros>........</Macros> node of your active shortcuts.xml file and save it

    Restart Notepad++

    Select your file tab

    Insert a dummy xxx# line, without line-break, at the very end of the file ( This line must satisfy the search ! )

    Go to the very beginning of file ( Ctrl + Home )

    Click on the Macros > Run a Macro Multiple Times... menu option

    Select the Test_# macro, in the drop-down list

    Choose the Run until the end of file option

    Click on the Run button

    Reminder : You must move to the very beginning of your file, before running the Run until the end of file option

    Best Regards,

    guy038

  • hotkey to browse user UDLs

    5
    0 Votes
    5 Posts
    445 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
    1k 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
    1k 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
    209 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
    8k Views
    Dark GTD

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

  • Show git status in the sidebar

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

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

    2
    0 Votes
    2 Posts
    121 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
    175 Views
    No one has replied
  • Help with changing view of single line

    7
    0 Votes
    7 Posts
    12k 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
    179 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.