• Colour problems with a CSS source

    12
    0 Votes
    12 Posts
    708 Views
    PeterJonesP

    @DomOBU said in Colour problems with a CSS source:

    This does not prevent:

    That’s because you only followed some, not all, of @mpheath’s advice.

    here’s a series of screenshots that show:

    the default rendering of the two examples from above the rendering when all you do is add the user-defined IDENTIFIERs the rendering when you run editor.setProperty('lexer.css.scss.language', 1) in the PythonScript plugin (or use another scripting plugin’s syntax to set that property)

    f1b691f6-e5cd-4c8e-ad18-54634f695c5a-image.png

    In the final rendering, you can see:

    both the percentages in 100% {...} and 0% {...} are the same blue, rather than being different colors the first offset-distance is the same color to the second all three margin-left in the third example are the same color now

    Actually, that’s pretty small, so zooming in on the third screenshot:

    670a4baa-3fe1-4758-ac5c-6513ea3df56b-image.png 7f533438-c869-40d6-9423-95a0af19a322-image.png

    It might need a callback to survive changing tabs.

    I confirmed, if you set the property, then switch to a different tab and back to the CSS tab, the CSS rendering will go back to the “middle” version rather than the “right” version. So one would definitely need a callback to maintain that setting when changing tabs.

  • Default save location

    4
    0 Votes
    4 Posts
    485 Views
    TBugReporterT

    @th-ch said in Default save location:

    Btw i m not a beginner.😁

    Neither am I, but I’ve also kept Desktop as the default save location. (I usually have at least two Explorer windows open, and one of them will be focused on the real intended file location, so I can drag the file there after saving (and maybe drag again from there back to N++ to put it in the Recent list). This way I never have to double-check that N++ is really set to the right save folder.

  • please help me !

    3
    0 Votes
    3 Posts
    208 Views
    Hatim MelloukiH

    @Coises thank you very much sir

  • how do I select only the files missing when I campare two docs?

    2
  • Where's my document shortcut list?

    3
    0 Votes
    3 Posts
    227 Views
    Alan KilbornA

    @bulrush15 said in Where's my document shortcut list?:

    …a document list where I could add a shortcut to my…

    Maybe you had a version of N++ where you had the Explorer plugin installed; it has such a functionality (if I’m interpreting what you are describing correctly).

    EDIT: Peter said: “Or did you have a plugin which has the ability to add Shortcuts? I believe the Explorer plugin has the ability to use shortcuts.”

    I think I’m “channeling” Peter, but maybe I should be fully reading his posts that occur before mine.

  • Coloring log files

    5
    0 Votes
    5 Posts
    4k Views
    PeterJonesP

    @Alan-Kilborn ,

    Moved.

    @jiongjiongJOJO ,

    It looks to me like you want Notepad++ to display your logfile which uses ANSI ESCAPE SEQUENCES in the colors that those ANSI escape sequences define.

    Just so you know, Notepad++ is a text editor with syntax highlighting, it is not a rendering engine. Its goal is to show you the underlying text (or bytes, if they aren’t valid text, like ANSI escape sequences are not). Thus, what you showed with the real Notepad++ is the correct behavior. (This is the same reason Notepad++ shows the raw HTML, not a rendered webpage, when you are editing an HTML file. It is an editor, not a renderer/viewer.)

    However, I do seem to remember that there have been other discussions about this, and there’s either a plugin that does it or someone has shared a PythonScript solution which will interpret those ANSI escape sequences and use Notepad++ syntax highlighting to add in the colors that they define… but I don’t remember exactly, so you might want to search the forum for ANSI escape sequences or similar phrases.

    update: yeah, I think “ANSI escape sequences color rendering” is what I was thinking of. It shows how to use a UDL plus the EnhanceAnyLexer plugin to get it to render colors (but will still show the escape sequences, because that’s how one could edit such a file).

  • How to use fixed-width spaces?

    2
    0 Votes
    2 Posts
    497 Views
    PeterJonesP

    @bulrush15 ,

    Settings > Style Configurator > Global Styles > Default Style is where you set the main font that is inherited by all the other styles in the Style Configurator, including the Perl styles. The font for spaces and tabs is determined by that style. The Settings > Style Configurator > Perl > DEFAULT style is only used for text that the lexer cannot figure out how to assign to any color (which is why the default color in the default theme is red, to indicate that it’s an error that doesn’t match anything that the lexer can understand as Perl).

  • how to delete rows out of multiple files

    Locked
    11
    0 Votes
    11 Posts
    1k Views
    PeterJonesP

    To future readers of this topic: sorry for the missing information: the original poster deleted their posts because the data they shared had privacy violations.

    As a moderator, I restored the posts so there’s still some context for this conversation. But I removed (“redacted”) the original data and screenshots – both from the original poster’s messages and from any replies.

    This conversation is mostly meaningless at this point, so there’s not much to learn from. Sorry.

    This Topic is now locked.

    Moral

    The data you share in this forum has to be of the same format and structure as your oringal data, otherwise we cannot help you. But you need to make sure you clean out any private or secret or sensitive information and replace it with meaningless data that has the same structure and form.

  • How to stop curly braces moving left when I type?

    3
    0 Votes
    3 Posts
    268 Views
    bulrush15B

    @Alan-Kilborn Maybe I’m misunderstanding auto-indent. If I indent a line I want to keep that indent, but not do a backwards indent. I’ll try what you said.

  • How to remove icons from Notepad++ row just below menu row?

    7
    0 Votes
    7 Posts
    855 Views
    John PollardJ

    @PeterJones said

    There are per-user settings on which notifications go to email and which only flag in the forum, so you might check there. But email notifications from the Forum have never been reliable – there have been so many decades of fighting internet spam that various servers throughout the path take it upon themselves to clean the ether of bulk-looking emails, even before they hit your local spam filters. We’ve set all the “I’m safe” fields that we know how to set, but many of those notifications still never make it to their recipients.

    Sad. But thanks for the explanation.

  • adding a background image

    2
    0 Votes
    2 Posts
    242 Views
    Mark OlsonM

    @Andy-Scott
    If this is a question about HTML, and nothing you’re asking is specific to Notepad++, you’ve asked your question in the wrong place.

  • Regex search - match multiple strings anywhere within multiple files

    7
    0 Votes
    7 Posts
    4k Views
    guy038G

    Hello, @wkwied, @peterjones and All,

    @wkwied, all the regexes, below, ONLY matches if the 3 expressions price, assert and allow are all present, with this exact case, at least one time, in the current file !

    Regex A : (?s-i)\A(?=.*assert)(?=.*price)(?=.*allow)([^|\r\n]|\R)

    Regex B : (?s-i)\A(?=.*assert)(?=.*price)(?=.*allow)(?-s).*\R

    Regex C : (?s-i)\A(?=.*assert)(?=.*price)(?=.*allow).*?\K(?:assert|price|allow)

    Regex D : (?s-i)\A(?=.*assert)(?=.*price)(?=.*allow).*?\K(?:assert|price|allow).+(?:assert|price|allow)

    More precisely, IF the 3 expressions price, assert and allow all exist, at least one time, with this exact case, in current file :

    The regex A matches the first standard or EOL character(s)

    The regex B matches the first line, empty or not, with its line-break char(s)

    The regex C matches the first searched expression found

    The regex D matches from the first to the last searched expression found

    For instance :

    Regex A could be used with the Find in Files dialog to find out all the files containing these 3 expressions

    Regex D could be used, in a second time, with the Mark dialog to get the commplete range of the searched expressions, for specific files

    To be convinced, simply paste the text below ( part of the license.txt file of N++ v8.6.5 ) in a new tab :

    Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow.

    and… experiment !

    Notes :

    You must tick the Regular expression search mode and the Wrap around box option

    As soon as you insert or delete a character, within one of these 3 words, the regex will fail systematically !

    Best Regards

    guy038

  • shortcuts.xml With UTF-8 BOM Fails to Load

    7
    1 Votes
    7 Posts
    529 Views
    mkupperM

    <BOM/>@Bob-Smith-0, I am astonished that you did not preface your message with a BOM!

    As you seem to have already recognized the issue I suspect it would be enough to add two more tools to your bag, one that inserts a BOM, and another that removes it You can then do your desired magic on Notepad++'s config.xml.<EOM/>

  • Need help linking CSS with html

    3
    0 Votes
    3 Posts
    252 Views
    CoisesC

    @tilsy637

    If you mean that in your text href="css/rr.css" Notepad++ does not render css/rr.css as a clickable link, that is expected. Only complete URLs (with the http:// part, for example) are clickable. Even though what you’ve written is a relative URL in the context of HTML, Notepad++ doesn’t understand HTML and can’t recognize it as a link. You have to navigate to it on your own.

    If you mean it doesn’t work when you open it in a browser, then as @PeterJones wrote, this is the wrong forum.

    If you meant that Notepad++ doesn’t apply the style information, it will not. Notepad++ is strictly a source (plain text, with some syntax highlighting) editor; it can’t do “what you see is what you get” editing for HTML.

  • How to change apostrophe to letter g as a whole word

    3
    0 Votes
    3 Posts
    275 Views
    Mohamed MohamedM

    @PeterJones Thank you, it works

  • How to save the marked lines

    2
    0 Votes
    2 Posts
    491 Views
    PeterJonesP

    @Chetan-S-R ,

    Notepad++ does not save Bookmarks or the other styles.

    However, some years back, @Alan-Kilborn shared a script for the PythonScript plugin, which will allow you to save Bookmarks or styles, in this post in the “Style token not saved” conversation.

    So you would grab the script from that discussion, and follow our FAQ for installing/using PythonScript scripts

    Since that script was focused on Style Tokens, and not the Bookmarks, I am not 100% whether it would work “out of the box” for you, or whether you’d have to add in a check for the Bookmark code as well… It’s been too long since I used that. However, Alan can probably chime in about that.

  • NPP won't show autosave plugin.

    2
    0 Votes
    2 Posts
    177 Views
    bulrush15B

    @bulrush15 I got it working when I installed NPP 8.6.5. I had a “regsvr” error the first time I installed it and NPP never really updated. It’s updated now.

  • The file will not open.

    3
    0 Votes
    3 Posts
    287 Views
    bulrush15B

    @최민정 What’s your operating system name and version?

    There could be a bug with this file being locked. I’ve seen this before on windows for other types of files. Reboot the machine and see if that releases the file lock.

  • Find Window not popping up for me to enter something into to find.

    6
    0 Votes
    6 Posts
    465 Views
    TBugReporterT

    @PeterJones said in Find Window not popping up for me to enter something into to find.:

    a second Ctrl+F will re-center it

    A useful tidbit that I failed to notice in the manual - thank you.

  • Two Questions About Shortcut Mapper

    8
    1 Votes
    8 Posts
    579 Views
    PeterJonesP

    @Bob-Smith-0 ,

    There are 11 keys for which I had to scramble to find the corresponding virtual keycode.

    Those keystrokes are mentioned in the FAQ: List of Notepad++ key combinations, available for shortcuts – for example, VK_OEM_1 is in the “third part” in that FAQ. (Search that page for third part or VK_OEM_1 to find it)

    ----

    and Forum related stuff:

    copied from a wensite I can’t mention here

    No one had upvoted you yet, so you could not post links to external sites. (Otherwise, the forum just becomes an open invitation to spam bots; the amount of spam we have to deal with has dropped significantly since the link-reputation rule was put in.)

    I tried replying to the previous message to thank the folks who helped me, but was told I needed a higher reputation.

    You needed a higher reputation to post an external link; if it weren’t for that link, you would have been able to reply. I have used moderator powers to merge this back into the original discussion.

    I tried upvoting to improve my rep

    You cannot improve your own reputation yourself (otherwise, spammers would just upvote themselves or each other to get around this limitation).

    I normally try to upvote well-asked questions, but forgot in your case. I have upvoted your posts, so things should be easier for you going forward.