• File associations don't match admin vs. non-admin

    Locked
    1
    0 Votes
    1 Posts
    982 Views
    No one has replied
  • Add exact text to front of each row

    Locked
    3
    0 Votes
    3 Posts
    19k Views
    Scott SumnerS

    @Kristi-Slenker

    So there are a few ways to do this, maybe even more than those listed below. It is instructive to have different means, as the techniques could be useful in similar situations.

    Method 1: Put the caret in column 1 of the first line you want to affect (since you said “each row”, this would be line 1). Go to the Edit (menu) and invoke Column Editor… In the Column Editor dialog box that pops up, tick Text to Insert Put your desired text in the zone that appears below Text to Insert Click OK Notepad++ will add your specified text to the beginning of every line.
    Note: You can make the starting line for this action variable, but I don’t believe you can specify an end-point to this action; it affects all lines from the line of the caret up to and including the last line of the file. Method 2: Make sure you are in “insert” mode rather than “overwrite” mode (check far-right of status bar for “INS” rather than “OVR”) Put the caret in column 1 of the first line you want to affect (since you said “each row”, this would be line 1). Go to the Edit (menu) and invoke Begin/End Select Go to column 1 of the line ABOVE the last line you want to affect (since you said “each row”, this would be the line above the last line in the file). Press and hold Ctrl and Alt while you press-and-release the down-arrow key. You should have a double-height skinny caret in column 1 of the last line of the file and the line above. Go to the Edit (menu) and invoke Begin/End Select You should now have a skinny caret in column 1 of the entire file. Type your desired text which will then appear at the start of every line. Move the caret with an arrow key to return the caret to normal.
    Note: This can be made to affect only a desired range of lines in your file (doesn’t have to be ALL lines); determined by where you do the two Begin/End Selects. Method 3: Go to the Edit (menu) and invoke Select All (default keycombo: ctrl+a) Invoke the Replace dialog (Search menu, then Replace…) In the Find-what zone, put ^ In the Replace-with zone, put your desired text In the Search-mode zone, choose Regular expression Tick the In selection checkbox Press the Replace All button.
    Note: This can be made to affect only a desired range of lines in your file (doesn’t have to be ALL lines); determined by the range of lines in your selected text.
    Note: Apologies to @JimDailey , but I already had Method 3 typed when I saw you had responded–good thing we agree on the basic technique. :-)
  • tree structure left hand

    4
    0 Votes
    4 Posts
    3k Views
    Gogo NeatzaG

    Looks like you have the “explorer” plug-in installed : Try using the shortcut Control - Alt - shift - E
    This keyboard shortcut should activate the feature. (It works as switch on/off)

  • Split Field Into Two Fields

    4
    0 Votes
    4 Posts
    3k Views
    guy038G

    Hello, @kasey-gonzales,

    Thanks to Scott, we can figure out your problem, much better ! So, as your address field is 100 characters wide, in case of a two-lines address, each part, before and after the tilde character ( ~ ), have a maximum of 50 characters and, of course, a minimum of 1 character.

    Thus, given, for instance, the original text, below ( By convention, I’m using digits in the first part address, before the ~ and upper-case letters, in the second part, after the ~ character, both between 1 and 50 characters long )

    ---------1---------2---------3---------4---------5---------6---------7---------8---------9---------0---------1---------2---------3---------4---------5---------6 1~A 1~ABCDEFGHIJABCDEFGHIJABCDEFGHIJABCDEFGHIJABCDEFGHIJ 12345678901234567890123456789012345678901234567890~A 12345678901234567890123456789012345678901234567890~ABCDEFGHIJABCDEFGHIJABCDEFGHIJABCDEFGHIJABCDEFGHIJ In Care of John Doe~1000 John Street Hobbs NM 88240

    I would propose two steps :

    A FIRST normal OR regex search / replacement, which adds 50 space characters, in front of the ~ symbol : SEARCH :~ REPLACE : ~ A SECOND regex search / replacement, right after, which deletes any consecutive range of space characters, between position 106 and the ~ symbol : SEARCH :(?-s)^(.{105}) +~ REPLACE :\1

    Notes :

    Copy/paste, in the Replace dialog, each zone, selecting text AFTER the colon character

    In the second search regex ^(.{105}) +~, there is a space character, before the + symbol

    Select the Regular expression mode

    In the second replacement regex, we just re-write the group 1 ( the first 105 characters of each line )

    These two S/R preserves any text which is before column 56 , and after the second part of the address field

    Then, after these two consecutive regex S/R, you should obtain the text, below, with the second part address moved to column 106 :

    ---------1---------2---------3---------4---------5---------6---------7---------8---------9---------0---------1---------2---------3---------4---------5---------6 1 A 1 ABCDEFGHIJABCDEFGHIJABCDEFGHIJABCDEFGHIJABCDEFGHIJ 12345678901234567890123456789012345678901234567890A 12345678901234567890123456789012345678901234567890ABCDEFGHIJABCDEFGHIJABCDEFGHIJABCDEFGHIJABCDEFGHIJ In Care of John Doe 1000 John Street Hobbs NM 88240

    IMPORTANT :

    If your text may contain some tabulation characters, just change them by the appropriate number of space characters, using the Edit - Blank Operations - TAB to Space menu option !

    If your text may contain other ~ characters, located outside the address field, just tell me and we’ll slightly change the first search !

    Best Regards,

    guy038

  • Help needed for creating a new parser in functionList.xml

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Andre RenardA

    I found a solution.

    <parser displayName="CORBA" id="corba_syntax" commentExpr="(?s:/\*.*?\*/)|(?m-s://.*?$)" > <classRange mainExpr="interface\s+\w+\s*(:\s+\w+\s*)?\{" openSymbole ="\{" closeSymbole="\}" > <className> <nameExpr expr="interface\s+\w+" /> </className> <function mainExpr="\w+\s+\w+\s*\(" > <functionName> <funcNameExpr expr="\w+\s*\(" /> <funcNameExpr expr="\w+" /> </functionName> </function> </classRange> <function mainExpr="(struct|enum)\s+\w+\s*(:\s+\w+\s*)?\{" > <functionName> <nameExpr expr="(struct|enum)\s+\w+" /> </functionName> </function>> </parser>
  • Executing Java/Python in Notepad++ Portable

    Locked
    5
    0 Votes
    5 Posts
    5k Views
    PeterJonesP

    it’s should be launching the right programs, based on those screenshots.

    What drive is java installed on? Assuming it’s on C:, not U:, it may be that with the cmd /k or npp_run cmd /k prefix, you have to change to

    npp_run cmd /k "c:\java\jdk1.7.0_11\bin\java" -classpath "$(CURRENT_DIRECTORY)" "$(NAME_PART)"

    to explicitly indicate which drive java is on.

    Searching on your error text, it usually indicates a special character not properly quoted. Those don’t look like accidental smartquotes in your screenshot, but you might want to check for that. And what happens if you do the cmd /k version without the npp_run (try the intermediate step, to debug whether it’s cmd.exe or npp_run which is going from not-working to working)

  • Encoding without BOM? Where?

    Locked
    3
    0 Votes
    3 Posts
    4k Views
    Kelli BahamK

    @Scott-Sumner
    Thanks. What I have is a text file with Spanish special characters that I’m trying to get rid of. I was told to use this by my vendor. However, when I open the file and select Encoding in UTF-8 the special characters don’t change (this particular file has an A with the accent mark over it) - whether I select the word with the special characters, select all, or select nothing. If I choose Encoding in ANSI, it changes the letter to an A with the tilde over it. I want it to be just a standard A. Maybe my vendor misunderstood what this will do or maybe I am missing something…

  • Code folding possible for this ... ?

    Locked
    5
    0 Votes
    5 Posts
    2k Views
    Nicolas NickischN

    I discovered already the UDL. But I am wondering if this can solve my problem.

  • Plginmanager nicht verhanden o.O

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Scott SumnerS

    @Ben-Brasche

    I don’t even have to know German that well (or translate the page) to know what you are asking about. :-D
    This is a big FAQ that is only going to get bigger in the coming days/weeks/etc.

    See https://notepad-plus-plus.org/community/topic/14346/pluin-manger-not-present-in-7-5

    To install it, see here: https://github.com/bruderstein/nppPluginManager/releases

  • Need to run a macro on a file as it is opened

    Locked
    1
    0 Votes
    1 Posts
    878 Views
    No one has replied
  • Auto spell check not available

    Locked
    7
    0 Votes
    7 Posts
    5k Views
    David WimmerD

    Haha wow, cant believe i missed that! Thank ya so much for this help! If anyone has this issue, please refer to this as it was VERY easy. I also used this one to download and it was pretty much self explanatory. https://github.com/bruderstein/nppPluginManager/releases

  • 0 Votes
    1 Posts
    753 Views
    No one has replied
  • Concatenate corresponding lines from two files

    Locked
    4
    0 Votes
    4 Posts
    7k Views
    guy038G

    Hi, All,

    Regex updated and section Notes, added, on 08/22/2017 - 10.45am ( French TZ )

    Just realized that my previous regex can be extended to reorganize more than two lists !

    For instance, let’s suppose I double the complete list of family and given names, from my previous post, adding the new symbols = and _, in order to get the text, below :

    #Smith #Jones #Taylor #Brown #Williams #Wilson #Johnson #Davies #Robinson #Wright #Thompson #Evans #Walker #White #Roberts #Green #Hall #Wood #Jackson #Clarke @Oliver @Amelia @Jack @Olivia @Harry @Emily @George @Isla @Charlie @Ava @Jacob @Jessica @Thomas @Ella @Noah @Isabella @William @Poppy @Oscar @Mia =Smith =Jones =Taylor =Brown =Williams =Wilson =Johnson =Davies =Robinson =Wright =Thompson =Evans =Walker =White =Roberts =Green =Hall =Wood =Jackson =Clarke _Oliver _Amelia _Jack _Olivia _Harry _Emily _George _Isla _Charlie _Ava _Jacob _Jessica _Thomas _Ella _Noah _Isabella _William _Poppy _Oscar _Mia

    Then, the regex S/R :

    SEARCH (?-s)^#(.+)\R((?s).*?)@(.+)\R((?s).*?)=(.+)\R((?s).*?)_(.+\R?)

    REPLACE \1 \3 \5 \7\2\4\6, with a space character after \1, \3 and \5

    would return, after 20 hits, on the ALT + A shortcut ( Replace All ), the single shortened list :

    Smith Oliver Smith Oliver Jones Amelia Jones Amelia Taylor Jack Taylor Jack Brown Olivia Brown Olivia Williams Harry Williams Harry Wilson Emily Wilson Emily Johnson George Johnson George Davies Isla Davies Isla Robinson Charlie Robinson Charlie Wright Ava Wright Ava Thompson Jacob Thompson Jacob Evans Jessica Evans Jessica Walker Thomas Walker Thomas White Ella White Ella Roberts Noah Roberts Noah Green Isabella Green Isabella Hall William Hall William Wood Poppy Wood Poppy Jackson Oscar Jackson Oscar Clarke Mia Clarke Mia

    Notes :

    The first part (?-s) means that the regex engine will consider, by default, that the dot meta-character matches any single standard character, only

    Then the part ^#(.+)\R represents the first complete line, beginning with the # symbol and followed by its End of Line character(s), with part, after symbol #, stored as group 1

    Any part, of the form ((?s).*?), is the smallest multi-line range of characters ( standard or EOL ones ) till a User-symbol ( @, = or _ ) and stored as groups 2, 4 or 6

    The parts @(.+)\R and =(.+)\R represent the first complete line, beginning with the @ or = symbol and followed by its End of Line character(s), with the part, after the symbol, stored as group 3 and 5

    The last part _(.+\R?) stands for the first complete line, beginning with the _ symbol, followed by optional End of Line character(s), and the part, after the _ symbol is stored as group 7

    In replacement, the first part, \1 \3 \5 \7, rewrites each line, without its initial User-symbol, separated by a space character, as an unique line, ended by End of Line character(s)

    Then, the remaining of the four lists, \2\4\6, is, simply, rewritten, without any change !

    The table , below, marks the beginning of each of the seven defined groups :

    ----------------1-----2---------3-----4---------5-----6---------7------ SEARCH (?-s)^#(.+)\R((?s).*?)@(.+)\R((?s).*?)=(.+)\R((?s).*?)_(.+\R?)

    Cheers,

    guy038

  • Calling a plugin function from a macros

    2
    0 Votes
    2 Posts
    2k Views
  • Notepad++ Deleted all my work. (sad story)

    3
    0 Votes
    3 Posts
    2k Views
    clement muhirwaC

    I have started using sublime text, it is very nice and no such errors i would recommend you to use it too, it has never disappointed me as notepad++

  • Export NppFTP Profiles to new Computer?

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Disable language Swift

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    CasperBertelsenC

    I see. Thanks.

  • Notepad++ crashed, I lost all data in a file

    3
    0 Votes
    3 Posts
    3k Views
    Nathaniel CourtensN

    I had the same problem going on for some time now. I ended up coding within remote desktop, directly on the server instead over my workgroup internal LAN connection. Somehow that made it stop / or almost stop. Not ideal, but this was a workaround.

  • Modifying selection background color in theme

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Jim BellJ

    Never mind. I found the setting I needed.

  • Plugin Manager -

    Locked
    3
    0 Votes
    3 Posts
    5k Views
    glennfromiowaG

    @Megan-Butler Also, despite the fact that Plugin Manager is no longer installed with Notepad++, it can still be downloaded here:
    https://github.com/bruderstein/nppPluginManager/releases