• just a blink of python

    2
    0 Votes
    2 Posts
    2k Views
    cmeriauxC

    Hello,
    try to validate your script with python pep8 (usually installed in python/script folder)
    You may have a problem with file encoding. Configure it as utf-8. Use a correct line ending.
    Header must be a

    #!/usr/bin/env python # -*- coding: utf-8 -*-

    look at https://www.python.org/dev/peps/pep-0008/#source-file-encoding

  • How to turn off opening previous files in 7.0?

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    botman99B

    Are you thinking of the “Remember current session for next launch” checkbox? That’s in the “Backup” preferences section.

  • 0 Votes
    3 Posts
    2k Views
    guy038G

    Hello bege10,

    To fully distinguish the different GOTO, CALL and START commands, of your batch file, I suppose that you need all the contents of the line, starting with these commands :-)

    If so, here is, below, a batch parser, which should work nice !!

    Open your active functionList.xml file

    Change the present batch_label id parser contents by the parser, below :

    <parser id=“batch_label” displayName=“BAT Label” commentExpr=“^[\t ](::|REM).?$”>
    <function
    mainExpr=“^[\t ]*\K.+?$”
    displayMode=“$functionName”>
    <functionName>
    <nameExpr expr=“(call |goto |start |(?<=:)).+?$”/>
    </functionName>
    </function>
    </parser>

    Notes :

    The commentExpr string is, either, the word REM or the symbol ::, preceded by possible leading space/tabulation characters and followed by any range, even null, or characters

    Then, the mainExpr string, from which the different entities, to display in the FunctionList window, will be extracted, is any, non-null, range of characters, which follows possible leading space/tabulation characters ( and different from comment ranges ! )

    Finally, the expr string is, either :

    The word call, goto or start, followed by a space and any non null range of characters Any non null range of characters, following a colon ( : )

    IMPORTANT :

    The functionList regex engine does NOT act as the Notepad++ one. By default, it considers that the dot meta-character ( . ) match, absolutely, any character ( standard or EOL ones )

    But, as the Notepad++ regex engine does, it considers that the ^ and $ assertions stand for the beginning and the end of any line

    So, when you want to match, from any location, all the remaining characters of a line, TWO syntaxes are possible :

    .+?$ which matches any non-null range of any character, ( standard or EOL ones ), till the nearest EOL location, due to the lazy quantifier +?

    OR

    (?-s).+ which matches any non-null range of standard characters only, due to the in-line modifier (?-s)

    Of course, if the range of characters may be a zero-length string, prefer the syntax .*?$ OR (?-s).*

    Best Regards,

    guy038

  • Why does N++ access my D: drive on startup

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • All open files close when I shut down.

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Göran SchmidtG

    Hi!

    Both those options are checked. My hypothesis is that there seem to be a maximum number for documents to be kept opened (or possibly a maximum number of bytes?), because when I have just a few docs, they remain open in the next session.

  • JS syntax highlighting in ASP?

    5
    0 Votes
    5 Posts
    4k Views
    John DogeJ

    Ah, that’s not how it’s supposed to work. HTML parser should detect language of embedded script blocks on its own without user changing the top-level language, because there are HTML/ASP tags that also need their own highlighting.
    Thanks for the heads up, I think I’ve found the diff between np++ and scintilla code that’s responsible. I should probably take it to github from here.

  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • what does the "open session in a new instance of Notepad++" option mean?

    Locked
    2
    0 Votes
    2 Posts
    6k Views
    MAPJe71M

    When you open a session, it is opened in a new instance of Notepad++. A session can consist of one or more files. See also Load Session... and Save Session... in the File menu.

  • Function list for PowerShell

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    MAPJe71M

    Try this parser.

  • firefox not running javascript

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    Claudia FrankC

    Could it be that firefox is not installed (using a portable version)

    Cheers
    Claudia

  • Suddenly Notepad++ repeatedly crashing on opening >250MB FASTA files

    Locked
    7
    0 Votes
    7 Posts
    5k Views
    Kausik DattaK

    Thank you for trying to help, @dail. I really appreciate it. However, since my need was immediate (I have to use these files at work today), I searched on the internet and found another text editing program - which opened the file without any issue and also handled the blank line removal smoothly. I really liked the N++ interface, but sadly, I must move on.

    Best regards to you.

  • Edit Image Attributes in Multiple Files

    7
    0 Votes
    7 Posts
    4k Views
    dan tannerD

    The just of my reply was that this worked very well in the test run, but did not in my actual working files. Possibly because my image files aren’t actually named “image01, 02, 03” etc? Here are two actual strings:

    (how very odd. it allowed this - but now I’m a “new user” and can only post once every twenty minutes. I might just email ya. ha)

  • Older Notepad++ versions had "Print All" plugin!

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Horizontal scrolling moves the scrollbar but not the text

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Closing a tab in 6.9.2 opens Skype

    4
    0 Votes
    4 Posts
    3k Views
    Brian JensenB

    Thank you Claudia. Adding -noPlugin switch to Start menu shortcut icon for NotePad++ seems to have fixed the problem of Skype launching. Thanks again.

  • Problem with &sect; when saved as UTF-8 without BOM

    2
    0 Votes
    2 Posts
    2k Views
    John DogeJ

    Try to disable “Autodetect character encoding” under preferences - MISC. Tried it and got C2 A7 bytes, which I think is correct.

  • Both sides of Tag in notepad++

    3
    0 Votes
    3 Posts
    2k Views
    Dolan HD

    Thank you.

  • Automatic Syntax Highlighting for INI Files Not Working in NPP 7

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Line Comment position

    4
    0 Votes
    4 Posts
    4k Views
    oirfeodent oirfeodentO

    Hi guy038 & MAPJe71,

    Thx for your response. I was referring to line (un)comment shortcuts.
    If they are not available natively, can I submit a patch?

    https://github.com/notepad-plus-plus/notepad-plus-plus/pull/2394

    The above pull request is added, is there any thing else required for submitting pull requests?
    I am new to this forum, let me know if I have missed something.

    Reagrds,

  • Not Saving line terminating charcaters

    Locked
    5
    0 Votes
    5 Posts
    3k Views
    gerdb42G

    As I said before, Notepad does not recognize non-Windows Line Endings. It simply treats them as invisible characters. If you start editing in Notepad you will create a mix of Windows and Unix Line Endings. Since NPP recognizes ALL Line Endings, it displays both Unix and Windows Line Endings.