• Keep only specific links

    Locked
    4
    -1 Votes
    4 Posts
    1k Views
    Scott SumnerS

    @T-C

    Again, what you are trying to achieve is vague. You’re not going to get the best help that way (and you may even get down-voted again).

    So…first you wanted to delete text, now you want to mark text…which is it?

    You can match a number that is different every time by using \d+ in the expression where the number occurs.

  • [Help] Function list doesn't support my language.

    15
    -1 Votes
    15 Posts
    4k Views
    SalviaSageS

    I just tested this new code here, and it doesn’t catch the comments or the strings incorrectly.

    Thanks a lot for this!

    I am trying to combine the table support from the code above into this new code.

  • How to create Custom Language in Language Tab

    Locked
    2
    0 Votes
    2 Posts
    1k Views
  • 0 Votes
    5 Posts
    4k Views
    Michael MoynihanM

    This is the first match I found:
    issue #2481

    I found a handful of near matches. I would expect that there are more then just this one that address the find results panel.

  • How do you type the tab character into the replace box?

    Locked
    3
    1 Votes
    3 Posts
    30k Views
    SalviaSageS

    oh okay. I just need to have the extended selected and just type \t. that works. thx.

  • How to create a delay between 2 functions ?

    Locked
    3
    -1 Votes
    3 Posts
    1k Views
    Meta ChuhM

    @Scott-Sumner

    on the other hand it’s quite amusing to see how many newer users think that notepad++ is the source of all programming languages, the beginning of the internet, and maybe, for future generations, the initiator of the big bang ;-)

  • Certain spaces

    Locked
    2
    0 Votes
    2 Posts
    797 Views
    PeterJonesP

    You want to remove all leading spaces before every line?

    Search what : ^\s+
    Replace with : (empty string)
    Search Mode: ☑ Regular Expression

    P.S. :
    (paraphrasing @guy038, the forum’s regex guru, who compiled these great regex resources, but hasn’t shared them in this thread yet):

    Here is a good starting point for NPP users unfamiliar with regular expression concepts and syntax:

    http://docs.notepad-plus-plus.org/index.php/Regular_Expressions

    Modern Notepad++ (since v6.0) uses the Boost C++ Regex library, v1.55.0 (similar to the Perl Regular Common Expressions (PRCE), v5.8):

    search syntax: http://www.boost.org/doc/libs/1_55_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html replace syntax: http://www.boost.org/doc/libs/1_55_0/libs/regex/doc/html/boost_regex/format/boost_format_syntax.html

    Other sites with valuable regular expression information include:

    http://perldoc.perl.org/perlre.html http://www.regular-expressions.info http://www.rexegg.com
  • delete specific lines

    Locked
    6
    1 Votes
    6 Posts
    4k Views
    PeterJonesP

    P.S. :
    (paraphrasing @guy038, the forum’s regex guru, who compiled these great regex resources, but hasn’t shared them in this thread yet):

    Here is a good starting point for NPP users unfamiliar with regular expression concepts and syntax:

    http://docs.notepad-plus-plus.org/index.php/Regular_Expressions

    Modern Notepad++ (since v6.0) uses the Boost C++ Regex library, v1.55.0 (similar to the Perl Regular Common Expressions (PRCE), v5.8):

    search syntax: http://www.boost.org/doc/libs/1_55_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html replace syntax: http://www.boost.org/doc/libs/1_55_0/libs/regex/doc/html/boost_regex/format/boost_format_syntax.html

    Other sites with valuable regular expression information include:

    http://perldoc.perl.org/perlre.html http://www.regular-expressions.info http://www.rexegg.com
  • Python Script - Fold levels/flags

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    dailD

    Do line numbers and fold levels stay the same after hiding some code?

    Yes. There are other various API calls provided by Scintilla than can tell you things like if the line is actually folded, or to manually fold/unfold the line and children of that line.

  • Serching ligature "ff" find also non ligature "ff"

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    PeterJonesP

    @Mario-Valle,

    For me, there’s actually a difference between what it finds and what it highlights. If you searched @guy038’s quoted text

    FB00 ff LATIN SMALL LIGATURE FF FB01 fi LATIN SMALL LIGATURE FI FB02 fl LATIN SMALL LIGATURE FL FB03 ffi LATIN SMALL LIGATURE FFI FB04 ffl LATIN SMALL LIGATURE FFL FB05 ſt LATIN SMALL LIGATURE LONG S T FB06 st LATIN SMALL LIGATURE ST

    it would find one instance of fi (the ‘LATIN SMALL LIGATURE FI’). But when that fi gets highlighted, it also highlights the “FI” characters
    Imgur

    So, are you complaining that when you highlight the ligature, it also highlights the non-ligature versions?

    If not, I had thought maybe you were trying to say that Find In Files dialog was behaving differently than the normal Find dialog… But when I make three files in a “lig” subdirectory: “lig1.txt”, “lig2.txt”, and “lig3.txt”, where 1 and 3 are identical to above, and lig2 does not include the text fi, but does contain the text FI, it correctly says that “lig2.txt” does not contain the fi.
    Imgur

    Then I realized there might be a difference between the FF and the FI ligatures, and/or case sensitivity, so I switched to “lig1” and “lig3” containing:

    fb00 ff latin small ligature ff fb01 fi latin small ligature fi fb02 fl latin small ligature fl fb03 ffi latin small ligature ffi fb04 ffl latin small ligature ffl fb05 ſt latin small ligature long s t fb06 st latin small ligature st

    and “lig2” containing:

    fb00 xxx latin small ligature ff fb01 xxx latin small ligature fi fb02 fl latin small ligature fl fb03 ffi latin small ligature ffi fb04 ffl latin small ligature ffl fb05 ſt latin small ligature long s t fb06 st latin small ligature st

    But searching that for ff still only finds hits in “lig1” and “lig3”, and no hits in “lig2”.
    Imgur

    I cannot replicate anything where it does the match incorrectly “in multiple files”.

    Could you provide a couple example files that match for you, and the exact conditions under which you search for them and it finds them?

    I ran some more experiments with the selecting the ligature highlights all the other instances of ligature or non-ligature versions, upper or lower case:

    If that’s annoying, you could turn off the Settings > Preferences > Highlighting > Smart Highlighting > ☐ Enable … but then highlighting something else (such as SMALL in the example text) would also not highlight the other matches.

    If you do Settings > Preferences > Highlighting > Smart Highlighting > , and select

    ☑ Enable ☑ Match case ☑ Match whole word only

    Then you can select the fl ligature, and it only highlights the fl ligatures, but not fl or FL; similarly, selecting fl will only find the two lower-case letters, and not fl or FL; similarly selecting FL matches only two-capitals, not fl or fl.
    Imgur

    If it’s the smart-highlighting, then requiring it to match case will prevent extra selection. If it’s either the Find or Find In Files dialogs, I cannot replicate your results, so if you need more help, you’ll have to be more explicit about what’s going on. If your “in multiple files” is by some other method, you’ll definitely need to be more explicit.

  • Formating XML

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    chcgC

    With the help of plugin XML tools (https://sourceforge.net/projects/npp-plugins/files/XML Tools/Xml Tools 2.4.9 Unicode/ or via Plugin Manager) you could use pretty print to get a structured xml.

  • Find files that not contain word

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Scott SumnerS

    @Kike-GL

    Have a look-see here.

  • Notepad++ XML color syntax highlighting error

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    dailD

    @Branimir-Buljan

    Works for me in v7.5.6:

    You need Notepad++ v7.5.5 or later as this was fixed in that release. Also, your text uses non-ascii quotes, I replaced those with plain " instead of “ and ”

    @Gogo-Neatza

    An (XML) attribute (like ‘script’) cannot contain multiple values.

    Not sure what you mean by this. Once the quotes are replaced, this is perfectly valid XML.

    You were close to “a bad workman (who) always blames his tools”.

    In this case it was the tool.

  • [Help] How to have more than 1 vertical column line?

    Locked
    9
    1 Votes
    9 Posts
    4k Views
    SalviaSageS

    Hi, thanks for your reply. I have deleted my earlier post with the hotkey for EOL characters because I found out how to do it. It is still kind of there though, I can see it but it is grayed out. How long does it take before it is deleted? just curious.

    I will be following the instructions you gave me to try to put all these features together, I will let you know if I make progress or run into issues in this post, keep watch :)

  • как вставить код счётчика в код сайта. ?

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Notepad++ Serverlog Sorted by IP (most accesses)

    Locked
    2
    0 Votes
    2 Posts
    775 Views
    Scott SumnerS

    @Chris-Rock

    Potentially, although this is more of a data manipulation issue than a Notepad++ discussion point…

    Perhaps if you share a sample of your data someone will be able to give you some pointers on how to process it, either via Notepad++ or some other way…

  • notpad++ 7.5.6 install and plugins

    Locked
    4
    0 Votes
    4 Posts
    9k Views
    chcgC

    Yes, it is possible to run the 32 bit version also on a win 64 OS version.

  • N lines renumbering

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    cipher-1024C

    If your line numbers are the first thing on the line, and they aren’t referenced anywhere in the code (no GOTO type statements) then you could whack all the line numbers with a regular expression in the search/replace box with ^\d+ in the “find” box and nothing in the replace box. When you’re ready to number the lines again, you can go to the menu and do
    Edit->Column Editor->Number to Insert
    input your starting number, increment, and repeat parameters and NPP will insert your line numbers for you.

    If you’re going to be doing this kind of thing a lot, Mikhail’s method and workflow is probably better, but this will do in a pinch.

  • Where to download the plugin manager from?

    Locked
    2
    1 Votes
    2 Posts
    7k Views
    chcgC

    With current N++ versions yes.
    You may read https://github.com/bruderstein/nppPluginManager/issues/80 on that. To install it manually take https://github.com/bruderstein/nppPluginManager/releases/tag/v1.4.11 (for 32bit PluginManager_v1.4.11_UNI.zip) and see https://bruderste.in/npp/pm/#install.

  • Collapse Folders as Workspace by default

    Locked
    1
    1 Votes
    1 Posts
    824 Views
    No one has replied