• 0 Votes
    12 Posts
    2k Views
    Un KnownU

    Peter jones

    THANK YOU SO MUCH!!! that worked!

  • Any Help Appreciated.

    10
    0 Votes
    10 Posts
    2k Views
    guy038G

    Hello, @cal-Murphy, @terry-r, @peterjones, @alan-kilborn and All,

    Yes, Alan, I must admin that this syntax is really confusing for most people and doesn’t provide a sustential benefit, unless you use this particular syntax below :

    SEARCH (?x-is) \x20 (?# SPACE char ) \( (?# OPENING Paren. ) .+ (?# Some STANDARD chars) (?= \. [ ]Filename ) (?# ONLY IF '. Filename' after ) | (?# OR ) \x20 (?# SPACE char ) \( (?# OPENING Paren. ) [^(\r\n]+ (?# some NOT PAREN. chars ) (?= \. flac ) (?# ONLY IF '.flac' after )

    Note that I still use the \x20 syntax because the [ ] syntax does not work in this forum ??

    However, I kept my free-spacing regex as a single line to avoid the multi-lines bug in some cases !

    BTW, @cal-murphy, do you remember that you asked us, six months ago, about a similar problem, which was relative to the same bunch of data !

    Refer to :    https://community.notepad-plus-plus.org/topic/24415/copy-then-paste-elsewhere

    Cheers,

    guy038

  • In Selection now configurable

    2
    0 Votes
    2 Posts
    231 Views
    L

    Hi,

    I think it refers to the new option in the “Searching” section of the “Preferences” dialog where you can change the number of selected characters to automatically check the “In-selection” option in the Find dialog.

    Better explanations in the user manual (https://npp-user-manual.org/docs/preferences/#searching) and the tooltip in the input field of the new option in the “Preferences” dialog.

  • Poor scrolling performance with maximized window

    5
    0 Votes
    5 Posts
    417 Views
    DavidG2PD

    Agree.

    Also, Word scrolls the text “dumb”, while Notepad++ looks out for all sorts of things all the time, like matching brackets relative to cursor (and stuff).

    Anyway, since I admire Notepad++ so much, I had thought that also the scrolling performance must be world class. It probably is, taking all its capabilities into account.

  • shortcuts.xml

    6
    2 Votes
    6 Posts
    700 Views
    Alan KilbornA

    Will be fixed with the release of Notepad++ 8.5.9!

  • SQL variable font color change

    2
    0 Votes
    2 Posts
    1k Views
    PeterJonesP

    @Bogdan-Linchuk ,

    By default, no.

    However, the underlying Lexilla library that Notepad++ uses for syntax highlighting does have some styles that Notepad++ doesn’t currently list in the Style Configurator, so with a small configuration change, I think you can get what you want.

    Since I’m not an SQL user, I picked the first hit when I searched the internet for SQL at-variable that gave some example SQL code, and used that for testing:

    DECLARE @TestVariable AS VARCHAR(100) SET @TestVariable = 'One Planet One Life' PRINT @TestVariable

    If I follow the “Editing Config Files” instructions from the User Manual, and edit stylers.xml as follows:

    File > Open %AppData%\Notepad++\stylers.xml
    – if you are using a specific theme, rather than the default stylers.xml theme, you will have to edit the theme in your ...<install_directory>...\themes\ThemeName.xml Go to the <LexerType name="sql" section Add a new line after <WordsStyle name="Q OPERATOR" ... /> :
    <WordsStyle name="IDENTIFIER" styleID="11" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" /> Save Exit Notepad++ and Restart Now Settings > Style Configurator > SQL will have the IDENTIFIER line in the Style box, and you can set the color of identifiers
    81e3a63e-b0ec-46ce-b9ac-6684ac416d2d-image.png
    It doesn’t change the color of the @ symbol itself, but it seems to correctly colorize the variable’s name, anyway.

    If that’s not enough for you, then you could use the plugin EnhanceAnyLexer to define a regex like @\w+\b and define a foreground color for the whole @TestVariable expression.

    The Lexilla lexers have added new styles over the years, but as Notepad++ has updated to the newest lexers, the developers don’t go in and read all of the lexers’ source code (there are upwards of 80 lexers that Notepad++ has active) to find out of any have added style categories, and so they don’t know that they should update stylers.xml or the themes\DefaultDarkTheme.xml to make those extra styles available to users (and the other themes virtually never get updated).

    So, unless a power-user of a particular lexer goes looking through the source code of that lexer, figures out the right name/styleID pairing for any styles not available in Style Configurator, updates their copy of stylers.xml/DefaultDarkMode.xml, and then create an issue with the Notepad++ Developers to ask them to incorporate that updated definition, those new styles are not likely to ever get updated in the stylers.xml/DefaultDarkMode.xml that get distributed with Notepad++.

  • Reverse Lines

    13
    0 Votes
    13 Posts
    6k Views
  • 0 Votes
    8 Posts
    2k Views
    F

    @PeterJones : Those plugins (…)
    @Thomas-Knoefel

    OK, good to know, I asked because I’m not a mathematician, nor have I ever used any math plugins, but it’s always worth mentioning plugins even if they turn out to be not much helpful, than not mentioning and later they turn out to be useful and no one knew/mentioned about it.

    @PeterJones : Please move any Math-and-Notepad++discussion that’s not relevant to @ Big-Smoke’s original question into that new topic.

    Besides, also I didn’t want to create a separate thread because I only wanted to post a single comment, not to create a discussion and not to litter the forum with unnecessary threads, also like I said - I don’t use math plug-ins anyway, hence I won’t participate in the discussion.

  • Auto insert break text every x amount of lines

    9
    0 Votes
    9 Posts
    3k Views
    Andrew CaseyA

    excellent worked great thank you

  • Text automate activity

    2
    0 Votes
    2 Posts
    185 Views
    CoisesC

    @Fabian-Gonzalez
    Use Search | Replace… and set:

    Find what : \R(?!\d)
    Replace with : (leave empty)
    Search Mode: Regular expression

    then click Replace All.

  • Search line that start with " but not close with "

    3
    0 Votes
    3 Posts
    507 Views
    mkupperM

    @Coises I’m also wondering if the OP noticed or wants something done with the curly quotes on

    KAJ-000-1-1-FontStyle=“Bold” KAJ-000-1-1-FontColor=“Blue” KAJ-000-1-1-WidthCentering=“Center” KAJ-000-1-1-HeightCentering=“Center”

    @FBI-Yuuki - It’s not clear if the curly quotes in your message was due to the message board doing stuff or if the curly quotes are in your data. The Template for Search/Replace Questions offers a hint in using using ``` backticks when posting questions to this message board. Using that suggested format will make the quotes issue clearer to others.

  • Saving Style Tokens

    5
    0 Votes
    5 Posts
    1k Views
    PeterJonesP

    @User123413467457 said in Saving Style Tokens:

    If I were to send this file to a friend would it send it with the UDL or would I have to do that separately?

    @Ekopalypse gave you the right answer. However, given the way you phrased that, and re-reading your original question, I think it might help you conceptually if you read this FAQ

  • 1 Votes
    20 Posts
    2k Views
    guy038G

    Hello, @coises and All,

    You may, also, refer to this topic, that I wrote after that a new version of the Boost regex library comes out and was available within Notepad++ :

    https://community.notepad-plus-plus.org/topic/19632/new-backtracking-control-verbs-feature-available-since-notepad-v7-7/1

    BR

    guy038

  • Automatic indent on next line

    3
    0 Votes
    3 Posts
    283 Views
    Nicholas Piazza 0N

    Got it! Thanks!

  • recognize file with "UDL"

    3
    0 Votes
    3 Posts
    498 Views
    Ninon_1977N

    @Ekopalypse Thank you very much - I will give it a try.
    BR,
    Heike

  • Pythonscript plugin / console not working

    19
    2 Votes
    19 Posts
    2k Views
    Fuel DZNF

    @PeterJones Thank you, resizing the panel just fixed it. I don’t know why it didn’t work before.

  • Changing to Dark Mode changes the tab icons

    3
    0 Votes
    3 Posts
    304 Views
    Rei Da TecnologiaR

    Ok, thanks for replying. I will go for the hacky method then.

  • Can't get autoComplete to work with UDL

    3
    0 Votes
    3 Posts
    389 Views
    J

    @PeterJones said in Can't get autoComplete to work with UDL:

    The auto completion XML filename must match the name of the UDL, not the extension.

    Thank you for this. I was under the impression it had to be the extension name. I changed the name and it works now. Thanks again.

  • Input hex 0x1F

    3
    0 Votes
    3 Posts
    863 Views
    Mark OlsonM

    HtmlTag version 1.4.0 allows you to automatically replace a character with any hex value by just hitting &#x<hex value>; followed by the space key.
    Before hitting space:
    26152252-dec8-4d05-b80b-ba74a87ead4c-image.png
    After hitting space:
    ad151fb8-96ca-4d4a-9de2-9831ecf98771-image.png
    Incidentally, this (with 09 as hex value) is my preferred way of inserting a literal tab character when automatic tabs-to-spaces conversion is enabled.

  • FTP and managing local files - connect local and server files?

    3
    0 Votes
    3 Posts
    732 Views
    Joel ShortJ

    Thanks for the reply. I’m looking for an alternative to Dreamweaver because I have an old version (CS4) and it appears to be no longer compatible with Windows 11. After a Windows update DW is very unstable. The only thing I used DW for was a little bit of HTML editing and FTP upload.

    I came across a prior discussion regarding the Global Cache idea but I’m not sure I want to mess around with that. No worries, I think I’ll go with something else, like Coffeecup HTML editor.