• When Notepad++ arrives on iOS and Android ?

    4
    0 Votes
    4 Posts
    2k Views
    PeterJonesP

    It is unfortunate that you cannot find high-powered text editors on Apple Store. As a non-Apple user, I cannot suggest any good ones. But there’s not much we as the Notepad++ (user) Community can do about it.

    The reason official ports of Notepad++ don’t exist for iOS or Android is because the core of Notepad++ was written using the Win32 API, which is the MS Windows way of handling window management and intra-process and inter-process communication. This API is significantly different than the various GUI toolkits available for Android or iOS. By the time enough of the Notepad++ codebase was re-written to be able to work on those completely different platforms, they would cease to be Notepad++.

    (There is someone who released something they called “Notepad++” to Android, IIRC, but it is unaffiliated with the official Notepad++ discussed here, and has nothing to do with the codebase or this project or forum.)

    To sum up: I am sure there are plaintext editors available for iOS and Android, but Notepad++ is not one of them; some in the Notepad++ community may have text editors that they use or recommend for their portable devices, but that’s not actually the focus of this forum, so I don’t know how good of an alternative suggestion you will get. But, to be helpful, let me google that for you on iOS and Android.

  • regex to replace any value other than between 2 special charterers

    8
    0 Votes
    8 Posts
    368 Views
    Rajat KumarR

    @guy038

    Wow working absolutely perfect. Thanks for the help!

  • 4 Votes
    4 Posts
    3k Views
    Alan KilbornA

    @guy038

    I was a little loose with my “any time” verbage. Your context was the Mark operation, which was what I meant, but said poorly.

  • request new functions

    7
    0 Votes
    7 Posts
    321 Views
    pinuzzu99P

    ok. sorry i had not seen that your Yes was a link …!
    tanxs

  • XML - How to sort based on <id>, automatically calculated by formula

    7
    1 Votes
    7 Posts
    9k Views
    dinkumoilD

    @Tư-Mã-Tần-Quảng

    You could install the XML Tools plugin and use its XSLT Transformation feature.

    Open Plugins Admin and install XML Tools plugin. After Notepad++ has been restarted paste the XSLT code from below to an empty tab and save it for example as Transform.xsl. Open the XML file you want to process. Go to (menu) Plugins -> XML Tools -> XSLT Transformation. In the dialog popping up click on the ellipsis button and in the file selector dialog popping up select the XSL file you created in step 2. Click the Transform button. A new document will be opened with your changes applied. Save it to the original file.

    In the following the XSLT code to do your requested transformations. I guess you want to increase the value of the asalary, bsalary and msalary tags by a percentage value, thus I divided the factors you provided by 100.

    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" indent="yes" encoding="utf-8" omit-xml-declaration="no" /> <!-- Copy all nodes not affected by the rules below --> <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> <!-- Sort based on id node --> <xsl:template match="include"> <xsl:copy> <xsl:apply-templates select="data"> <xsl:sort select="id"/> </xsl:apply-templates> </xsl:copy> </xsl:template> <!-- Recalculate bsalary node --> <xsl:template match="/include/data/bsalary"> <xsl:choose> <xsl:when test="../type[text()]='Intern' and ../month[text()]>=3"> <xsl:copy> <xsl:apply-templates select="@*"/> <xsl:value-of select="substring(text(), 1, string-length(text()) - 1) * 1.2567"/> <xsl:text>$</xsl:text> </xsl:copy> </xsl:when> <xsl:when test="../type[text()]='Staff' and ../month[text()]>=3"> <xsl:copy> <xsl:apply-templates select="@*"/> <xsl:value-of select="substring(text(), 1, string-length(text()) - 1) * 1.4533"/> <xsl:text>$</xsl:text> </xsl:copy> </xsl:when> <xsl:when test="../type[text()]='Employee' and ../month[text()]>=3"> <xsl:copy> <xsl:apply-templates select="@*"/> <xsl:value-of select="substring(text(), 1, string-length(text()) - 1) * 1.6969"/> <xsl:text>$</xsl:text> </xsl:copy> </xsl:when> <!-- Copy all nodes not affected by the rules above --> <xsl:otherwise> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- Recalculate asalary node --> <xsl:template match="/include/data/asalary"> <xsl:choose> <xsl:when test="../type[text()]='Intern' and ../month[text()]>=6"> <xsl:copy> <xsl:apply-templates select="@*"/> <xsl:value-of select="substring(text(), 1, string-length(text()) - 1) * 1.8828"/> <xsl:text>$</xsl:text> </xsl:copy> </xsl:when> <xsl:when test="../type[text()]='Staff' and ../month[text()]>=6"> <xsl:copy> <xsl:apply-templates select="@*"/> <xsl:value-of select="substring(text(), 1, string-length(text()) - 1) * 2.3549"/> <xsl:text>$</xsl:text> </xsl:copy> </xsl:when> <xsl:when test="../type[text()]='Employee' and ../month[text()]>=6"> <xsl:copy> <xsl:apply-templates select="@*"/> <xsl:value-of select="substring(text(), 1, string-length(text()) - 1) * 2.6467"/> <xsl:text>$</xsl:text> </xsl:copy> </xsl:when> <!-- Copy all nodes not affected by the rules above --> <xsl:otherwise> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- Recalculate msalary node --> <xsl:template match="/include/data/msalary"> <xsl:choose> <xsl:when test="../type[text()]='Intern' and ../month[text()]>=12"> <xsl:copy> <xsl:apply-templates select="@*"/> <xsl:value-of select="substring(text(), 1, string-length(text()) - 1) * 2.4545"/> <xsl:text>$</xsl:text> </xsl:copy> </xsl:when> <xsl:when test="../type[text()]='Staff' and ../month[text()]>=12"> <xsl:copy> <xsl:apply-templates select="@*"/> <xsl:value-of select="substring(text(), 1, string-length(text()) - 1) * 3.0611"/> <xsl:text>$</xsl:text> </xsl:copy> </xsl:when> <xsl:when test="../type[text()]='Employee' and ../month[text()]>=12"> <xsl:copy> <xsl:apply-templates select="@*"/> <xsl:value-of select="substring(text(), 1, string-length(text()) - 1) * 3.8432"/> <xsl:text>$</xsl:text> </xsl:copy> </xsl:when> <!-- Copy all nodes not affected by the rules above --> <xsl:otherwise> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:otherwise> </xsl:choose> </xsl:template> </xsl:stylesheet>
  • I can't remove a json file.

    2
    0 Votes
    2 Posts
    164 Views
    guy038G

    Hello, @stergios,

    Probably, you’d better have a look here first !

    Best Regards

    guy038

  • File disappeared

    7
    0 Votes
    7 Posts
    874 Views
    Doug LattoD

    @PeterJones: Again, thanks very much for your quick and thorough response! Of course, without the exact sequence of events and messages, it’s impossible to reproduce the problem. Usually basic operations liking open, close, save don’t cause problems, so I was not in the kind of frame of mind in which I was carefully recording everything I did and everything the app did. Still it is weird that, when I shut down Notepad++ and started it up a second time, my changes were there, but when I shut it down and started it up a third time, they were gone. I looked in the backup location and the recycle bin, but no luck. Only ways that could happen that I can think of: either I removed the changes myself in Notepad++ (which I didn’t), or I accidentally deleted the file (which would have put it into the recycle bin). Have to just chalk it up to a glitch of some kind.

  • 2 Votes
    7 Posts
    969 Views
  • deselect line (or part of selection)

    7
    0 Votes
    7 Posts
    2k Views
    pinuzzu99P

    maybe for most people, but not for all… it is a function that is not present, and in some cases it may be useful. I hope it will be implemented in future versions …

  • Invisible characters

    5
    0 Votes
    5 Posts
    979 Views
    Ertan KüçükogluE

    @PeterJones I didn’t know about Character Panel. Thanks for mentioning about it, too.

  • 0 Votes
    2 Posts
    184 Views
    SofistanppS

    Hi @gifthubbro

    The replacement expression should be (?1c)(?2d), that is, without the “|”.

  • 0 Votes
    2 Posts
    580 Views
    Alan KilbornA

    @Eightvo-8080

    So you haven’t mentioned the magic words, but clearly you are working with “regular expressions” or “regex”.

    Searching in a backward direction with regex has known problems and is partially disabled in Notepad++ currently (7.8.4) – but this isn’t a new problem, it has probably existed back to the days when regex capability was first introduced in version 6.0.

    If would be nice if it were either (a) fully disabled OR (b, as in “better”) made to work right.

    Unless and until it is made to work correctly, backward regex capture groups not working as intended is not surprising. I don’t think there’s any kind of workaround; sorry.

  • Regex Misidentifying Foreign Characters

    8
    0 Votes
    8 Posts
    1k Views
    guy038G

    Hello, @sylvester-bullitt, @alan-kilborn and All,

    Alan, good question ;-)) Personally, my old NEC 350 laptop does not have a numeric keypad. So, I’ve got an USB usual keyboard ( 105 keys ) plugged permanently to the laptop !

    When the Caps Lock key is set, my laptop’s French keyboard looks like, below :

    1234567890°+
    AZERTYUIOP^£
    QSDFGHJKLM%
    >WXCVBN?./§

    And if I want to use the pseudo-numeric keypad, I just hit the Num Lock key and the keyboard is then changed as below :

    123456789*°+
    AZERTY456-^£
    QSDFGH123+%
    >WXCVBN0../

    So :

    The keys 7890 are mapped to keys 789*

    The keys UIOP are mapped to keys 456-

    The keys JKLM are mapped to keys 123+

    The keys ?/§ are mapped to keys 0./

    As the A, B, C, D, E and F keys are mapped to their default, I’m always able, even without any additional keyboard (in case of travel, for instance), to use, in conjunction with the Alt key, all the Input methods, described in my previous post ;-))

    Unfortunately, I don’t use any new mini-laptop, with a special keyboard layout, so I cannot tell anything else about this subject :-((. Even the laptop of my wife has a physical keypad !

    So, I’m sorry : without material, it’s impossible for me to give pertinent clues about the way to handle these Windows Input methods with atypical keyboard configurations !

    Best Regards,

    guy038

  • delete line between bookmark

    45
    0 Votes
    45 Posts
    14k Views
    pinuzzu99P

    @guy038 tank you so much, your last string (?-s)^((?!.+@).+\R?)+ work very well for my purpose! Regards.

  • Good news new NPP

    4
    -1 Votes
    4 Posts
    798 Views
    Alan KilbornA

    the number of file & find history is more than 70

    Isn’t this achievable with regular N++?

    less binary size

    Can’t imagine why this could possibly be important

  • Word count

    9
    0 Votes
    9 Posts
    13k Views
    Alan KilbornA

    @andrecool-68

    TextFX is sort of deprecated, and continuing to give answers that use it is probably not the best idea (for future readers of these threads/posts). Especially when other viable options exist, and especially when the same things can be done inside Notepad++ (meaning no plugin needed).

  • What is equivalent of TextPad's 'Workspace'

    9
    1 Votes
    9 Posts
    3k Views
    Michael VincentM

    @Alan-Kilborn

    With the Explorer plugin I’m using, right-click context menu shows:

    New File... New Folder... Find in Files... ---- Standard Menu > NppExec Script(s) > Open Command Window Here --- Add to 'Favorites'... Full File Path(s) to Clipboard File Name(s) to Clipboard --- Cut Copy --- Create Shortcut Delete --- Properties

    Using the “Standard Menu” expanding menu item, I get pretty much all the other stuff as if I just do a right-click context menu in the Windows Explorer app. This includes Tortoise Git which I have installed so I get “Git integration” with N++.

    Have a look.

    Cheers.

  • Readability of file tabs?

    2
    0 Votes
    2 Posts
    204 Views
    Terry PinnellT

    Sorted thanks, found the appropriate setting and duly changed inactive text to black, which is fine.

    P.S: 3 minute deadline on editing?!

  • 0 Votes
    3 Posts
    332 Views
    V.MelnikV

    @PeterJones Thanks, it helped \\ Спасибо, помогло

  • 0 Votes
    3 Posts
    360 Views
    Budi KusasiB

    SBc.png
    THANKS BILLIONS !
    How had I to be dumb