• how to add image to notepad it not showing my picture

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Wrathof-Godwill

    how do i add image it not showing my picture when i run it

    this could mean anything - without further info we can hardly answer it.
    A shot in the dark - you are writing a html page?
    If so, check this out.

    Cheers
    Claudia

  • Where is NppExec console ??

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Scott SumnerS

    @deepjawalenotahacker2371

    Plugins (menu) -> NppExec -> Show Console Dialog

  • XML Tool > Validation error

    2
    0 Votes
    2 Posts
    4k Views
    chcgC

    Last one seems to be https://sourceforge.net/projects/npp-plugins/files/XML Tools/Xml Tools 2.4.9 Unicode/, just 2.4.8 is available from the plugin manager currently.

    Which version do you use? Or is it a different plugin?

  • Request help defining classes for a User Defined Language.

    5
    0 Votes
    5 Posts
    3k Views
    MAPJe71M

    @Joe-Bonifazi

    Could you try the following parser:

    <association id="cimplicity_ctx" userDefinedLangName="CimScreen" /> <association id="cimplicity_ctx" ext=".ctx" /> <parser displayName="CimEdit Text File Format" id ="cimplicity_ctx" > <classRange mainExpr ="(?x) (?(DEFINE) (?'NAMED_CHAR'\b(?i: B(?:ackspace|ell) | C(?:arriageReturn|haracterTabulation) | Delete | Escape | FormFeed | L(?:eft(?:Brace|CurlyBracket)|ine(?:Feed|Tabulation)) | N(?:ewLine|ull) | QuotationMark | R(?:eturn|ight(?:Brace|CurlyBracket)) | Tab )\b) (?'STRING_CHAR' [^\r\n\x22\x7B] | \{ (?: \d+ | \x26 (?: [Hh][A-Fa-f0-9]+ | [Oo][0-7]+ ) | (?&amp;NAMED_CHAR) ) \} ) (?'STRING' \x22 (?:(?&amp;STRING_CHAR))* \x22 (?: \s+\x26 \s+(?&amp;STRING) )* ) ) \(GmmiObject \s+(?&amp;STRING) (?: [^(] | \((?!Gmmi(?:Object|Script)\b) )* \(GmmiScript\s+(?&amp;STRING)\s*\) " > <className> <nameExpr expr="\(GmmiObject\s+\x22\K[^\r\n\x22]+" /> </className> <function mainExpr="(?x) \x22 (?:Function|Sub)\h+ \K \w+ [^\r\n\x22]* \x22 " > <functionName> <funcNameExpr expr="[^\x22{]+" /> </functionName> </function> </classRange> </parser>
  • BUG when reloading changed file with diff encoding

    2
    0 Votes
    2 Posts
    1k Views
    gstaviG

    Practice some modesty/caution before calling specific behavior a BUG.

    Files do NOT have encoding.
    Encoding is applied to the file’s byte stream when it is loaded into a buffer within Scintilla.
    On load, an automatic detection algorithm is used to select an encoding. Many threads in this forum state a wish for an option to override this automatic selection.
    After load the user can override the encoding.

    The question of whether file reload should re-trigger the automatic detection or not is an open user interface decision with no ONE RIGHT ANSWER.

    Since the scenario you described of a file changing its contents in the background in away that will trigger different encoding result from the automatic detection apply to 0.001% of Notepad++ users I think that maintaining the current encoding of the buffer is the choice that benefit the majority of users.

  • перестал работать Notepad++

    Locked
    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • Notepad++ crash...

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    guy038G

    Hello, @spiikesan and All,

    The French text, just above, may be translated into :

    I found out that Notepad++ does backups in %appdata%\Notepad++\backups

    And, luckily, my file was there ( practically, with the last version )

    Thanks for this feature. It has saved my work.

    But this bug is, yet, serious :/

    So, again , and surely, not the last one, just remember this main rule :

    •-----------------------------------------------------------• | ALWAYS, do BACKUPS of your IMPORTANT work, REGULARLY !! | •-----------------------------------------------------------•

    ( In French ) @spiikesan, tu aurais du te rappeler ce sage conseil et tu devrais, dorénavant, le suivre !

    To my mind, anyone should do two backups, on two different media, which should be stored in two different places.

    I must admit that would be in an ideal world and that I don’t follow, myself, this sensible rule, all the time :-((

    BTW, Have you heard about the recent huge cyber-attack, all over the world, on some companies :

    https://en.wikipedia.org/wiki/WannaCry_ransomware_attack

    Of course, I don’t think that people, like you and me, is aimed by these cyber-attack’s authors, but… ?

    Best Regards,

    guy038

    P.S. :

    After some searches on NET, I found a very interesting article, from Microsoft, about WannaCrypt attacks :

    https://blogs.technet.microsoft.com/msrc/2017/05/12/customer-guidance-for-wannacrypt-attacks/

    It’s important to point out, in that article, of Phillip Misner, Principal Security Group Manager, at the Microsoft Security Response Center, this particular sentence :

    Additionally, we are taking the highly unusual step of providing a security update for all customers to protect Windows platforms that are in custom support only, including Windows XP, Windows 8, and Windows Server 2003.

    So, there are, at the end this article, some links to download, either, the English language security update OR the localized language security update ( Microsoft Security bulletin MS17-010 - KB4012598 ) for, either, Windows XP or Windows Server 2003, which, normally, do not have Microsoft support, anymore, or for Windows 8.0 !

    Last post UPDATE ( 14/05/2017 - 15h04 - French zone ) :

    I noticed that, unfortunately, in this article, the download link of the localized security update for Windows XP SP3 x86, wrongly, get the package of the Windows XP Embedded SP3 x86 :-((

    So, it’s better to use the Catalogue Microsoft Update site, from the link :

    https://www.catalog.update.microsoft.com/Search.aspx?q=KB4012598

    You’ll just have to select the right update to download, from the 13 possible choices !

  • Mass Edit

    2
    0 Votes
    2 Posts
    2k Views
    Ion SaliuI

    Axiomatic One:

    I posted a similar request in the ‘Help’ forum and in the ‘Discussions’ forum:

    https://notepad-plus-plus.org/community/topic/13808/search-replace-of-multiline-text-blocs
    Search/Replace of Multiline Text Blocs

    https://notepad-plus-plus.org/community/topic/13684/feature-request-textarea-search-replace#

    https://notepad-plus-plus.org/community/topic/12973/multiple-line-replacing-doesn-t-work

    Unfortunately, Notepad++ does not have such a great feature at this time (as of version 7.3.3). Personally, I use another great freebie: ‘Replace Text’ by Ecobyte.

  • Multiple line replacing doesn't work?

    10
    0 Votes
    10 Posts
    18k Views
    Ion SaliuI

    Axiomatic Ones:

    I made a similar request in the ‘Help’ forum:

    https://notepad-plus-plus.org/community/topic/13808/search-replace-of-multiline-text-blocs
    “Search/Replace of Multiline Text Blocs”

    I made a reference to another great freebie: ‘Replace Text’ by Ecobyte. I use it to replace text in hundreds of Web pages at once. It has a special feature: ‘Advanced Edit’. I copy-and-paste blocs of text into ‘Advanced Edit’. It converts the bloc into a one-line string with special characters between the lines in the original bloc to be searched/replaced. It takes a few seconds to complete and it is very accurate and reliable. No complicated regex coding needed.

    If not present, Notepad++ should add such feature to its arsenal. I thought the ‘Extended (\n, r, …)’ search option would do it. It doesn’t work for me. Maybe because I placed \n ahead of \r and added spaces… It would be great to perform such a task in Notepad++ without regex, instead of exiting and running Ecobyte.

    But, hey, even the post editor here can use significant improvements!

    Ion Saliu
    “A good man is an axiomatic man; an axiomatic man is a happy man. Be axiomatic!”

  • CTRL+H in Windows 10

    2
    0 Votes
    2 Posts
    2k Views
    HaywardDRH

    Just rolled back to version 6.9.2 on the Windows 10 computer and it works like it should. Did not test the versions in between yet.

  • Automatic proposal

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Théo GiraudetT

    Thanks you for your reply, but is there not a way to do it without plugin?

  • Regarding Install notepad++ in Windows Server

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    glennfromiowaG

    If you’re asking regarding licensing, the GNU license does not place any restrictions on installing it anywhere, including on a server in a commercial company. So there is no licensing problem with installing it there.

    However, if you’re asking if others have successfully installed it without problems on a Windows server, I have no experience with that. I wouldn’t expect problems with it, but if in doubt, it’s always better to try it in a test environment than to install new software directly into a production environment.

  • 0 Votes
    7 Posts
    3k Views
    Pat SinclairP

    Thanks MapJE71 and Peter…

    I too had to add the userDefinedLangName, then all worked fine using MapJe71’s suggested regex.

    Thanks to you both.
    Pat

  • Merge same parameters in XML file

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    guy038G

    Hello, @petr-andreev,

    No problem with regular expressions !

    Here are the few steps to do :

    Go back at the very beginning of your document ( Ctrl + Origin )

    Open the Replace dialog ( Ctrl + H )

    SEARCH (?-is)</param>\R<param name="Coolant">|^(.+Product.+?);\x20

    REPLACE (?1\1</param>\r\n<param name="Coolant">:;\x20)

    UNcheck the Wrap around option, if necessary

    Select the Regular expression search mode

    Click TWICE, on the REplace All button

    Et voilà !

    At first sight, you may think that these regexes are complicated, But I tried to give some information on them, in the Notes section, below !

    So, from your original text, below :

    <param name="Product">Multifunction valves</param> <param name="Coolant">R113</param> <param name="Coolant">R114</param> <param name="Coolant">R1233zd(E)</param> <param name="Coolant">R1234yf</param> <param name="Coolant">R1234ze(E)</param> <param name="Coolant">R125</param> <param name="Coolant">R1270</param> <param name="Coolant">R1336mzz(Z)</param> <param name="Coolant">R134a</param> <param name="Coolant">R152a</param> <param name="Coolant">R170</param> <param name="Coolant">R22</param>

    You get, after TWO clicks on the Replace All button, your wanted text, below ;-))

    <param name="Product">Multifunction valves</param> <param name="Coolant">R113; R114; R1233zd(E); R1234yf; R1234ze(E); R125; R1270; R1336mzz(Z); R134a; R152a; R170; R22</param>

    Notes,

    The modifiers (?-is) forces a sensitive way of search and the special dot character will match a single standard character, only !

    Then, due to the alternative symbol ( | ), the regex engine looks for, either :

    Case A The string </param>, followed by End of Line character(s) and ending with the string <param name=“Coolant”> ( part </param>\R<param name="Coolant"> )

    Case B The string, located between a beginning of line and the first semicolon ;, containing the string Product ( part ^(.+Product.+?); ), followed by a space character ( part \x20 )

    In replacement, it rewrites, either :

    Case A A semicolon, followed by a space character ( part ;\x20 ), which is the ELSE part of the conditional replacement, located after the colon symbol :

    Case B The group 1 ( The string from beginning of line, till a semicolon character, excluded, containing the string Product ( part \1 ), followed by the string </param>, a line break and the string <param name=“Coolant”> ( part </param>\r\n<param name="Coolant"> )
    It is the THEN part of the conditional replacement, located between the (?1 syntax and the colon symbol :

    Remarks :

    Case A occurs first, because there’s no semicolon symbol ( ; ), in your original text !

    Of course, in these regexes, you may change the tags Product and Coolant, as you like to :-)

    Best Regards,

    guy038

  • Windows 10 Shell Context Menu Error

    7
    1 Votes
    7 Posts
    22k Views
    Георгий ХристичГ

    Don’t use this registy trick. It looks ugly. Use “Save As Admin” plugin, instead. It works fine even at windows 10 and previous versions.

  • Please Help .... txt file in google drive

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Coding change?

    3
    0 Votes
    3 Posts
    2k Views
    James MoffatJ

    Thanks for your reply. It ended up being SSD corruption & I had to restore from a backup.

  • Changing text between square brackets

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    guy038G

    Hi, @scott-sumner and All,

    Ah, yes, Scott, using named capturing groups is a solution for documented regexes. But there a nice other way to get correct regexes, with a lot of comments !

    I tried to rewrite your S/R, with named groups, using the following template :

    SEARCH :

    (?x) (?-i) # The search is NON-insensitive ( => Sensitive ! ) \[ # A single opening square bracket ( ESCAPED as special char. ) ( # Beginning of group 1 ( First Name ) [A-Z] # A single capital letter [a-z]+ # A NON-null range of lower-case letters ) # End of group 1 , # A single comma character ( # Beginning of group 2 ( FL separator ) \x20|\r\n # A single space character OR the TWO Window End of Line characters ) # End of group 2 ( # Beginning of group 3 ( Last Name ) [A-Z] # A single capital letter [a-z]+ # A NON-null range of lower-case letters ) # End of group 3 (?: # Beginning of an OPTIONAL, non-capturing, group ( # Beginning of group 4 ( MI separator ) \x20|\r\n # A single space character OR the TWO Window End of Line characters ) # End of group 4 ( # Beginning of group 5 ( Middle Initial ) [A-Z] # A single capital letter ) # End of group 5 \. # A single dot character ( ESCAPED as special char. ) )? # End of the OPTIONAL group 5 \] # A single ending square bracket ( ESCAPED as special char. )

    Unfortunately, this way of writing does NOT work in the replacement part :

    # The replacement part CANNOT be split in SEVERAL lines !! # # \3, # Last name is written first, followed by a comma # \2 # Then, we add the FL separator # \1 # Then, the First name is written # ?5 # And if group 5 ( Middle Initial ) exists : # \4\5 # We rewrite group 4 ( MI separator ), followed by group 5 ( Middle Initial )

    => REPLACEMENT :

    \3,\2\1?5\4\5

    Now :

    Select all the lines of the SEARCH part, above, between (?x) and \]

    Copy them, in the clipboard, with a Ctrl + C shortcut

    Paste, first, this selection, in your current file, with a Ctrl + V shortcut

    Re-select this text, representing the search part

    Open the Replace dialog ( Ctrl + H )

    Paste the correct replacement regex, above, in the Replace with: zone

    Select the Regular expresion search mode

    Click on the Replace All button

    Et voilà !!

    Notes :

    Once the search part selected, DON’T copy this selection in the clipboard, for further pasting, in the Find what: zone, of the Replace dialog ! Simply, open the Replace dialog :-) : The selection will be filled in the Find what: zone, automatically :-)

    The syntax (?x) syntax MUST begin the subsequent lines, of the regex. This modifier starts a free-spacing and comment way of writing regexes, with a # character, beginning the comment part

    As, in this mode, the space character is simply ignored, if you search for a space character, you’ll have to use one of the three following syntaxes : \ , [ ] or \x20

    Best Regards,

    guy038

  • Aligning Columns

    Locked
    2
    0 Votes
    2 Posts
    10k Views
    dailD

    As you’ve found it, it is hard to adjust how it looks without changing the data itself. About your only option would be to use tab characters. If you are able to use tabs, then you can use the ElasticTabstops plugin (available through the plugin manager) so it will show your data like this for example:

    Your file itself won’t get changed at all.

  • 0 Votes
    11 Posts
    5k Views
    PeterJonesP

    @Richard LaJoie,

    Maybe this will help explain what @Claudia-Frank has been trying to say: In order for us to help you figure out what’s wrong with your UDL, you would need to show us an example of a file that you want highlighted, and show us what’s not being highlighted correctly.

    What we would need would be a screenshot like

    That one actually shows a C-program, with Language > C > C selected; it shows “C source file” in the lower-left to indicate that’s the language selected. And looking at the screenshot, you can see the #include in different color than the (), and the "Hello, World" in a different color than printf. If this were you screenshot, the lower-left would show “User Define File - Minnekraft”, and the text would be whatever would be expected for “Minnekraft” text (source code or data or whatever you are trying to highlight in the Minnekraft-type file). You would then describe what was wrong with the highlighting shown in the Minnekraft file.

    Instead, you have shown us something like this:

    You have an empty text file. There is nothing for the Language Syntax Highlighter to highlight (it’s empty), so we cannot tell you what’s going wrong. In my second example, I have told Notepad++ that my empty document is C. That’s nice and all, but since there is no text (C or otherwise) in the file to highlight, selecting the C language does nothing, because there’s nothing to highlight. The confusion Claudia has expressed is that all you’ve shown us is a blank document, and it seems to her (and to me) that you are expecting a blank document to be highlighted, which makes no sense to us.

    The extra screenshots you showed of your UDL definition would be somewhat useful, but not without also giving us an example Minnekraft file, showing how it doesn’t get highlighted properly, and explaining how you think it should be highlighted.

    That is the screenshot Claudia has been asking for. To embed an image so we can see it without clicking, use the Markdown Syntax shown below (Markdown is used by this forum to enter your questions):

    ![](http://i.imgur.com/Uercm86.png)

    Note that it’s similar to the normal link syntax, but with an exclamation point ! before the [](http://i.imgur.com/Uercm86.png). This code inline in my post embeds the second image I used above.

    Also, to help us help you, you might want to give us the raw text of an example Minnekraft document. To do that, use Markdown’s code syntax, which requires teh code to be indented by four spaces. To show us an example of Minnekraft file, such as the following:

    This is my indented example of Minnekraft text

    You woud use

    Here is your initial question text This is YOUR indented example of Minnekraft text, indented 4 spaces compared to your question text And here is further question text, no longer indented

    Make sure it’s a short example, because there isn’t a huge amount of space in one post in this forum.

    And since the screenshots of a UDL aren’t always sufficient (your shots don’t say what formatting you’ve chosen for each item, for example), you could use: Language > Define Your Language, then select Minnekraft from the dropdown of the UDL interface, then click Export and save the file, then paste the text of the file (indented an additional 4 spaces) in your question.

    With all of that, we could grab your short Minnekraft file, we could import your UDL’s XML definition, and we could experiment to help you figure out what’s going wrong.

    But for now, all we can say is, “of course nothing’s being highlighted; your document is empty, and there’s nothing to highlight”. But I doubt you’d find that helpful.