• How to force N++ to open files only in UTF-8?

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    gstaviG

    Simplest solution is to encode UTF-8 with BOM.

  • Problems creating a new user defined language

    10
    0 Votes
    10 Posts
    7k Views
    MaDillM

    @Claudia Frank Thank you for looking in the source code. Then I decided to stick with my own created UDL even code folding and some others are missing. It feels better to me to have at least the requested keywords are highlighted.

    Best regards
    Matthias

  • Regex to remove specific classes from specific tags in HTML code

    Locked
    3
    0 Votes
    3 Posts
    4k Views
    guy038G

    Hi, Dario

    At the end of my previous post, I said :

    If you don’t want to repeat the word Fred, several times in the search regex,…

    and I gave a second, but rather complicated, regex !

    Thinking about it, here is a third and more simple regex, for the same purpose :

    SEARCH (?-s)<p[^<>\r\n]*(\K class="(fred)"| class=".+\K (?2)| class="\K(?2) )

    REPLACE Leave EMPTY

    Remember that the (?n) syntax, called a subroutine call, represents the regex enclosed in the nth pair of round brackets, when going through the regex, from left to right and can be placed after of before the group to which it refers !

    In our example, the regex is, simply, the string fred and the (?2) forms are located after the second group (fred)

    It’s very important to note that the similar regex, which uses back-references, does not work ! Indeed, the regex :

    (?-s)<p[^<>\r\n]*(\K class="(fred)"| class=".+\K \2| class="\K\2 ), matches, only, the two lines, below :

    <p class="fred">some text</p> <p id="12345" class="fred">some text</p>

    Why ? Well, these positive matchs concern the first case of the alternative. When it tries to match the two other cases of the alternative ( " class=".+\K \2" or " class="\K\2 " ) the group 2 does not exist, as the first part of the alternative is not used !!

    Cheers,

    guy038

  • Search -> Jump Up/Down -> Find Style

    10
    0 Votes
    10 Posts
    7k Views
    cmeriauxC

    @guy038 thanks for your answer that is as good as your reputation is.

    @Alan-Kilborn I knew the answer, then I forgot, then and answered you accidentally.
    I used to use “Mark” a lot, now I don’t. I only use the “Find style”. In the Npp core, it’s the same things

  • Create aligned columns

    3
    0 Votes
    3 Posts
    2k Views
    Giuliana SwdnG

    Thank you sooo much for your reply!!!
    Very clear and exhaustive!

    Have a great weekend and thanks again :)
    Cheers,
    Giuliana

  • Highlights in Notepad++

    3
    0 Votes
    3 Posts
    4k Views
    David BaileyD

    The problem is, where do you put the styling information. I created a named bookmarks plugin that lets you add permanent bookmarks to a file of code in a C-like language. In that case I solved the problem by using special comments to contain the information. I have wondered whether to extend that concept to include styled regions - but that would not work for a file containing some arbitrary data.

  • Empty text file - full disk

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    David BaileyD

    If the disk was the one containing your Windows system, I think the whole operating system may have become unstable when the disk filled up - possibly aborting NP++. It is not a good idea to run with nearly full disks, but of course a program that gets stuck in a loop can easily fill a disk.

  • Problem with editing

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    David BaileyD

    @Donald-Bellefuil

    I wonder if you have been experimenting with the shortcut mapper and disturbed the definition of the Enter key. Go into the Scintilla tab, and see what Enter is bound to - it should be bound to SCI_NEWLINE

  • Need find replace help

    Locked
    1
    0 Votes
    1 Posts
    980 Views
    No one has replied
  • Launching a plugin when ++ startsup

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Simon MehnertS

    Thankyou, I did use the sendkeys in the end…

  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • Can you do spellcheck in Notepad++ ?

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    chcgC

    With the plugin https://github.com/Predelnik/DSpellCheck, which is available via the plugin manager for the x86 version of n++.

  • Urgent : File corrupted

    3
    0 Votes
    3 Posts
    2k Views
    pnedevP

    Could you be more specific please?
    What is your OS? Windows 7? 8?
    What is your Notepad++ version?
    What does it mean “… and then the system turned off”? Notepad++ crashed? Power loss?
    All of this is very important to find the possible cause. Otherwise you’ll need to seek the help of a fortuneteller.

  • Python script and windows 10

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Paulina-Padlinka

    Did you check if python script plugin has been installed successfully?
    Open python script console and print something to it.
    If everything is ok with the installation, did you change the ui language?
    The runMenuCommand function must have the exact spelling.

    Cheers
    Claudia

  • data erasure on abrupt shutdown?

    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @Eugene-Ipavec

    did you check the backup directory? Maybe there is an previous version there.
    Concerning the editor, I guess the only editor which doesn’t have that potential risk
    is an editor which doesn’t interact with files.

    Cheers
    Claudia

  • need help

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • nppexec.dll plugin install failure.

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    4 Posts
    2k Views
    Vasile CarausV

    You can to this. make a search and replace in all files with Regular Expression:

    Search [~}{@%.!)\]*(?&$#,=/[^+-] Replace by (leave empty)

    This will delete all the special characters from files, and will remain only letters and numbers.

  • new user replace -??- by /??/ in date

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @BMSI-Bureau

    I would prefer using \d{2} to be sure getting only a two digit number.
    See here for more information.

    Cheers
    Claudia

  • Unable to change color of text strings in javascript files

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    Claudia FrankC

    @Nate-Jensen141

    Have you tried that?

    Yes, that’s what I did.
    Concerning the changes - I guess the reference is the default theme (styler.xml).
    If it does work with the default, then make sure that your theme has all the required
    entries for the language in question, as well. If this is the case, than it should work.
    From the current discussion I get the feeling that your styler.xml is already corrupted.
    Maybe you wanna think about replacing it with the stylers.model.xml which is the one
    which is used to create the styler.xml if you do a new installation.
    Of course, you can also run a compare of these files and do the changes manually.

    Cheers
    Claudia