• 1 Votes
    2 Posts
    179 Views
    PeterJonesP

    Isn’t the Arduino language just c/c++? I would recommend just using that language, and adding any new keywords to the “User-defined keyword” box in the INSTRUCTION WORD or TYPE WORD styles (Settings > Style Configurator > Language: C or C++)

    If you are curious about User Defined Language (UDL) syntax for numbers, see the docs.

    But I’m curious: in what situation would the ; be used a suffix indicating a hexadecimal number?

    (translated using translate.google.com)

    A linguagem do Arduino não é apenas c / c ++? Eu recomendaria apenas usar esse idioma e adicionar novas palavras-chave à caixa “Palavra-chave definida pelo usuário” nos estilos PALAVRA DE INSTRUÇÃO ou PALAVRA DE TIPO (Configurações> Configurador de estilos> Idioma: C ouC ++)

    Se você tiver curiosidade sobre a sintaxe da Linguagem Definida pelo Usuário (UDL) para números, consulte os documentos

    Mas estou curioso: em que situação o ; seria usado como um sufixo indicando um número hexadecimal?

    (traduzido usando translate.google.com)

  • Change a series of numbers when they start with 2

    4
    0 Votes
    4 Posts
    187 Views
  • PHP bug ****

    4
    0 Votes
    4 Posts
    339 Views
    PeterJonesP

    If you want help, you will have to provide enough information for us to replicate your problem. As of yet, we cannot replicate your problem, so it’s hard for us to say what’s going wrong for you. I provided a link that described what kind of information might be helpful.

    An anecdotal “latest versions”, for example, is useless, because we don’t know what you consider “latest” (it could be the latest one you downloaded a decade ago, or the latest one that autoupdate asked you to install, or the latest one that was released on the official website, or the latest one in whatever unofficial distribution channel you download from).

    If you want to prove that it’s not plugins, you will have to show the Debug Info (described in that link) of your version in the same instance that you’re about to crash in.

    I will show you an example of it working for me, with enough information that you should be able to replicate my results.

  • Regular Expression, end of line

    5
    0 Votes
    5 Posts
    17k Views
    guy038G

    Hi, @@luuk-v, @terry-r and All,

    @Terry-r said :

    Personally though my alternate regex works I would use @guy038 one as it is more readable and possibly also more defined!

    In the same way, I would say that @terry-r’s solution is clever too and is, finally, very easy to interpret ;-))

    Indeed, this new syntax :[^:]*?$ finds a colon char, followed with the shortest range of characters, possibly null, different from a colon, before an end of line !

    Cheers,

    guy038

  • Scrolling with Cursor Keys

    3
    0 Votes
    3 Posts
    461 Views
    Brigham NarinsB

    Thanks for the info folks. Turns out updating to the latest version DSpell solved the problem.

  • Spaces for Tabs?

    4
    0 Votes
    4 Posts
    387 Views
    obparhamO

    Thanks you two,

    It has been so long since I had to config a new install, I forgot where it was.

    I’m way over 65. That’s my excuse and I’m sticking to it!

    Bruce

  • Format different in regular notepad after installin notepad++ HELP!

    7
    0 Votes
    7 Posts
    1k Views
    Union ExpressU

    @PeterJones said in Format different in regular notepad after installin notepad++ HELP!:

    ttings in such a way that the source name is copying. I cannot explore different Excel settings for you, but can confirm that with the way mine is set up, copying from one workbook to another doesn’t make it link the data: the formula stays local to the workbook.
    These are Excel problems, not something specific to Notepad++, so from here on out, you should probably move to an Excel forum. You should probably ask one or two questions – which are separate ideas, though the second isn’t as important now that you know that Excel should be able to handle the copy/paste with formulas correctly.

    The first question would be worded something like “when I copy formulas from one workbook to another, for me it inserts the source workbook name into the destination formula, so it creates a link between the workbooks, but I am wanting to copy the formulas to the new workbook so that the formulas are relative to the new workbook. (And when I asked a similar question in a wrong forum, I was told that in circumstances of someone over there, Excel didn’t make the formulas a link, and did what I expected. Could you help me figure out how to make the pasted formulas reference the cells in the new workbook, rather than be formulas with links to the old workbook for the data?” You could include screenshots similar to above, but showing how the formulas don’t work right.

    If you really needed to know why the thru-text-editor didn’t work, you could also ask, “Second, why when I Formulas > Show Formulas, and copy/paste the formulas into a text editor like notepad.exe or Notepad++, and then copy/paste from the text editor into a new Excel workbook, why does a multi-line formula first get interpreted as text, until I F2-edit then hit enter, when Excel properly treats it as a formula again?”

    But again, this is all stuff for the Excel forum of your choice.

    I completly understand not going far into excel, this is a notepad++ forum after all. thanks for thaking the time to look into this! I will look further in the excel forums. ill be back if anything points back to N++ but youre probably right and its to do with excel. Thansk again Peter!

  • 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
    373 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
    323 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
    172 Views
    guy038G

    Hello, @stergios,

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

    Best Regards

    guy038

  • File disappeared

    7
    0 Votes
    7 Posts
    888 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
    977 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
    986 Views
    Ertan KüçükogluE

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

  • 0 Votes
    2 Posts
    189 Views
    SofistanppS

    Hi @gifthubbro

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

  • 0 Votes
    2 Posts
    587 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