• Format Lines or Words

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Scott SumnerS

    @Steven-Rampmeyer

    For these functions you want a Word Processor not a Text Editor.
    What you have in Notepad++ is a Text Editor.

  • User Defined Language_NCL

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    PeterJonesP

    Since you didn’t link us to the NCL language style .xml file, or quote it here, or provide a sample NCL source code so we could see if it worked for us, there’s not a lot you should expect us to be able to help you with. (As always, with any user discussion group or other help forum, the more relevant details you give, including concrete examples of what works and what doesn’t work, the easier it is for someone to help you.)

    You said .../AppData/Notepad/userDefinedLang.xml. Did you really put it there, or did you put it into .../AppData/Roaming/Notepad++/userDefineLang.xml? Because those are two very different paths (on the first, you probably would have had to create the folders yourself; on the second, they should have already existed; and there shouldn’t be a lowercase “d” in the userDefineLang.xml).

    Please go to the ? > Debug Info..., click on copy debug info to clipboard, paste it into an empty Notepad++ tab, Ctrl+A to select all, TAB to indent, Ctrl+C to copy, and paste it into your reply. That will give us more information to help you, like whether you have a normal config (where the userDefineLang.xml should go in the AppData hierarchy), or a “local config” (aka standalone or portable installation, where userDefineLang.xml will be in the same directory as the Notepad++ executable).

    Looking for possible problems with your installation of the UDL (User Defined Language): If you look in the Language menu, does it list NCL (or similar) somewhere near the bottom, or does it go directly from Define Your Language... to User-Defined? If you click on Language > Define Your Language..., and then select either NCL (or similar, if it’s listed) or User Define Language (if NCL isn’t listed), and go through the various tabs in that interface, are there any keywords, number, formats, or operators listed? If there isn’t an NCL listed, and there isn’t anything in the User Define Language definitions, you haven’t actually installed the UDL like you think you have.

    In good instructions for installing a specific User Defined Language, the author/distributor should instruct you to use the Language > Define Your Language... > IMPORT button to load in their specific language. It will then show up under a specific name in the Language menu below the Define Your Language... but above User-Defined. This way, they aren’t telling you to delete all other UDL you’ve already defined.

    For example, I did a quick search for “NCL notepad++ UDL” and found this ncl.ucar.edu page, which has downloads for both a User Defined Language (syntax highlighting) and Auto-Completion. Those instructions explicitly use the “import” method for installing the syntax highlighting. Assuming that site is for the same “NCL” language that you’re mentioning (we cannot know, because you didn’t define what NCL is, either), then you might try to use those instructions with their definition.

    I hope all my random guesses as to what you wanted were able to in some way help, or at least point you in a new direction. If not, we may be able to help you better if you provide us with more information.

  • nul nul nul problem notpad++

    Locked
    6
    0 Votes
    6 Posts
    6k Views
    Sagor Ali BDS

    I am using installed version of Notpad++
    And i checked by run> %APPDATA% path and found the file when i opened this it is also showing was same condition.

  • Replace text on certain lines only - Column Editor

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    PeterJonesP

    Using example data from another thread

    Gui, Add, Button, x22 y150 w90 h20 , Button 1 Gui, Add, Button, x22 y170 w90 h20 , Button 2 Gui, Add, Button, x22 y190 w90 h20 , Button 3 # dummy line, different than the rest Gui, Add, Button, x22 y210 w90 h20 , Button 4 Gui, Add, Button, x22 y230 w90 h20 , Button 5 Gui, Add, Button, x22 y250 w90 h20 , Button 6

    Assuming you wanted all the x22 replaced with x314, Search > Replace..., with ☑ Regular Expression

    Find What = (?-is)\bx22\b Replace with = x314

    Assuming you wanted all the various y### replaced with the same y2718,

    Find What = (?-is)\by\d+\b Replace with = y2718

    Assuming you wanted all the various y### replaced with a variety of y-numbers, depending mathematically or logically on the value of the original y###, you would use the PythonScript plugin and a variant of the script I showed in that other thread

    With no data examples given, we cannot tailor the response to your data.

    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
  • Replace Help

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    BortfiveB

    @guy038 i will try it, u are the best bro <3

  • Insert a string after each number of words with conditions

    19
    0 Votes
    19 Posts
    11k Views
    abuali humaA

    I modified the original Search regex, as it catches some Unicode characters with will break the line in a middle of a word. So in the modified regex I replace \W with \x20 (space character)… so far no word breaking issues
    Here is the modified one
    (?-s).{1,44}(?=\x20)

  • How to hide methods bodies closed when Notepad++ opens file?

    Locked
    1
    0 Votes
    1 Posts
    611 Views
    No one has replied
  • High-lighting text

    Locked
    2
    0 Votes
    2 Posts
    971 Views
    古旮

    Search -> Mark…

  • Typing problem

    Locked
    1
    0 Votes
    1 Posts
    609 Views
    No one has replied
  • windows crashed.. lost all my tabs..

    Locked
    2
    0 Votes
    2 Posts
    868 Views
    mango wodzakM

    Looks like I found them!! They are in the backup folder… panic over!

  • Turkish Language version errors

    Locked
    1
    0 Votes
    1 Posts
    634 Views
    No one has replied
  • Changing windows, actual line go down in the scroll

    Locked
    1
    0 Votes
    1 Posts
    553 Views
    No one has replied
  • Multiple errors building NPP 7.5.6

    24
    0 Votes
    24 Posts
    9k Views
    YaronY

    Hello Claudia,


    But is it relevant for your current problem?

    Understanding why my build crashes and yours does not is actually more important to me than fixing the Doc Switcher issue.
    I hardly use that feature but I suspect some other features may not work properly as well.

    Here is the Dump file.

    The other way would be to put a breakpoint on line 2243…

    default

    Should I build it as Debug instead of Release?

    Thank you for further looking into it and for the detailed explanations. I do appreciate that.

    Best regards.

  • taskbar icon not visible

    Locked
    1
    0 Votes
    1 Posts
    802 Views
    No one has replied
  • Very Simple Replace Problem - but Newbie

    Locked
    5
    0 Votes
    5 Posts
    1k Views
    Harry MartinH

    Works! Thank you.

  • Write numbers from one to another one.

    9
    0 Votes
    9 Posts
    5k Views
    dedsec24D

    Thanks all of you
    I got my answer.

  • Increase/Decrease All Highlighted x or y Coordinates

    4
    0 Votes
    4 Posts
    2k Views
    PeterJonesP

    Sorry, it took me a while to find the time to work on this

    You need PythonScript and 32bit Notepad++ for this to work. You can download PythonScript here

    # https://notepad-plus-plus.org/community/topic/15485/increase-decrease-all-highlighted-x-or-y-coordinates # Will prompt for which column (allows x, y, w, h) and how much to add or subtract (requires a number) # Will then do the search/replace over the whole file DEBUG = False def delt_1(m): global addend this = m.group(1) if DEBUG: console.write("matched '") console.write(this) console.write("'\t") r = str(addend + int(this)) if DEBUG: console.write("return: '" + r + "'") console.write("\n") return r #################################################### if DEBUG: console.show() if DEBUG: console.clear() column = None while column != "x" and column != "y" and column != "w" and column != "h": column = notepad.prompt("Which column [x y w h]?", "Choose column", "y") addend = None while addend == None: direction = notepad.prompt("Number to add (negative for subtraction)", "Choose delta", "1") try: addend = int( direction ) except: addend = None if DEBUG: console.write("column: " + column + "\n") console.write("addend: " + str(addend) + "\n") pattern = "((?<=\s{0})\\d+)".format( column ) if DEBUG: console.writeError(pattern + "\n") editor.beginUndoAction() editor.rereplace(pattern , delt_1) editor.endUndoAction()
  • Subtract document B from A

    21
    0 Votes
    21 Posts
    9k Views
    Claudia FrankC

    @Timmy-M

    good to see that you got it sorted out :-)

    and to keep sorting, change this

    editor1.setText('\r\n'.join(s1-s2))

    to this

    editor1.setText('\r\n'.join(sorted(s1-s2)))

    that should do the trick.

    Cheers
    Claudia

  • How to set browser window height in Notepad ++

    Locked
    2
    -1 Votes
    2 Posts
    944 Views
    Scott SumnerS

    @Jamar-Bivens

    Nope. This is a place for talking about Notepad++ issues, not web-development issues. Please find a more appropriate place to ask your question–there must be many possible channels for this. And please, nobody answer it here; it only encourages off-topic discussions.

  • Block Editor Insert numbers backwards

    Locked
    1
    0 Votes
    1 Posts
    667 Views
    No one has replied