• How to view CSV files in tab-like format?

    Locked
    2
    0 Votes
    2 Posts
    5k Views
    rinku singhR

    @MonarchX
    Notepad++ x64 portable
    use setup.exe for plugins

  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • Toolbar shortcut to call a plugin function

    Locked
    2
    0 Votes
    2 Posts
    538 Views
    rinku singhR

    @Comawhite54 said:

    Hello All,

    I am looking for a solution to be able to call a plugin (ie: python debug script) just by clicking a shortcut in the toolbar.
    I do not find any solution to do this?
    The plugin “customise toolbar” does not seems to permit it neither.

    So you know a solution?

    with nppexec plugin
    npp_menucommand <menu\item\name> - executes (invokes) a menu item

  • Newbie question - inserting timestamp

    Locked
    6
    0 Votes
    6 Posts
    6k Views
    Alan KilbornA

    TextFX probably isn’t the best recommendation, given that it is 32-bit only and not maintained. Although it requires the use of another plugin, this thread gives another way of achieving the goal: https://notepad-plus-plus.org/community/topic/13792/date-time-again

  • how to remove empty spaces from a particular tag (regular expression)

    10
    1 Votes
    10 Posts
    6k Views
    Neculai I. FantanaruN

    @guy038 I just review this post, because I like it and remembered the same thing from the post today.

    SEARCH (?s)(?:\G|<p class="oyric">)(?:(?!<|>).)*?\K(?:(^\h+)|\h+$|(?<=>)\h+|\h+(?=</p>)|(\h{2,})(?=[^<\h]))

    REPLACE (?1$0)(?2\x20)

    What if, in case I have another tag, like <em>

    So, @Robin Cruise scenario become:

    <p class="oyric"> Laurie Strode comes to her final confrontation <em> with Michael Myers, the masked figure who has haunted her </em>since she narrowly escaped. </p>

    So, In this case, your regex does not remove empty spaces because of those <em>

  • regex: Match string not containing string

    Locked
    14
    1 Votes
    14 Posts
    17k Views
    Neculai I. FantanaruN

    yes, ok, but if I have an .html file, I will never finnish with this line. :) So, for sure I have a lot of lines and other tags after line six :)

    anyway, I get it. I remove the last part (?=\R) and works.

    (?-i)<p class="TEXTA">(?:([^<>]+<(\w{1,10})>([^<>]+|(?1))</\2>[^<>]+)+|[^<>]*)<(?!/p)[^<>]+?>

    thank you @guy038

    And Happy New Year everyone !!

  • 0 Votes
    2 Posts
    773 Views
    Meta ChuhM

    @Geoffrey-Odhner

    welcome to the notepad++ community

    the line comment option “force at beginning of line” refers to the comment marker (delimiter), not to the comment itself.

    here’s a screenshot with a little example of what will and what won’t be interpreted as a comment if you use it. (comments are highlighted in green)

    alt

    you are correct about the global meaning of this setting, it is not possible to set one line comment delimiter string that will work everywhere and another one that’s only valid at the beginning of a line.
    the only workaround i know of is to use a comment line setting restricted to the beginning of the line and a block comment, which you could use everywhere, but which has to have separate open and close delimiters like /* and */ as they don’t end automatically at the break of a line

  • Paste a new line of code after every instance of an existing line

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    berrmirtB

    Thank you, sir, that’s exactly what I was looking for!

    Also, I appreciate the detailed explanation, it was very helpful.

    Further, I was able to use your link to determine that I needed to add "(\t\t\t) to my replace expression to align the ‘new’ line with the old code line.

  • Remove duplicate numerical lines

    48
    1 Votes
    48 Posts
    14k Views
    Meta ChuhM

    i miss you too @Scott-Sumner and i hope you read this some day.

    i’m sorry too for everything that happened and my failed humorous attempts to brighten up the situation.

    i think that don didn’t even look to whom he gave this reply at that certain moment, and i know how this must feel … like a job where a 3 year “underpaid” employee, who is also probably the biggest defender and supporter of this hypothetical company, suddenly gets a “who the hell are you” from the boss.

    please come back, or more important: we, specifically i as an individual would like to keep in contact, regardless of how, when or where.

    thanks @PeterJones for standing up.
    (i currently have a certain movie scene in my mind … “o captain my captain” from the movie dead poets society)

  • 0 Votes
    1 Posts
    513 Views
    No one has replied
  • Open File from "File Explorer" Plugin within Notepad++ ?

    Locked
    7
    0 Votes
    7 Posts
    9k Views
    guy038G

    Hello, @joongkeun-kim, @meta-chuh, @gurikbal-singh and All,

    AFAIK, even if you succeed to install the LightExplorer plugin correctly, due to the new plugin organization, it cannot, unfortunately, save the user options in the configuration file Lightexplorer.ini :-((. Indeed :

    In N++ versions prior to v7.6 :

    The LightExplorer.dll file was located, directly, inside the plugins folder

    The LightExplorer.ini file, created by the plugin, itself, was, also, in the the plugins folder, along with the DLL

    => All the plugin’s functions worked correctly :-))

    In the 7.6 and 7.6.1 versions of N++ :

    The LightExplorer.dll file must be located in the plugins\LightExplorer sub-folder, due to the new plugin organization

    But the LightExplorer.ini file, is NOT created, anymore by the plugin :-(( . I suppose that, internally, the fact of moving the plugin in the new LightExplorer sub-folder breaks its logic !

    So, in my portable 7.6.1 version of N++, I do have the LightExplorer installed, but… … some functionalities do not work properly :

    The option Synchronize tree with current document does not work

    The option Load tree state on startup cannot be unchecked any more

    The option Add to favorites seems to work till the current N++ session is opened but is not saved in any LightExplorer.ini file !. Thus, on next N++ opening, all your favorite locations cannot be seen :-(

    Moreover, I’m afraid that the LightExplorer plugin is not maintained anymore :-(( The last v2.0 version was released in March 2009. See below :

    https://sourceforge.net/projects/npp-plugins/files/LightExplorer/

    As an alternative, you could try the Explorer plugin, from that address :

    https://sourceforge.net/projects/npp-plugins/files/Explorer/Explorer Plugin v1.8.2/

    Download the Explorer_1_8_2_UNI_dll.zip archive

    Under your active Plugins folder, create a sub-folder, named Explorer

    Extract the Explorer_1_8_2_UNI_dll.zip archive ( just the .dll ) in this ...\plugins\Explorer sub-folder

    Contrary to the LightExplorer plugin, if you’ve modified some options, the Explorer plugin correctly saves, on N++ exit, all the user options in an Explorer.ini file, located in your ...\Config directory !

    Best Regards,

    guy038

    P.S. : Note that I also tried to duplicate the LightExplorer.dll file, directly in the ...\Plugins folder, though without success :-((

  • 0 Votes
    4 Posts
    3k Views
    Meta ChuhM

    @Hamada-re3oo
    side note on posting:

    if you want to post text with special characters,
    you can type it it in between `` back ticks (accent grave)

    example:

    `my text with special *characters* **&%$&**`

    will be displayed correctly as
    my text with special *characters* **&%$&**
    instead of
    my text with special characters &%$&

  • 0 Votes
    24 Posts
    18k Views
    guy038G

    Hi, @alan-kilborn and All,

    Regarding regex operators precedence, taken from the link,

    https://www.boost.org/doc/libs/1_55_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html#boost_regex.syntax.perl_syntax.operator_precedence

    The table, below, gives the hierarchy of these operators, listed from the highest priority to the lowest priority :

    POSIX based Bracket Character set : [:Class character:], [=Equivalent Class=], and [.Collating element.] Escaped characters : \... Bracket Character set, ( negative or not ) : [^.....] and [.....] Grouping, ( capturing or not ) : (.....) and (?:.....) Quantifiers : *, +, ?, {n}, {m,n} and {m,} Concatenation ( Implicit ) Anchoring : ^ and $ Alternation : |

    Here are some examples to verify this hierarchy :

    Between level 1 and level 2 :

    The regex [[=\=]] matches the reversed slash \, only and NOT the regex [[==]], which is, besides, invalid !

    Between level 2 and level 3 :

    The regex \[1] means the regex \[ , so the string [, followed with the string 1] and NOT the regex \1, as [1] represents the 1 digit., which,finally, matches the 1 digit

    Between level 3 and level 4 :

    The regex [(123)45] matches 1, 2, 3, 4 and 5 digits, as well as the parentheses ( and ), and NOT the number 123, as a group, or the digits 4 or 5, which can be found with the regex (123)|[45]

    Between level 4 and level 5 :

    The regex (123)+ represents the number 123, possibly repeated, and NOT the 12 number, followed with any range of consecutive digit(s) 3, which can be found with the regex 123+

    Between level 5 and level 6 :

    The regex 123+45+ matches the 12 number, followed with any range of consecutive digit(s) 3, followed with 4 number, followed with any range of consecutive digit(s) 5 and NOT any range of the 123 number, followed with any range of the 45 number, which can be obtained with the regex (123)+(45)+

    Between level 6 and level 7 :

    I have not been able to detail differences between implicit concatenation of regexes ( for instance, regex a, followed with regex b resulting in the regex ab ) and anchoring which defines zero-length regexes, matching specific locations in file contents !

    Indeed, if we consider the simple regex ^123, to my mind, the regex ^1, immediately followed with the regex 23 or the regex ^12, immediately followed with the regex 3 and the regex ^123, or even the zero-lengh regex ^ followed with the regex 123, seem all identical !?

    A bit off topic : just notice that string concatenation does NOT represent the same concept as regex concatenation ! For instance, the regex [12], followed with the regex [34] matches all elements of the set { 13, 14, 23, 24 }, whereas the string 12, followed with string 34, represents the single-element set { 1234 }

    Between level 7 and level 8 :

    The regex ^12|34$ matches the 12 number, beginning a line OR the 34 number, ending a line ( and NOT a line with number 12 OR number 34, only ( which can be found with the regex ^(12|34)$ ) NEITHER a line beginning with the 1 digit, ending with the 4 digit and between, either, digit 2 OR 3 ( which can be found with the regex ^1(2|3)4$ )

    Best regards,

    Merry Christmas and Happy Holidays to all ;-))

    guy038

    P.S. :

    I’ve, also, found out a great article on operators precedence, regarding the main progamming or script languages ;-)) Just click below :

    https://rosettacode.org/wiki/Operator_precedence

  • A help with regex

    Locked
    8
    0 Votes
    8 Posts
    1k Views
    ?

    @PeterJones said:

    \h*\R+(?!ObjectID()

    Looks like it works!!! Amazing, Peter!!! I’ll test if everything is OK!!!

  • Double-click to open file from Windows Explorer broken

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    Brian ForemanB

    Thanks Peter; you put me on the right track; the actual registry change that fixed it was made here (by adding the quotes):

    [HKEY_CLASSES_ROOT\Applications\notepad++.exe\shell\open\command]
    @="C:\Program Files (x86)\Notepad++\notepad++.exe “%1"”

    Thanks again for your help!!!

  • how do you open the file into a browser it is very annoying?

    Locked
    4
    0 Votes
    4 Posts
    1k Views
    Meta ChuhM

    @Alan-Kilborn
    you’re correct, i just gave the most polite answer, with the least amount of work, by literarily answering a question written as: “how do you open the file into a browser it is very annoying?”

    ;-)

  • Multiple view 'separator line' - Remember position upon exit

    Locked
    2
    0 Votes
    2 Posts
    576 Views
    Meta ChuhM

    @Jasper-Slangen

    good morning and welcome to the notepad++ community.

    currently there’s no built in setting to divide both view sizes to a specific ratio at startup (like 75% left and 25% right)
    but i remember some accomplishing this with a macro or plugin script that runs on startup, but i can’t find the solution right now. you’ll probably get an answer as soon as someone who knows how has a bit of time.

  • Run command on file open

    Locked
    6
    1 Votes
    6 Posts
    2k Views
    Eko palypseE

    @quzar

    so something like this would do it once as long as the already_formatted property
    does not get changed to empty string.

    from Npp import notepad, editor, NOTIFICATION, LANGTYPE def BufferActivated(args): if notepad.getLangType() == LANGTYPE.XML and editor.getProperty('already_formatted') == '': notepad.runPluginCommand('XML Tools','Pretty print (XML only - with line breaks)') editor.setProperty('already_formatted', '1') notepad.callback(BufferActivated, [NOTIFICATION.BUFFERACTIVATED])

    Eko

  • 0 Votes
    4 Posts
    940 Views
    오바마

    ah
    I just have fixed it
    I missed “( )”
    so I added it
    Now works fine !!
    Screenshot

  • Since last update, find/replace not seeing tabs or spaces

    Locked
    2
    0 Votes
    2 Posts
    564 Views
    Alan KilbornA

    @Allen-Matthews

    Do you have the “word” checkbox selected? I find that when this is the case and I search for, say a space, nothing will be found, even though I can SEE the space chars in my document.